https://github.com/cloud11665/koishi
Python wrapper for the unofficial scraped API of the satori testing system.
https://github.com/cloud11665/koishi
jagiellonian-university python satori tcs webscraping wrapper
Last synced: 4 months ago
JSON representation
Python wrapper for the unofficial scraped API of the satori testing system.
- Host: GitHub
- URL: https://github.com/cloud11665/koishi
- Owner: cloud11665
- License: mit
- Created: 2020-12-21T12:06:50.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-03-06T14:29:58.000Z (over 3 years ago)
- Last Synced: 2025-05-12T02:18:57.791Z (5 months ago)
- Topics: jagiellonian-university, python, satori, tcs, webscraping, wrapper
- Language: Python
- Homepage: https://satori.tcs.uj.edu.pl
- Size: 71.3 KB
- Stars: 15
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
koishi.py
![]()
[Documentation]
[Installation]
[Testing]
[Credits]
[Contributing]
[License]
Wrapper library for the unofficial scraped API of the satori testing system.
## Example usage
```py
>>> from koishi import Koishi
>>> foo = Koishi("login", "password")>>> foo[4]
>>> foo[4].problems
[, ,
...
, ]>>> foo[4][6]
>>> foo[4][6].submit("print(\"hehe\")", "py")
6851966>>> foo[4].result
>>> 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=, time='0.004')]
```## installation
```bash
$ pip install koishi
```## Credits
- [MasFlam/SatoriCLI.jl](https://github.com/MasFlam/SatoriCLI.jl) - for helping with multipart problem submit requests.
- [zielmicha/satori-cli](https://github.com/zielmicha/satori-cli) - for inspiration / idea.
- [plasticparakeet](https://svgshare.com/i/8Wo.svg) - Koishi Komeiji icon.
## Contributing
1. [Fork](https://github.com/Cloud11665/koishi/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.