Skip to main content

A wrapper around the internetarchive package for uploading files and directorys

Project description

Internet Archive Uploader

This project is a simple wrapper for file/directory uploads built around the Internet Archive library. To use it you must have an existing account on the Internet Archive.

Usage

To install the library

pip install internetarchiveuploader

To use the library

import InternetArchiveUploader

uploader= InternetArchiveUploader(
  'myUniqueIdentifier',
  {'metadataAttribute1':'something'},
  'Your Internet Archive username/email',
  'Your Internet Archive password',
)

uploader.uploadFile('/path/to/file')

uploader.uploadDirectory('/path/to/directory')

The identifier must be unique for internet archive to create the archive but after that you can repeatedly use it to upload more files to that collection.

The metadata is a dictionary of metadata attributes with their values. You can learn more about metadata here.

The password and username should be self explanatory.

Contributions

If anyone uses this library and has issues or wants to contribute feel free to message me. I am willing to add extra features or do bug fixes. It should also be noted that I am using this package primarily to distribute my code for personal use and gain experience in publishing python packages.

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

internet-archive-uploader-1.2.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

internet_archive_uploader-1.2.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file internet-archive-uploader-1.2.2.tar.gz.

File metadata

File hashes

Hashes for internet-archive-uploader-1.2.2.tar.gz
Algorithm Hash digest
SHA256 73242fed5f064b0e435b107140449be769fdeec8814bb6e17a2ddbbf039c6686
MD5 843f2876d30b20be79b9ea12bb8afe16
BLAKE2b-256 ebdce73af8761a9c833becfdceab439d014cd26287d67d2b8de9d9b00873f339

See more details on using hashes here.

File details

Details for the file internet_archive_uploader-1.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for internet_archive_uploader-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9e39ab6f68f8cb153c83606437d7617d8e2af76bcf1d750d918988d6727ae821
MD5 5fbc79d9d08f91311fe5d276c93d3a6d
BLAKE2b-256 6d5dc5001a3f0d683188c08737c1deedf565951a583d721636844ffa3bbfae4d

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