sorcerer :crystal_ball:
Programming problem solution README table generator
Installation
You can simply use pip to install sorcerer:
$ pip install sorcerer
Arguments
--git, -g: github username (required)
Usage
Run sorcerer as a command in your solutions directory
$ sorcerer -g [github username]
This will then look for a config.json file that looks like this:
{
"Paths": ["Kattis", "Dmoj", "Leetcode"]
}
File Structure
sorcerer as of now, requires a specific file structure in order to work.
example/
├── CSES
│ └── weirdalgorithm.cpp
├── Dmoj
│ ├── README.md
│ ├── anoisyclass.cpp
│ └── ccc11j1.py
├── Kattis
│ ├── README.md
│ ├── fenwick.cpp
│ ├── fenwick.py
│ └── gerrymandering.py
├── README.md
└── config.json
- The folder names must be the corresponding problem website names.
- The solution filenames must be the corresponding problem website problem IDs.
- The root folder name must be the name of your github repository.
Result
Potential sample result for a folder in the sample file structure above.
Kattis
| Problem | Languages |
|---|---|
| Gerrymandering | Python |
| Fenwick | C++, Python |
The current sites being supported can be found here.
A full sample repository can be found here.
Development
Fork the repository
$ git clone [fork]
$ pip3 install -r requirements.txt
$ python3 sorcerer
License
MIT
Metadata
Release files for sorcerer 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| sorcerer-1.0.0.tar.gz | 4.9 kB | Without provenance | Details |
Release files / sorcerer-1.0.0.tar.gz
| Download URL | sorcerer-1.0.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b32c8258d797cd6bb840f35678b3dc3480ed63b15dc617b2fe11dc099db5e23
|
|
BLAKE2b-256 checksum How to use checksums |
8bc0b93abcdb3be9d5259f0c7482047bde6decee361a6d5ba8a47234a7315b68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.2
|
Security for sorcerer 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.