Skip to main content

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

Metadata

Release files for filelibpy 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for filelibpy 0.0.8
File Size Uploaded
filelibpy-0.0.8.tar.gz 26.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for filelibpy 0.0.8
File Interpreter ABI Platform
filelibpy-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 46.1 kB

Release files / filelibpy-0.0.8.tar.gz

Download URL filelibpy-0.0.8.tar.gz
Size 26.4 kB
Tags Source
SHA-256 checksum
How to use checksums
785b720d3913e4d1c57f8aa70eda99f9fb20e7fbc6252e94c1d553010b46754d
BLAKE2b-256 checksum
How to use checksums
5b06f8939063ba7e088d97b5f5671e64908b2a73fca17660da2faa554ff5bc13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Release files / filelibpy-0.0.8-py3-none-any.whl

Download URL filelibpy-0.0.8-py3-none-any.whl
Size 19.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
072b1d0132e4a6788f8c268616a627ad04cd018c4b5e0c036c88876ea737dd5b
BLAKE2b-256 checksum
How to use checksums
453636a39a7035f1ca7994e4bafca03d9728df94e83794eb886577441779019d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page