polygon-cli
Command-line tool for polygon
Requirements
- Python 3 (tested on 3.4)
- requests lib
- prettytable lib
- colorama lib
- pyyaml lib
- diff and diff3 available in path
Supported features
- Download files and solutions from polygon.
- Uploading them back to polygon.
- Automatic merging with conflicts.
Installation
Using pip3
Run pip3 install polygon-cli
Using the source code
-
Install Python3 and setuputils module (for example, it goes with pip3)
-
Checkout repo using
git clone https://github.com/kunyavskiy/polygon-cli.git -
Run
python3 setup.py install [--user]- On Linux, it will put the executable polygon-cli in /usr/local/bin
- On Windows, it will put the executable polygon-cli in Scripts directory of your Python3 installation. It should be added to the path variable for easier usage.
Add the option
--userto install as local user without root/administrator privileges. -
Even if it doesn't run, install the dependencies manually as below,
pip3 install requestspip3 install coloramapip3 install prettytablepip3 install pyyaml
Running and authentication
Run using polygon-cli command.
Usually the usage starts with (use problem short name or problem id instead of aplusb):
polygon-cli init aplusbpolygon-cli update
The commands above create a working copy in the current folder. Use polygon-cli -h to see other commands of the client.
On the first usage login, password, api_key and api_secret will be asked.
They will be stored locally in plain text.
You may leave password field empty. If you do that, some features based on html parsing, because of lack of api will not work then.
Metadata
Release files for polygon-cli 1.1.14
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 | Actions |
|---|---|---|---|---|
| polygon_cli-1.1.14.tar.gz | 24.2 kB | Without provenance | Details for polygon_cli-1.1.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| polygon_cli-1.1.14-py3-none-any.whl | Python 3 | none | any | Details for polygon_cli-1.1.14-py3-none-any.whl |
Total release size: 56.6 kB
Release files / polygon_cli-1.1.14.tar.gz
| Download URL | polygon_cli-1.1.14.tar.gz |
|---|---|
| Size | 24.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d9562a70ec048a9e64250612a95c0ac1a525d4fbff070a2791309f8ae389a05
|
|
BLAKE2b-256 checksum How to use checksums |
5d08921432b2038091f611517543d6d1588a2798924f0a6d7cac6290462dd73b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / polygon_cli-1.1.14-py3-none-any.whl
| Download URL | polygon_cli-1.1.14-py3-none-any.whl |
|---|---|
| Size | 32.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8951dddc9e82b1daf56a668a49c3096872ea3ec4a65aecc634c6185de3acb98e
|
|
BLAKE2b-256 checksum How to use checksums |
a3e8a8279f462add4d0c77004961f333bc31a0031be2f3ab23ef2b06641998fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for polygon-cli 1.1.14
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.