All Projects → Cloud11665 → koishi

Cloud11665 / koishi

Licence: MIT license
Python wrapper for the unofficial scraped API of the satori testing system.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to koishi

pbwrap
Pastebin API wrapper for Python
Stars: ✭ 19 (+46.15%)
Mutual labels:  wrapper
Shift
Light-weight EventKit wrapper.
Stars: ✭ 31 (+138.46%)
Mutual labels:  wrapper
SoapHttpClient
HttpClient wrapper for sending SOAP messages.
Stars: ✭ 80 (+515.38%)
Mutual labels:  wrapper
material-yew
Yew wrapper for Material Web Components
Stars: ✭ 116 (+792.31%)
Mutual labels:  wrapper
voxpopuli
Python wrapper for Espeak and Mbrola, for simple local TTS
Stars: ✭ 21 (+61.54%)
Mutual labels:  wrapper
scrapism
a work-in-progress guide to web scraping as an artistic and critical practice
Stars: ✭ 43 (+230.77%)
Mutual labels:  webscraping
python-sms-activate-ru
Wrapper for automatic SMS receiving by sms-activate.ru
Stars: ✭ 35 (+169.23%)
Mutual labels:  wrapper
metacritic api
PHP Metacritic API - Mirrored by my GitLab
Stars: ✭ 31 (+138.46%)
Mutual labels:  webscraping
GodotDiscordSDK
A Discord Game SDK wrapper for Godot, written in C.
Stars: ✭ 40 (+207.69%)
Mutual labels:  wrapper
python-makefun
Dynamically create python functions with a proper signature.
Stars: ✭ 62 (+376.92%)
Mutual labels:  wrapper
alpine-shellcheck
Docker image for Alpine Linux with latest ShellCheck, a static analysis tool for shell scripts.
Stars: ✭ 12 (-7.69%)
Mutual labels:  wrapper
hypixel-api-reborn
Feature-rich Hypixel API wrapper for Node.js
Stars: ✭ 80 (+515.38%)
Mutual labels:  wrapper
hcloud-js
A Node.js module for the Hetzner Cloud API
Stars: ✭ 40 (+207.69%)
Mutual labels:  wrapper
Pyblox
An API wrapper for Roblox written in Python. (Receives Updates)
Stars: ✭ 30 (+130.77%)
Mutual labels:  wrapper
steampak
Nicely packed tools to work with Steam APIs
Stars: ✭ 21 (+61.54%)
Mutual labels:  wrapper
newsemble
API for fetching data from news websites.
Stars: ✭ 42 (+223.08%)
Mutual labels:  webscraping
cablecuttr
An R wrapper for CanIStream.It API
Stars: ✭ 17 (+30.77%)
Mutual labels:  wrapper
TrackPurchase
단 몇줄의 코드로 다양한 쇼핑 플랫폼에서 결제 내역을 긁어오자!
Stars: ✭ 19 (+46.15%)
Mutual labels:  webscraping
hibpwned
Python API wrapper for haveibeenpwned.com (API v3)
Stars: ✭ 21 (+61.54%)
Mutual labels:  wrapper
snow-ctp
Node CTP Wrapper
Stars: ✭ 15 (+15.38%)
Mutual labels:  wrapper

koishi.py

pypi version API endpoint coverage CodeFactor

[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

Contributing

  1. Fork this repo
  2. Create your feature branch ( git checkout -b feature/foobar )
  3. Commit your changes         ( git commit -am 'Add some foobar' )
  4. Push to the branch              ( git push origin feature/foobar )
  5. 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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].