This release is a pre-release and may not be stable for production use.
ptrain
A minimal Python package scaffold for ptrain, with no runtime dependencies.
It includes an importable package, a command-line entry point, and build metadata.
Training functionality is not implemented yet.
Local development
Requires Python 3.10+ and uv. Run these commands from this directory:
uv venv
uv pip install -e .
.venv/bin/ptrain --version
.venv/bin/python -m ptrain --help
import ptrain
print(ptrain.__version__)
Add application code under src/ptrain/ and commands in src/ptrain/cli.py.
The version is defined in src/ptrain/__init__.py; packaging metadata reads it
from that file. The initial version is 0.1.0a1 (pre-alpha).
Build and validate
uv build
uvx twine check --strict dist/ptrain-0.1.0a1-py3-none-any.whl dist/ptrain-0.1.0a1.tar.gz
The wheel and source distribution are written to dist/.
Publishing
Creating or building this template does not register or reserve the name on PyPI. Before a public release, add the intended functionality and update the description, author information, and license as appropriate. Add repository/documentation URLs once those destinations exist. Use a new version for each release.
For token-based publishing, configure an authorized PyPI token locally using
UV_PUBLISH_TOKEN, without placing its value in source files, command arguments,
or chat. Then upload the checked artifacts:
uv publish dist/ptrain-0.1.0a1-py3-none-any.whl dist/ptrain-0.1.0a1.tar.gz
Update the artifact filenames after changing the version. For a first upload, the credential must allow creating the new project. An absent project page does not guarantee that PyPI will accept the name.
For CI publishing without long-lived tokens, configure a PyPI Trusted Publisher.
Packaging references:
- Python Packaging User Guide
- uv building and publishing guide
- PyPI authentication and project-name guidance
License
MIT; see LICENSE.
Metadata
Release files for ptrain 0.1.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ptrain-0.1.0a1.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ptrain-0.1.0a1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.9 kB
Release files / ptrain-0.1.0a1.tar.gz
| Download URL | ptrain-0.1.0a1.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca4d4775ef85e3c997c36771ff6f3ec34a08032fe2066d70286fd4305f437314
|
|
BLAKE2b-256 checksum How to use checksums |
5ccdd4e2f2920658a885e71c382b7b73cf4abbc296ac2fc770339af0a7544fc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / ptrain-0.1.0a1-py3-none-any.whl
| Download URL | ptrain-0.1.0a1-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
48196b9596920abcf86892f742539286ca05fad7dda1efc65d78e4b48bd9dce5
|
|
BLAKE2b-256 checksum How to use checksums |
af741a4d2aaf755e96653445c78661f7d78c958c602198d01f62f0ab3876c2ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|