Shared library for uSipipo ecosystem
Project description
uSipipo Commons
Librería compartida para el ecosistema uSipipo
Instalación
# Desde PyPI (privado, requiere token)
pip install usipipo-commons --index-url https://usipipo:${TOKEN}@pypi.pkg.github.com
# Desde GitHub (desarrollo)
pip install git+https://github.com/usipipo/usipipo-commons.git
Uso
from usipipo_commons.domain.entities import User, VpnKey, Payment
from usipipo_commons.schemas import CreateVpnKeyRequest, PaymentResponse
from usipipo_commons.constants import FREE_GB, REFERRAL_BONUS_GB
from usipipo_commons.utils import validate_telegram_id, format_bytes
Estructura
usipipo_commons/
├── domain/
│ ├── entities/ # Entidades del dominio
│ └── enums/ # Enums compartidos
├── schemas/ # Pydantic schemas
├── constants/ # Constantes compartidas
└── utils/ # Utilitarios
Desarrollo
# Clonar
git clone https://github.com/usipipo/usipipo-commons.git
cd usipipo-commons
# Instalar dependencias
uv sync --dev
# Ejecutar tests
uv run pytest
Publicación
# Build
uv build
# Publicar a GitHub Packages
uv publish --publish-url https://pypi.pkg.github.com
License
MIT © uSipipo
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
usipipo_commons-0.6.0.tar.gz
(53.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file usipipo_commons-0.6.0.tar.gz.
File metadata
- Download URL: usipipo_commons-0.6.0.tar.gz
- Upload date:
- Size: 53.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4a95b982c1b21f4ab0d2970ad9d03ea116727e5813866120d826e9bcb6e2c11
|
|
| MD5 |
1b4a0366440de9370dded4181148edaa
|
|
| BLAKE2b-256 |
aa986b05ab557d2e807f757eabed659222b372e65e15fe53453a3c186dc90ac7
|
File details
Details for the file usipipo_commons-0.6.0-py3-none-any.whl.
File metadata
- Download URL: usipipo_commons-0.6.0-py3-none-any.whl
- Upload date:
- Size: 26.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9ceb990d500a212f79160b5e9b9e883a0031f7250ea9f242249ec8ed533d4f0
|
|
| MD5 |
dccb342b00010181e120989a7b158076
|
|
| BLAKE2b-256 |
f91f5df0f16fc72b68b67490ff2ec80a4b9f9870867c51e1dfa04f9818f56068
|