A utility package for performing Box file and folder operations with a service account
Project description
BoxUtils
A class using the box_sdk_gen python SDK for doing basic file and folder operations.
Configuration Info Locations
Key information is stored in the developer console for the selected app in Platform Apps.
The User ID and Enterprise ID is found on the General. Settings/App Info section.
The service account which folders/files should be shared with is located on the General Settings/Service Account Info section.
The app configuration json file can be downloaded under the Configuration/App Settings section.
Two files are required for initialization of the class
- box.env - contains information about the JWT user id and the enterprise id
A# JWT Settings
JWT_USER_ID = 397515XXXX
ENTERPRISE_ID = 686XXX
- box.config.json - contains the JWT credentials. This is downloaded from the box dev console.
# Sample app configuration file { "boxAppSettings": { "clientID": "1u3gto5in5gff7ve8031tx8x6kl8xxxx", "clientSecret": "********************************", "appAuth": { "publicKeyID": "", "privateKey": "", "passphrase": "" } }, "enterpriseID": "686XXX" }
Sample usage
You can find the full sample usage script in the sample_usage.py file.
For package creation and publishing
Be sure to update the setup.py with version information.
# create the dist
python setup.py sdist bdist_wheel
# upload the package
# credentials for pypi.org are kept in ~/.pypirc
twine upload dist/*
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
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
File details
Details for the file boxutils-0.1.5.tar.gz.
File metadata
- Download URL: boxutils-0.1.5.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62e58a0ff8ab17e33a1d6fa8dd104aa83e412f5c6ed05ed3f39d639a8e8454ff
|
|
| MD5 |
53a64d300c9aa939dc04d201d92fcb0b
|
|
| BLAKE2b-256 |
a1190afe82a4ecbfbc1ffaf8a849a41ad801c0940f7a7333d57199504f72e42e
|
File details
Details for the file BoxUtils-0.1.5-py3-none-any.whl.
File metadata
- Download URL: BoxUtils-0.1.5-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea51bffde6465fe4355b767345299604246ea06d9dec166f8f5ac2d15edee6b5
|
|
| MD5 |
1639827636d36c8d45777e115330f50c
|
|
| BLAKE2b-256 |
443c3707b2aa8cf6eafcdb6cf855436e33bc2883c7c19bf998b35b699e0bff9e
|