course

fakernaija.commands.course(*args: t.Any, **kwargs: t.Any) t.Any

Returns random course objects.

Parameters:
  • repeat (int) – The number of random course objects to return. Must be a positive integer. Defaults to 1.

  • output (str) – The format of the output file if provided.

Examples

To return a single random course object:

$ naija course
{'name': 'Advanced Physical Chemistry I', 'code': 'CHM411'}

To return 3 random course objects:

$ naija course --repeat 3
{'name': 'Advanced Quantum Mechanics', 'code': 'PHY463'}
{'name': 'Numerical Analysis II', 'code': 'MTH444'}
{'name': 'Time Series Analysis I', 'code': 'STA415'}

To return 30 random course objects and save them to a specified format:

$ naija course --repeat 30 --output csv
Generated data saved to /path/to/directory/filename.ext
fakernaija.commands.course_name(*args: t.Any, **kwargs: t.Any) t.Any

Returns random course names.

Parameters:
  • repeat (int) – The number of random course names to return. Must be a positive integer. Defaults to 1.

  • output (str) – The format of the output file if provided.

Note

  • Output options: csv, json, text

Examples

To return a single random course name:

$ naija course_name
Methods of Theoretical Physics I

To return 3 random course names:

$ naija course_name --repeat 3
Multivariate Analysis
Optimization to Operation Research
Multivariate Analysis II

To return 30 random course names and save them to a specified format:

$ naija course_name --repeat 30 --output json
Generated data saved to /path/to/directory/filename.ext
fakernaija.commands.course_code(*args: t.Any, **kwargs: t.Any) t.Any

Returns random course codes.

Parameters:
  • repeat (int) – The number of random course codes to return. Must be a positive integer. Defaults to 1.

  • output (str) – The format of the output file if provided.

Note

  • Output options: csv, json, text

Examples

To return a single random course code:

$ naija course_code
CHM302

To return 3 random course codes:

$ naija course_code --repeat 3
PHY434
CHM484
CHM324

To return 30 random course codes and save them to a specified format:

$ naija course_code --repeat 30 --output text
Generated data saved to /path/to/directory/filename.ext