Skip to main content

No project description provided

Project description

campus-cli

A command line utility to handle my files as a teacher.

Commands

strip-solutions

  • Create a student version of a notebook in which the code cells containing the solutions are removed. A code cell will is identified as a solution if it contains the string # Solution
  • Usage : campus-cli ./notebooks/my-notebook.ipynb will generate a student notebook file and save it under the name ./notebooks/my-notebook-student.ipynb

strip-solutions -r

  • Recursively apply strip-solutions to all notebooks within the folder passed as an argument.
  • Usage : campus-cli -r ./my-folder/

strip-solutions --dry-run

  • Usage : campus-cli --dry-run ./notebooks/my-notebook.ipynb will show you which file will be stripped from its solution.

check-links

  • Extract all urls from the document and checks it is valid ( 200 <= http_status_code < 300 )
  • Usage : campus-cli check-links ./kit_apprenant.pdf

check-links -r

  • Recursively extract all urls from documents within the folder passed as an argument. Will only check .pdf, .doc, .doc, .docx, .md and .ipynb.
  • Usage : campus-cli check-links ./kit_apprenant.pdf

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

campus_cli-0.2.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

campus_cli-0.2.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file campus_cli-0.2.2.tar.gz.

File metadata

  • Download URL: campus_cli-0.2.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.7 Linux/6.8.0-76060800daily20240311-generic

File hashes

Hashes for campus_cli-0.2.2.tar.gz
Algorithm Hash digest
SHA256 a77d972fe886c3c784aea72480f309f2db079e55520b71f2b73a32cc44d4b887
MD5 7b446423c2eb92c0c268af5f1e00cf7c
BLAKE2b-256 bb6a834ca4a38540b425169cdf92c15e0dc82e5fcc22c4a96ab092111eea02ab

See more details on using hashes here.

File details

Details for the file campus_cli-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: campus_cli-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.7 Linux/6.8.0-76060800daily20240311-generic

File hashes

Hashes for campus_cli-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0acc44773c5b81b329d4c9e60e072a5b6bf866aa3a62bc1a1f5d76c0c7b3d7de
MD5 4c739a0e522ed6eddc52dc2cbfc1e602
BLAKE2b-256 b85ff361c0729cce5af36f4a6febb058acb6f5db845d529b9d6c0961ce40aaca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page