Skip to main content

📦 Radimbig Pinchana Core

Radimbig Pinchana Core is an unofficial PyPI distribution of the original Pinchana Core project, maintained by radimbig.

This fork exists to provide an installable package for downstream consumers. It is not an official upstream release by the original Pinchana author.

The Python import name remains pinchana_core.

It provides shared models, storage management, VPN control, and Docker orchestration logic used by both the gateway and the individual scraper modules.


✨ Key Components

1. Models (pinchana_core.models)

Defines the standard Pydantic v2 schemas for requests and responses, ensuring consistent data structures across all modules.

  • ScrapeRequest: Standardizes input URL and options.
  • ScrapeResponse: Uniform output format for media metadata.
  • MediaItem: Represents an individual image or video in a gallery.

2. Storage (pinchana_core.storage)

An intelligent file-based storage system with a Global Media Cache.

  • LRU Eviction: Automatically deletes the oldest media files when the cache exceeds a configurable size (e.g., 10GB).
  • Download Helpers: Concurrent downloading of media with retry logic.
  • Path Resolution: Standardized directory structure for cached media.

3. VPN Controller (pinchana_core.vpn)

Provides an interface to interact with Gluetun.

  • Signal Rotation: Triggers an immediate IP change via the Gluetun API.
  • Health Checks: Monitors the status of the VPN tunnel.

4. Docker Manager (pinchana_core.docker_manager)

Handles the discovery and lifecycle of scraper modules running in Docker containers.

  • Dynamic Discovery: Reads modules.yaml to identify available scrapers and their route patterns.
  • Lifecycle Control: Can programmatically start, stop, or rebuild scraper containers.

5. Plugin Registry (pinchana_core.plugins)

A lightweight registry for "in-process" plugins, allowing modules to be imported directly into the server for easier development or single-binary deployments.


🛠 Usage

This package is intended to be used as a dependency in Pinchana-based projects that need a PyPI-installable distribution.

Install from PyPI

pip install radimbig-pinchana-core

Import in Python

python -c "import pinchana_core; print(pinchana_core.__all__)"

🚀 Release Flow

This fork is prepared for tag-based PyPI publishing through GitHub Actions.

To publish a new release, the maintainer only needs to:

  1. Add PYPI_API_TOKEN to the GitHub repository secrets.
  2. Create and push a release tag matching the package version, for example v1.0.0.

The GitHub Actions publish workflow will build the package and upload it to PyPI.

Required GitHub Secret

  • PYPI_API_TOKEN: PyPI API token for the radimbig-pinchana-core project.

Upstream Attribution

This repository contains an MIT-licensed fork of the original Pinchana Core project.

  • Original project: https://github.com/Pinchana/pinchana-core
  • Original author and upstream decisions remain with the upstream project
  • This fork only maintains packaging and distribution under the radimbig namespace

📜 License

MIT. See the LICENSE file for details.

Metadata

Release files for radimbig-pinchana-core 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for radimbig-pinchana-core 1.0.0
File Size Uploaded Provenance Actions
radimbig_pinchana_core-1.0.0.tar.gz 12.2 kB Without provenance Details for radimbig_pinchana_core-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for radimbig-pinchana-core 1.0.0
File Interpreter ABI Platform Actions
radimbig_pinchana_core-1.0.0-py3-none-any.whl Python 3 none any Details for radimbig_pinchana_core-1.0.0-py3-none-any.whl

Total release size: 27.6 kB

Release files / radimbig_pinchana_core-1.0.0.tar.gz

Download URL radimbig_pinchana_core-1.0.0.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c1a5c10657fc242fe662fd2b262ad29f755848f9aaaeb75dfc6eee5062565085
BLAKE2b-256 checksum
How to use checksums
ba025207f2fd980bbeceb4883cbe6ca4c67c390d9e0a14265217ddb762727260
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / radimbig_pinchana_core-1.0.0-py3-none-any.whl

Download URL radimbig_pinchana_core-1.0.0-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0df5fac70fc056a4750f26199f7e936421e552e89ba1a6ff78d0ecd4dc82d2a7
BLAKE2b-256 checksum
How to use checksums
89228ccafab549ff9b83468388171ee57ae17c5475f414dbc8023edf0de2b740
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for radimbig-pinchana-core 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page