Skip to content

Commit 1724ac2

Browse files
Merge pull request #50 from IvanildoBarauna/feat-StableVersiion
feat-StableVersion
2 parents 64afbd3 + 43cfabd commit 1724ac2

File tree

15 files changed

+429
-135
lines changed

15 files changed

+429
-135
lines changed

.github/workflows/CI.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
poetry install
3131
3232
- name: Run tests & CodeCov
33-
run: |
33+
run: |
3434
coverage run -m pytest
3535
coverage report
3636
coverage xml

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.pre-commit-config.yaml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,32 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v3.4.0
4-
hooks: []
3+
rev: v4.6.0
4+
hooks:
5+
- id: check-yaml
6+
- id: trailing-whitespace
7+
8+
- repo: https://github.com/psf/black
9+
rev: 23.3.0
10+
hooks:
11+
- id: black
12+
13+
- repo: local
14+
hooks:
15+
- id: pylint
16+
name: pylint
17+
entry: pylint
18+
language: system
19+
types: [python]
20+
args:
21+
[
22+
"-rn", # Only display messages
23+
"--disable=C0114,C0115,C0116, R0903",
24+
]
525

626
# - repo: local
727
# hooks:
8-
# - id: version-increment
9-
# name: version-increment
28+
# - id: version-inc
29+
# name: Version Increase
1030
# entry: ./version_increment.sh
1131
# language: script
12-
# always_run: true
32+
# files: .*

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Python library that simplifies obtaining data from API endpoints by converting t
1919
![Python](https://img.shields.io/badge/-Python-05122A?style=flat&logo=python) 
2020
![Docker](https://img.shields.io/badge/-Docker-05122A?style=flat&logo=docker) 
2121
![Poetry](https://img.shields.io/badge/-Poetry-05122A?style=flat&logo=poetry) 
22-
![GitHub Actions](https://img.shields.io/badge/-GitHub_Actions-05122A?style=flat&logo=githubactions) 
22+
![GitHub Actions](https://img.shields.io/badge/-GitHub_Actions-05122A?style=flat&logo=githubactions) 
2323
![CodeCov](https://img.shields.io/badge/-CodeCov-05122A?style=flat&logo=codecov) 
2424
![pypi](https://img.shields.io/badge/-pypi-05122A?style=flat&logo=pypi) 
2525
![pandas](https://img.shields.io/badge/-pandas-05122A?style=flat&logo=pandas) 
@@ -49,29 +49,28 @@ from api_to_dataframe import ClientBuilder, RetryStrategies
4949
# Create a client for simple ingest data from API (timeout 1 second)
5050
client = ClientBuilder(endpoint="https://api.example.com")
5151

52-
# if you can define timeout with LinearStrategy and set headers:
52+
# if you can define timeout with LINEAR_RETRY_STRATEGY and set headers:
5353
headers = {
5454
"application_name": "api_to_dataframe"
5555
}
5656
client = ClientBuilder(endpoint="https://api.example.com"
57-
,retry_strategy=RetryStrategies.LinearStrategy
57+
,retry_strategy=RetryStrategies.LINEAR_RETRY_STRATEGY
5858
,connection_timeout=2
5959
,headers=headers)
6060

6161
"""
62-
NOTE: by default the quantity of retries is 3 and the time between retries is 1 second, but you can define manually, like this:
63-
62+
NOTE: by default the quantity of retries is 3 and the time between retries is 1 second, but you can define manually.
6463
"""
6564

6665
client = ClientBuilder(endpoint="https://api.example.com"
67-
,retry_strategy=RetryStrategies.LinearStrategy
66+
,retry_strategy=RetryStrategies.LINEAR_RETRY_STRATEGY
6867
,connection_timeout=10
6968
,headers=headers
7069
,retries=5
7170
,initial_delay=10)
72-
7371

74-
### timeout, retry_strategy and headers are opcionals parameters
72+
73+
### timeout, retry_strategy and headers are opcionals parameters
7574

7675
# Get data from the API
7776
data = client.get_api_data()

poetry.lock

Lines changed: 206 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)