qqgjyx
Personal utility toolkit for ML/DL workflows. Lightweight, modular, and designed for personal projects. Ships a clean, sklearn-inspired structure and a unified QQ interface for ergonomics.
Installation
pip install qqgjyx
# or pin a version
pip install qqgjyx==0.1.2
Requires Python 3.9+.
Highlights
- Concise, cohesive API with the
QQclass - Environment and device utilities
- Reproducibility helpers (seeding)
- Matplotlib styling (scienceplots)
- Dataset helpers (train/val split)
- Sklearn-like structure for long-term maintainability
Quick start
from qqgjyx import QQ
QQ.help() # Show available utilities and usage
QQ.env() # Print environment info
QQ.dev() # Print device info and return torch.device
QQ.seed(42) # Set seeds across numpy/torch/lightning
QQ.style() # Set matplotlib style (scienceplots)
# Example: split a Dataset into train/val
from torch.utils.data import Dataset
class MyDataset(Dataset):
...
train_set, val_set = QQ.split(MyDataset(...), val_ratio=0.2, seed=42)
Flat, concise functions (direct imports)
from qqgjyx.helper import env, dev, seed
from qqgjyx.visual import style
from qqgjyx.data import split
env()
device = dev()
seed(123)
style()
Backwards-compatible aliases are available:
print_environment_info()→env()get_device_info()→dev()set_all_seeds()→seed()set_plt_style()→style()train_val_split()→split()
Module layout
qqgjyx/
__init__.py # version and QQ export
qq.py # QQ class (unified interface)
helper.py # env(), dev(), seed()
data/
__init__.py # split()
split.py
visual/
__init__.py # style()
plotting.py
model/ # placeholder
graph/ # placeholder
validator.py # ensure_between()
exceptor.py # QQGJYXError
Demo notebook
See demo.ipynb at the repository root for a walk-through of all features.
Development
Recommended: use a conda env (example: pkg-dev).
conda run -n pkg-dev python -m pip install -e .
conda run -n pkg-dev python -m pytest -q
Release pipeline (script)
Use the automated script to version, test, build, upload, and tag.
python deploy.py --version 0.1.3 --message "Add new feature"
# or auto-increment patch version
python deploy.py
# options
python deploy.py --skip-tests
python deploy.py --skip-upload
python deploy.py --dry-run
Under the hood, it:
- updates versions in
src/qqgjyx/__init__.pyandpyproject.toml - runs tests, builds sdist/wheel, validates with twine
- uploads to PyPI (using local credentials)
- commits and tags the release
Testing
conda run -n pkg-dev python -m pytest test/ -v
The suite includes core tests that avoid heavy deps and optional comprehensive tests (with mocks).
License
MIT License. See LICENSE.
Metadata
Release files for qqgjyx 0.1.5
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 |
|---|---|---|---|---|
| qqgjyx-0.1.5.tar.gz | 10.1 kB | Without provenance | Details for qqgjyx-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qqgjyx-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for qqgjyx-0.1.5-py3-none-any.whl |
Total release size: 18.1 kB
Release files / qqgjyx-0.1.5.tar.gz
| Download URL | qqgjyx-0.1.5.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7596505ce41af81780d54ae7314de57434c0acca7e6853b9f8a8e2b5e2bc649d
|
|
BLAKE2b-256 checksum How to use checksums |
71b70563de71fd2791d23aa9e894db024ca3050790a5e71103b84ec56480853a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.10
|
Release files / qqgjyx-0.1.5-py3-none-any.whl
| Download URL | qqgjyx-0.1.5-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2b4d1ce4ae669cf6251fe25fa36c41667054ef23e45b42e7176094249b63bc0
|
|
BLAKE2b-256 checksum How to use checksums |
8de19c2fcec56a1c055c3982dd76032218f1da61f5a7dab79cfce95b5723f99e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.10
|
Security for qqgjyx 0.1.5
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.