koishi.py
[Documentation] [Installation] [Testing] [Credits] [Contributing] [License]
Wrapper library for the unofficial scraped API of the satori testing system.
Example usage
>>> from koishi import Koishi
>>> foo = Koishi("login", "password")
>>> foo[4]
<Contest 6460771 approved "Liga Informatyczna V LO, 2020/21">
>>> foo[4].problems
[<Problem 6629872 X1 Promocja>, <Problem 6629900 X2 Magazyn Prezentow>,
...
<Problem 6473321 PIZ Pizza>, <Problem 6473327 TRA Tramwaje>]
>>> foo[4][6]
<Problem 6501411 A01 Meteory>
>>> foo[4][6].submit("print(\"hehe\")", "py")
6851966
>>> foo[4].result
<Result 6851966 A01 2021-04-03 22:45:10 QUE>
>>> foo[4][6].submit("print(\"trolling\")",
... lang="py",
... callback=lambda x: print(x.src x.details.tests, sep="\n")
... )
print("trolling")
[ResultTest(name='0', status=<RStatus.ANS: 1>, time='0.004')]
installation
$ pip install koishi
Credits
- MasFlam/SatoriCLI.jl - for helping with multipart problem submit requests.
- zielmicha/satori-cli - for inspiration / idea.
- u/plasticparakeet - Koishi Komeiji icon.
Contributing
- Fork this repo
- Create your feature branch (
git checkout -b feature/foobar) - Commit your changes (
git commit -am 'Add some foobar') - Push to the branch (
git push origin feature/foobar) - Create a new Pull Request
License
koishi is Free Software: You can use, study share and improve it at your will. Specifically you can redistribute and/or modify it under the terms and conditions of the MIT license.
Metadata
Release files for koishi 1.1.6
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 |
|---|---|---|---|---|
| koishi-1.1.6.tar.gz | 11.5 kB | Without provenance | Details for koishi-1.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| koishi-1.1.6-py3-none-any.whl | Python 3 | none | any | Details for koishi-1.1.6-py3-none-any.whl |
Total release size: 23.3 kB
Release files / koishi-1.1.6.tar.gz
| Download URL | koishi-1.1.6.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26630341cf3c32bed26eb9ec2e81cd808f50608d02ef04fc160a0fa1e40a2197
|
|
BLAKE2b-256 checksum How to use checksums |
3d63b03c7e2200c59cb791d184ea9df6775d607bcb1414a5b9c6c2963aeed677
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9
|
Release files / koishi-1.1.6-py3-none-any.whl
| Download URL | koishi-1.1.6-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
983685f74fa1de32f83c4788190778b7234d43eab475fe2dc0b9794c958cafd1
|
|
BLAKE2b-256 checksum How to use checksums |
a8a724f3647413bb43e822fe218ecfabd4aedad5e84bbbda189f669501c698ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9
|
Security for koishi 1.1.6
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.