This tool can help you more conveniently perform some operations.
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pomeloabc_OI-1.0.1.tar.gz
.
File metadata
- Download URL: pomeloabc_OI-1.0.1.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c480a61f08132dafaad5939c992ed2372e91ae8781490f4aa039647ec06ac3be |
|
MD5 | 939811d48fb5e47908445427de6aa22d |
|
BLAKE2b-256 | b753c15acc5530bf7a77acbc47f51095b9a660b47be6bbae174bf8bdca5abeba |
File details
Details for the file pomeloabc_OI-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: pomeloabc_OI-1.0.1-py3-none-any.whl
- Upload date:
- Size: 23.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c6c300c7e31efc2f302f3c5d000f57930dea42a1b3cc0a95f8e6361d1f365b4 |
|
MD5 | cdb2a34f9f92155d2f535605d1e22829 |
|
BLAKE2b-256 | 2dbc122c6d365b038e877ed89c4dcf6f004a8acae2cfb3b2fd7fdfef23f9c711 |