Filelib API python package. Resumable file uploader and convertor.
Project description
filelib-python
Official python package for Filelib API
Installation
pip install filelibpy
This will install the library to your python environment.
This will also create a command that you can use in your terminal via filelib
Utilizing Filelib Python library
filelibpy
provides multiple components that allows you to customize your integration.
Acquiring Access Token
Access_token must be present in the request headers to be allowed to reach API endpoints
Authentication happens via a JWT sent out in the request headers
Customer does not sign/generate the JWT
Client creates this JWT using PyJWT
package.
Client
object takes API Key/Secret to generate the JWT payload and signature.
Client
can be passed the Key/Value either from a credentials file or from environment variable.
if credentials file set to use for Key/Value, the default value is:
~/.filelib/credentials
this value can be changed at Customer's discretion:
from filelib import Client
client = Client(credentials_source='credentials_file', credentials_path='path_to_credentials_file')
Credentials file must be in the following format:
[filelib]
filelib_api_key=561b788b-2aed-47bd-ac89-0b090ff70a75
filelib_api_secret=7cea6848-6eb4-470c-b0d0-f2850c3b670a
If Customer would like to use environment variables to pass Key/Value
Environment Variables must be as follows:
FILELIB_API_KEY={YOUR_API_KEY}
FILELIB_API_SECRET={YOUR_API_SECRET}
TODO: Dev Notes
- Allow to endpoint to be configurable to enable local dev testing
- Do not make any requests until upload is initiated
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
File details
Details for the file filelibpy-0.0.8.tar.gz
.
File metadata
- Download URL: filelibpy-0.0.8.tar.gz
- Upload date:
- Size: 26.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
785b720d3913e4d1c57f8aa70eda99f9fb20e7fbc6252e94c1d553010b46754d
|
|
MD5 |
7bda904a5a1f6a37f4374ea4467afa40
|
|
BLAKE2b-256 |
5b06f8939063ba7e088d97b5f5671e64908b2a73fca17660da2faa554ff5bc13
|
File details
Details for the file filelibpy-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: filelibpy-0.0.8-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
072b1d0132e4a6788f8c268616a627ad04cd018c4b5e0c036c88876ea737dd5b
|
|
MD5 |
d97fe7c610a6d6c4be1342287eddf33a
|
|
BLAKE2b-256 |
453636a39a7035f1ca7994e4bafca03d9728df94e83794eb886577441779019d
|