Skip to main content

An archiving tool for Historypin

Project description

pincushion

Test

pincushion is a command line tool for creating archives for resources on Historypin. It reads data from the Historypin API and writes a static website to a given directory. The resulting file structure looks something like:

archive
├── collections
│   ├── my-collection
│   │   ├── image.jpg
│   │   └── index.html
│   ├── my-other-collection
│   │   ├── image.jpg
│   │   └── index.html
│   └── my-last-collection
│       ├── image.jpg
│       └── index.html
├── data.json
├── index.html
├── pins
│   ├── 123 
│   │   ├── image.jpg
│   │   └── index.html
│   ├── 456
│   │   ├── image.jpg
│   │   └── index.html
│   ├── 789 
│   │   ├── image.jpg
│   │   └── index.html
│   ├── 1001 
│   │   ├── index.html
│   │   └── media.mp3
│   └── 2112
│       ├── index.html
│       └── media.mp4
└── user.jpg

Each pin has its own directory, which contains the uploaded media (image, audio or video). The data.json file is an aggregation of JSON data collected from the Historypin API, which is used to create the static site.

Install

pip install pincushion

Use

Create an archive for user 11670:

pincushion user --user-id 11670 --archive-path my-archive

Open the my-archive/index.html file in your browser.

Similarly you can create an archive for a "collection" as long as the collection contains sub-collections:

pincushion collection --slug 2025-summer-institute --archive-path my-collection

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pincushion-0.5.1.tar.gz (125.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pincushion-0.5.1-py3-none-any.whl (77.3 kB view details)

Uploaded Python 3

File details

Details for the file pincushion-0.5.1.tar.gz.

File metadata

  • Download URL: pincushion-0.5.1.tar.gz
  • Upload date:
  • Size: 125.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.8

File hashes

Hashes for pincushion-0.5.1.tar.gz
Algorithm Hash digest
SHA256 25e467af7956e97a13f004637ad439bee2c93bb69db4973493b01a7b10b347c1
MD5 6618edbda1e119fb830c8456f9745b32
BLAKE2b-256 61ee3545a9fa9b7085e063a3f06b5019ccf0b16329eac4722999b9929e21872b

See more details on using hashes here.

File details

Details for the file pincushion-0.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pincushion-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7740f445fd721d6d07e959956bf9f6c557a0cc266ebe99d3ce68f49e3e9fdfd
MD5 c109fc7b8062a7b6ca9846372971d515
BLAKE2b-256 040fe80d0630f1a0f4521a1b291493f1cb32316e3a03d65e9060c67f376a5592

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page