A Python package for interacting with the Drime API.
Project description
Drime Package
drime
is a Python client library for interacting with the Drime API.
Installation
To install the drime
package, you can use pip:
pip install drime
Usage
Here is a quick guide on how to use the Drime package:
import drime
# Initialize the Drime API client with your API token
drime_api = drime.DrimeAPI(token="your_api_token")
# Login to your account
response = drime_api.login(email="your_email@example.com", password="your_password")
print(response)
# Create a new folder
folder_response = drime_api.create_folder(name="New Folder")
print(folder_response)
# Upload a file
upload_response = drime_api.upload_file(file_path="/path/to/your/file.txt")
print(upload_response)
# Get file entries
file_entries = drime_api.get_file_entries()
print(file_entries)
# Delete file entries
delete_response = drime_api.delete_file_entries(entry_ids=["file_id_1", "file_id_2"], permanent=True)
print(delete_response)
# Move file entries
move_response = drime_api.move_file_entries(entry_ids=["file_id_1"], target_folder_id="new_folder_id")
print(move_response)
# Share a file entry
share_response = drime_api.share_file_entry(entry_id="file_id_1", user_email="user@example.com")
print(share_response)
# Create a shareable link
link_response = drime_api.create_shareable_link(entry_id="file_id_1")
print(link_response)
Make by PainDe0Mie (painde0miie)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
drime-0.1.1.tar.gz
(2.7 kB
view hashes)
Built Distribution
drime-0.1.1-py3-none-any.whl
(3.0 kB
view hashes)