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.4.0.tar.gz (76.3 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.4.0-py3-none-any.whl (77.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pincushion-0.4.0.tar.gz
Algorithm Hash digest
SHA256 205c85f84259fa23596c245192e45210a0a38543b667cec9273216465c700e31
MD5 4648ff53dedc9a715937f43b15c2f6aa
BLAKE2b-256 ffa37c2e89898c53d232b7e2e5eb6258e47c04557e446b34e78a9cf52a2ea55d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pincushion-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2536a1458e3336fa1f56ac5ce3a39581dfcf95b50a570c9b92c1cf70ceabcd9
MD5 4fab165caf9664517795593368c10a83
BLAKE2b-256 a6f44c26edb14f61473db33a1642f7b5a28e3cd826dcd1e62ea102fc1146926a

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