Skip to content

Instantly share code, notes, and snippets.

View dvaraujo's full-sized avatar

Deivid Valença de Araujo dvaraujo

  • Multilaser Industrial S.A.
  • São Paulo, Brasil
  • 23:35 (UTC -03:00)
  • LinkedIn in/dvaraujo
View GitHub Profile
@dvaraujo
dvaraujo / get_and_export_atlassian_users.py
Last active January 18, 2024 14:23
Python script to get and export all users from a Atlassian instance. Just set the environment variables and you are good to go. External dependecies: pandas, requests
import json
import requests
import pandas as pd
from requests.auth import HTTPBasicAuth
import os
API_TOKEN = os.getenv("JIRA_TOKEN")
AUTH_EMAIL = os.getenv("AUTH_EMAIL")
DOMAIN_NAME = os.getenv("DOMAIN_NAME")
COD TIPO_CLIENTE TIPO_EMPRESTIMO CD_SEXO IDADE QTD_DIVIDAS TEMP_RECUPERACAO
1 NOVO CDC M 26 0 227
2 NOVO RENEGOCIAÇÃO M 39 0 37
3 NOVO PESSOAL M 31 1
4 NOVO PESSOAL F 45 11
5 NOVO CDC F 25 0 8
6 NOVO PESSOAL M 35 14
7 NOVO CDC M 39 16
8 NOVO PESSOAL F 38 0 22
9 NOVO CDC M 64 0 14