CFaster is a tool to easily set all you need to start a contest problem as fast as possible.
If you want to install CFaster all you need is pip for Python 3 and running
pip install cfaster
Usage: cfaster [OPTIONS] COMMAND [ARGS]...
Options:
-v, --verbose Output INFO level logs.
-d, --debug Output DEBUG level logs.
--help Show this message and exit.
Commands:
scrape Scrapes the problem and saves inputs and outputs.
This command will scrape the problem from the link and get all the inputs and outputs in .txt
files.
cfaster scrape https://codeforces.com/contest/1174/problem/A
In the future we will have a cfaster test
command for running your code, testing the inputs, comparing with the outputs and giving you the results.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
For the default isolated development environment used by the maintainers you will need:
- Docker
- Docker Compose(optional)
- Make(optional)
If you prefer not using Docker feel free to use any other you prefer, but the CI integration will be running with Docker images so this is the best way to replicate the production environment.
This project uses Docker for creating the isolated development environment.
You can run the Dockerfile build and run the container manually with
docker build -t cfaster .
docker run -it --rm -v $(pwd):/cfaster cfaster bash
or you can use Make and docker-compose to easily get everything running
make dev
Reading the Makefile shows what each target does.
You will have two options on how to execute from source code
python -m cfaster
or
python setup.py install
cfaster
The tests for the CFaster are yet to be implemented, the software still in early alpha version.
CFaster uses PEP8, for running a verification if your code is according to the rules use pycodestyle .
which will recursively run through all files and find any mistakes.
For fixing them automatically we use autopep8
autopep8 -r --diff . # this will show the diff after the fixing
autopep8 -r --in-place . # and this will fix in place the files
We recommend always checking the diff first.
For now we don't have a deployment pipeline, but in the future it will be automated using CI and CD deploying the package to pypi.
- Python 3 - The coding language used
- Click - The command line interface package
- Beautiful Soup - Used to help scrapping the pages.
If you want to contribute to the project please read CONTRIBUTING
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Vitor Falcão - Starter and main maintainer - vitorfhc
As soon as we get out first contribution we will start the file with contributors.
This project is licensed under the GPL-3.0 - see the LICENSE.md file for details