Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

internet-archive-uploader

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

internet-archive-uploader

A wrapper around the internetarchive package for uploading files and directorys

  • 1.2.6
  • PyPI
  • Socket score

Maintainers
1

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc