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

dropbox-updater

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dropbox-updater

Module to update python script using dropbox api

  • 1.0.7
  • PyPI
  • Socket score

Maintainers
1

dropbox-updater

Module to update python script using dropbox api

Installation

pip install dropbox-updater

Example

Uploading

>>> from dropbox_updater.updater import upload
>>> config = [
...     {
...         'name': 'my-project',
...         'token': DROPBOX_ACCESS_TOKEN,
...         'dropbox_path': '/my-project.tar.bz2',
...         'file_path': 'dist/my-project.tar.bz2',
...         'extract_dir': '.',
...     },
... ]
>>> upload(config)
05/12/2022 02:13:54 PM - INFO - Compressing to dist/my-project.tar.bz2...
05/12/2022 02:13:54 PM - INFO - my-project requires uploading.
05/12/2022 02:13:54 PM - INFO - Uploading to /my-project.tar.bz2...
05/12/2022 02:13:54 PM - INFO - Uploading (0/1)...
05/12/2022 02:13:57 PM - INFO - Uploading (1/1)...

Checking for updates

>>> from dropbox_updater.updater import check_for_updates
>>> config = [
...     {
...         'name': 'my-project',
...         'token': DROPBOX_ACCESS_TOKEN,
...         'dropbox_path': '/my-project.tar.bz2',
...         'file_path': 'dist/my-project.tar.bz2',
...         'extract_dir': '.',
...     },
... ]
>>> check_for_updates(config, restart=False)
05/12/2022 02:22:38 PM - INFO - Checking for updates...
05/12/2022 02:22:39 PM - INFO - Already upto date.

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