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 internet-archive-uploader

To use the library

from InternetArchiveUploader 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.7.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file internet_archive_uploader-1.2.7.tar.gz.

File metadata

File hashes

Hashes for internet_archive_uploader-1.2.7.tar.gz
Algorithm Hash digest
SHA256 60847a23024a87f4f2c61365db345f0fd4583f6a81ac4f32e487ed01a890dcde
MD5 17177a5918b16a13c061b5ce96694c04
BLAKE2b-256 47de371bfc71b20732358e46f55626b3fe8347868766ccade4417d8cbfc0f107

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for internet_archive_uploader-1.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 08db24471eb7d8b0898ad2425296b82227b8b8053fe14cd6eaf4eab9ef649e6b
MD5 d6f9f2b91c32646941b611bb3c142214
BLAKE2b-256 e7d7e69959e312f3dc4bf70b90f6c1c8b68f744964a20e98ec0cb1d294470144

See more details on using hashes here.

Supported by

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