Techfin Python API and Tools
Project description
pytechfin
Initializing
from pytechfin import Techfin, TOTVSRacAuth
cred = {
"client_id": "123",
"client_secret": "123", }
auth = TOTVSRacAuth(**cred)
tf = Techfin(auth)
Good practice using token
Never write in plain text your credentials. One can use the environment variables
TECHFINCLIENTID for the client ID
TECHFINCLIENTSECRET for the client secret
CAROLUSER Carol User with tenant access
CAROLPWD Carol User Password
e.g., one can create a .env file like this:
TECHFINCLIENTID=123
TECHFINCLIENTSECRET=1234
CAROLUSER=mycaroluser@mail.com
CAROLUSER=My@Pwd
and then
from pytechfin import Techfin
from dotenv import load_dotenv
load_dotenv(".env") #this will import these env variables to your execution.
tf = Techfin()
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
pytechfin-1.0.1.tar.gz
(11.8 kB
view details)
File details
Details for the file pytechfin-1.0.1.tar.gz.
File metadata
- Download URL: pytechfin-1.0.1.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9a065d1d5fa64b5a2716897dc4f8cc79ee20c44bf31aef313326a7ac71aa55c
|
|
| MD5 |
3a235dee45ef39545161db6a52e14c12
|
|
| BLAKE2b-256 |
e4c40f2a9377a1fd01a47fbcc0482b89b0440e666c8090659070f0c3c6f1a3fe
|