PomeloABC - OI
Project Introduction
This is an open-source OI tool developed by PomeloABC Studio, with code written in Python language.
This tool can help you more conveniently perform some OI operations.
Have you encountered the following situations:
-
Hope to generate some strong data in a short period of time and easily use them to capture several programs.
-
Hope to quickly crawl the question information (competition information) and submit the question code (competition code).
-
Hope to compare two huge files and calculate their similarity.
-
Hope to encrypt my private files and not crack them.
-
Hope to quickly convert my Markdown document into a PDF document.
So, you can use pomeloabc-OI and Python to achieve these requirements, and the current features include:
-
Program Pairer
-
Data Comparator
-
Data similarity comparator (using cosine similarity algorithm)
-
Data encryptor (using RSA algorithm)
-
Document Converter
-
Data generators (data structures, files, mathematics, strings, etc.)
-
Luogu Crawler (topics, competitions, users, posts, comments, private messages, including submission and other functions)
Getting Started Guide
Before downloading, you need to prepare Python.
Python download url: https://www.python.org
-
pip install:
pip3 install pomeloabc-oi -
git clone:
git clone https://github.com/AndyPomeloMars/OI.git
At present, please understand and operate on your own. The official documents will be released in the future (estimated time from July to August 2024)
If you find any gaps in the code, please raise an issue and make temporary modifications based on examples and source code
Usage examples
import pomeloabc_OI.OJHelper.Luogu as luogu
import pomeloabc_OI.Generator as gen
import pomeloabc_OI.Utils as utils
user = luogu.User("username", "password")
user.login()
problem = luogu.Problem(user, "P1001")
problem.generate()
problem.submit("P1001.cpp")
record = luogu.Record(user, "10000000")
result = record.get()
luogu.print_evaluation_res(result)
gra = gen.Graph()
graph = gra.graph(100, 70)
graph_str = gra.format(graph)
io = gen.IO("example")
io.input_write(graph_str)
rsa = utils.RSA(2048)
rsa.file_encode("example.in")
rsa.file_decode("example.in")
Configuration Required
-
Python$\geq$ 3.8playwright$\geq$ $1.31.0$bs4$\geq$ $0.0.1$rich$\geq$ $13.6.0$pyperclip$\geq$ $1.8.0$requests$\geq$ $2.31.0$pillow$\geq$ $9.4.0$html2text$\geq$ $2020.1.16$Crypto$\geq$ $1.4.0$sklearn$\geq$ $1.3.0$
-
Tex$2023$
Contribution
All contributors please check the Honor List page and sincerely thank them for their contributions to the pomeloabc-oi project.
Welcome to contribute to pomeloabc-oi. If you have any features you would like to add, you can provide us with an Issue or implement them yourself and then initiate a Pull Request.
For more detailed information on how to make contributions, please review how to make contributions.
Metadata
Release files for pomeloabc-OI 1.0.1
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 |
|---|---|---|---|---|
| pomeloabc_OI-1.0.1.tar.gz | 17.7 kB | Without provenance | Details for pomeloabc_OI-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pomeloabc_OI-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for pomeloabc_OI-1.0.1-py3-none-any.whl |
Total release size: 40.9 kB
Release files / pomeloabc_OI-1.0.1.tar.gz
| Download URL | pomeloabc_OI-1.0.1.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c480a61f08132dafaad5939c992ed2372e91ae8781490f4aa039647ec06ac3be
|
|
BLAKE2b-256 checksum How to use checksums |
b753c15acc5530bf7a77acbc47f51095b9a660b47be6bbae174bf8bdca5abeba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.2
|
Release files / pomeloabc_OI-1.0.1-py3-none-any.whl
| Download URL | pomeloabc_OI-1.0.1-py3-none-any.whl |
|---|---|
| Size | 23.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c6c300c7e31efc2f302f3c5d000f57930dea42a1b3cc0a95f8e6361d1f365b4
|
|
BLAKE2b-256 checksum How to use checksums |
2dbc122c6d365b038e877ed89c4dcf6f004a8acae2cfb3b2fd7fdfef23f9c711
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.2
|
Security for pomeloabc-OI 1.0.1
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.