Pinchana Core
Pinchana Core is the shared Python library used by the Pinchana gateway and platform modules. It provides common request and legacy response models, cache storage, music extraction helpers, VPN control, module lifecycle support, and the in-process plugin registry.
Main packages
pinchana_core.modelsdefines the shared Pydantic request and module response types.pinchana_core.storagedownloads media, resolves cache paths, and evicts the oldest post directories when the configured size limit is exceeded.pinchana_core.musiccontains common behavior for the music platform modules.pinchana_core.vpnchecks the tunnel, Gluetun DNS process, and a real DNS lookup before reporting the VPN ready, and safely reconnects the tunnel.pinchana_core.docker_managerreads module configuration and performs optional container lifecycle operations.pinchana_core.pluginsregisters modules that run inside the gateway process during development.
The gateway, rather than this package, converts module responses to the public API v1 {data, meta} contract.
Development
Run commands from this directory:
uv sync --frozen
uv run python -c "import pinchana_core; print('pinchana_core imported')"
Other repository modules consume this package through a local uv path dependency. Docker builds must use the parent pinchana-api directory as their build context because module Dockerfiles copy both this package and the selected service.
The DNS readiness probe resolves cloudflare.com with a five-second timeout.
Direct deployments may override these defaults with
VPN_DNS_PROBE_HOSTNAME and VPN_DNS_PROBE_TIMEOUT_SECONDS.
Security notes
Treat cached media as private operational data. Do not expose arbitrary cache paths, Gluetun control port 8000, or Docker lifecycle operations to the public Internet. CONTAINER_MODE=false disables lifecycle routes but does not remove an existing Docker socket mount.
License
MIT. See LICENSE in the repository root.
Metadata
Release files for pinchana-core 26.11.17
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 |
|---|---|---|---|---|
| pinchana_core-26.11.17.tar.gz | 19.8 kB | With provenance | Details for pinchana_core-26.11.17.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pinchana_core-26.11.17-py3-none-any.whl | Python 3 | none | any | Details for pinchana_core-26.11.17-py3-none-any.whl |
Total release size: 44.0 kB
Release files / pinchana_core-26.11.17.tar.gz
| Download URL | pinchana_core-26.11.17.tar.gz |
|---|---|
| Size | 19.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5805ab09fa3214f396c93a630a5362e39590b1a42e547d87357be30bb13b573a
|
|
BLAKE2b-256 checksum How to use checksums |
001985843a71e42ab2a0d99e055aba1ebc4a86253db3dc84eda5b0a86afb33ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / pinchana_core-26.11.17-py3-none-any.whl
| Download URL | pinchana_core-26.11.17-py3-none-any.whl |
|---|---|
| Size | 24.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b927486894e453b75e47925d9ca4f265f7805f3ee993a9d4182001793d5ab78
|
|
BLAKE2b-256 checksum How to use checksums |
8e031bea692381d99dff9d6267a416e646df1481c79410890a3fb392255e8a52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for pinchana-core 26.11.17
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pinchana_core-26.11.17.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA 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.