An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          


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

```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.