Skip to content

Script Python utilizado para integração das APIs da Cobli com softwares de BI

Notifications You must be signed in to change notification settings

Cobliteam/cobli-bi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cobli - BI

Installing

Dependencies

Current production version of python interpreter is 3.8, so it is recommended to use same python version in your development environment.

On the terminal

It's recommended to use python vitual environments to deal with dependencies per-project.

After clonning the project, just execute inside project root:

python -m venv venv

To activate it:

source venv/bin/activate

All project related commands are intended to be execute inside this virtual environment

To get out of a virtual environment:

deactivate

Installing dependencies and running application locally:

First, create a .env file and write

API_KEY={your-api-key}

Then, run this command on terminal

pip install -r src/requirements.txt
cd src
python generate_bi_script.py 

Troubleshooting

If you get error with tkinter library, make sure you are using python 3.8 (some versions as 3.9.2 has problems with this lib) and run this command on terminal:

sudo apt-get install python3-tk

Releases

The CI will generate a new release on github in publish_release job, remember to bump the version of release in .circleci/config.yml