sk364 / codechef-cli Goto Github PK
View Code? Open in Web Editor NEWCodeChef Command Line Client.
Home Page: https://pypi.python.org/pypi/codechefcli
License: GNU General Public License v3.0
CodeChef Command Line Client.
Home Page: https://pypi.python.org/pypi/codechefcli
License: GNU General Public License v3.0
Currently, if there are image(s) in a problem description, nothing is displayed where the image is supposed to be.
Example: codechefcli --problem ZUBTRCNT
compare with ZUBTRCNT Problem - Codechef
This can be handled either by
A.) prompting user to download the images found in description, or
B.) providing image url (possibly, in different color) in the description where the image is supposed to be.
codechefcli is throwing error
Hi!
Could we possible have some shell completion scripts please?
I might be able to look into it eventually, though if anyone has experience with these, might be smoother ride.
@parascoder1 please add this feature.
Use requests-html for scraping the data.
Hi, I am using homebrew 1.6.8, and I did this:
$ pip install codechefcli
Collecting codechefcli
Downloading https://files.pythonhosted.org/packages/cc/e1/f36711898abc0fa1801623ef49b1e592f5089601d87cccfa7eb600257ed3/codechefcli-0.3-py2.py3-none-any.whl (45kB)
100% |████████████████████████████████| 51kB 45kB/s
Collecting BeautifulSoup4 (from codechefcli)
Downloading https://files.pythonhosted.org/packages/a6/29/bcbd41a916ad3faf517780a0af7d0254e8d6722ff6414723eedba4334531/beautifulsoup4-4.6.0-py2-none-any.whl (86kB)
100% |████████████████████████████████| 92kB 88kB/s
Requirement already satisfied: requests in /usr/local/lib/python2.7/site-packages (from codechefcli) (2.7.0)
Installing collected packages: BeautifulSoup4, codechefcli
Successfully installed BeautifulSoup4-4.6.0 codechefcli-0.3
when
$ codechefcli --help
I got this:
Traceback (most recent call last):
File "/usr/local/bin/codechefcli", line 7, in <module>
from codechefcli.__main__ import main
File "/usr/local/lib/python2.7/site-packages/codechefcli/__main__.py", line 6, in <module>
from .problems import (get_contests, get_description, get_ratings,
File "/usr/local/lib/python2.7/site-packages/codechefcli/problems.py", line 13, in <module>
from .utils.helpers import (color_text, get_session, html_to_list,
ImportError: cannot import name color_text
Responses from various options require styling as to enhance the UI/UX.
Example (output of --search option):
This prints out a table with headers as capitals. Could print out as bold, title-cased. Also, in rows it could print out the Code in different color.
NAME CODE SUCCESSFUL SUBMISSION ACCURACY
MEX-ception TOTEM 7 32.26
Page Down Error
Sometimes(like today) due to too many requests pages( like today it was the rating page), the page is taken down, which is causing exceptions in catching the json(JSONDecodeError).
Would be good if I can install it from pip !
@parascoder1 please add this feature.
I've some suggestions too: How about using subcommands instead of using options for logging in, getting the problem description, listing contests, and submitting code?
Maybe something like:
codechefcli login
to logincodechefcli problem WEICOM
to get the problem descriptioncodechefcli problem --level easy
or codechefcli problem --search easy
to search for problems based on difficultycodechefcli contests
to list contestscodechefcli submit WEICOM /path/to/solution/file C++
to submit a solution. Maybe we can use options here.How about we use typer, instead of argparse
?
Originally posted by @sreesh-mallya in #51 (comment)
Should be compatible with:
Non-exhaustive list of checks:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.