Skip to main content

sorcerer :crystal_ball:

Build Status Code style: black
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

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)

Source distribution for sorcerer 1.0.0
File Size Uploaded
sorcerer-1.0.0.tar.gz 4.9 kB 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

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

0.12

1 release file

0.11

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page