Skip to main content

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

  1. .jwt.env - contains information about the the path to the config json file, the JWT user id and the enterprise id
A# JWT Settings
JWT_CONFIG_PATH = .jwt.config.json
JWT_USER_ID = 397515XXXX
ENTERPRISE_ID = 686XXX
  1. .jwt.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"
    }
    

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

boxutils-0.1.2.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

BoxUtils-0.1.2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file boxutils-0.1.2.tar.gz.

File metadata

  • Download URL: boxutils-0.1.2.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for boxutils-0.1.2.tar.gz
Algorithm Hash digest
SHA256 972f043884fa54dc83dab8e6525db2503a7f4badb19b65e726ec595651584422
MD5 41808b547e911aee93402ea4aad61809
BLAKE2b-256 f3b192b93acea84bbe1cc60bdc0d1adad7ac8093a3467dcf7e1e5c6c18def6de

See more details on using hashes here.

File details

Details for the file BoxUtils-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: BoxUtils-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for BoxUtils-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5033094b61a780cb91b016287f04b3f5eed68f469987060f722e8edb4a5c6c0b
MD5 29f68a8c6bc3de6166f53afb5bd51357
BLAKE2b-256 b599e6b6e9aca720fcd77bb30ee6bfc538a46088fb761f4c26b1ff3e65bcf306

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page