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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
drime-0.1.1-py3-none-any.whl
(3.0 kB
view details)
File details
Details for the file drime-0.1.1.tar.gz.
File metadata
- Download URL: drime-0.1.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e8ed1a28fe85be7a6b873388468709cb273e4603ae9e2c7506d9551f4f4cf57
|
|
| MD5 |
edc389b764f0005994f7153117acc1df
|
|
| BLAKE2b-256 |
1d9553af304411f82fab6da14ae05771dbde6882ae0084f99303fbb5a7bda750
|
File details
Details for the file drime-0.1.1-py3-none-any.whl.
File metadata
- Download URL: drime-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
158138c57602ec10f494506a30a46bbc6e273a97914a2fc802ef51fa97da6109
|
|
| MD5 |
cdcdc9905de3e76db938b06745914811
|
|
| BLAKE2b-256 |
4c2c7761ed9cf276274a51ae4b3eeb7e1e3ff594d352369a5115022583fc787f
|