Skip to content

Commit 4d4298d

Browse files
author
Segment Vision Pro
committed
Initial (secrets redacted for push)
0 parents  commit 4d4298d

File tree

111 files changed

+44623
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+44623
-0
lines changed

.coverage

52 KB
Binary file not shown.

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @carlosmiei
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Code snippet to reproduce the behavior:
15+
16+
**Expected behavior**
17+
A clear and concise description of what you expected to happen.
18+
19+
**Environment (please complete the following information):**
20+
- Python version: [e.g. 3.5]
21+
- Virtual Env: [e.g. virtualenv, conda]
22+
- OS: [e.g. Mac, Ubuntu]
23+
- python-binance version
24+
25+
**Logs**
26+
Please set logging to debug and paste any logs here, or upload `debug.log` file to the issue.
27+
```python
28+
import logging
29+
# This will log to both console and file
30+
logging.basicConfig(level=logging.DEBUG,format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
31+
handlers=[
32+
logging.FileHandler('debug.log'),
33+
logging.StreamHandler()
34+
]
35+
)
36+
```
37+
38+
**Additional context**
39+
Add any other context about the problem here.

.github/workflows/python-app.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: Python application
5+
6+
on:
7+
workflow_dispatch:
8+
push:
9+
branches: [ main, master ]
10+
pull_request:
11+
branches: [ main, master ]
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
lint:
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 5
20+
steps:
21+
- uses: actions/checkout@v5
22+
- name: Set up Python
23+
uses: actions/setup-python@v6
24+
with:
25+
python-version: '3.9'
26+
- name: Install Ruff
27+
run: pip install ruff
28+
- name: Lint code with Ruff
29+
run: ruff check --output-format=github --target-version=py39 .
30+
- name: Check code formatting with Ruff
31+
run: ruff format --check .
32+
continue-on-error: true
33+
34+
test:
35+
needs: lint
36+
runs-on: ubuntu-22.04
37+
timeout-minutes: 40
38+
strategy:
39+
max-parallel: 2
40+
matrix:
41+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
42+
env:
43+
PROXY: "http://188.245.226.105:8911"
44+
TEST_TESTNET: "true"
45+
TEST_API_KEY: "u4L8MG2DbshTfTzkx2Xm7NfsHHigvafxeC29HrExEmah1P8JhxXkoOu6KntLICUc"
46+
TEST_API_SECRET: "hBZEqhZUUS6YZkk7AIckjJ3iLjrgEFr5CRtFPp5gjzkrHKKC9DAv4OH25PlT6yq5"
47+
TEST_FUTURES_API_KEY: "227719da8d8499e8d3461587d19f259c0b39c2b462a77c9b748a6119abd74401"
48+
TEST_FUTURES_API_SECRET: "b14b935f9cfacc5dec829008733c40da0588051f29a44625c34967b45c11d73c"
49+
steps:
50+
- uses: actions/checkout@v5
51+
- name: Checking env
52+
run: |
53+
echo "PROXY: $PROXY"
54+
echo "Python version: ${{ matrix.python-version }}"
55+
- name: Set up Python ${{ matrix.python-version }}
56+
uses: actions/setup-python@v6
57+
with:
58+
python-version: ${{ matrix.python-version }}
59+
cache: 'pip'
60+
- name: Install dependencies
61+
run: |
62+
python -m pip install --upgrade pip
63+
pip install pytest pytest-cov pyright tox
64+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
65+
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
66+
- name: Type check with pyright (Python 3.12 only)
67+
if: matrix.python-version == '3.12'
68+
run: pyright
69+
- name: Test with tox
70+
run: tox -e py
71+
- name: Coveralls Parallel
72+
uses: coverallsapp/github-action@v2
73+
with:
74+
parallel: true
75+
finish:
76+
needs: test
77+
if: ${{ always() }}
78+
runs-on: ubuntu-latest
79+
timeout-minutes: 5
80+
steps:
81+
- name: Coveralls Finished
82+
uses: coverallsapp/github-action@v2
83+
with:
84+
parallel-finished: true

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.tox
2+
.cache/v/cache
3+
docs/_build
4+
binance/__pycache__/
5+
build/
6+
dist/
7+
python_binance.egg-info/
8+
*__pycache__
9+
*.egg-info/
10+
.idea/
11+
venv*/
12+
.vscode
13+
.binance/

.pre-commit-config.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.5.0
4+
hooks:
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
9+
- repo: https://github.com/astral-sh/ruff-pre-commit
10+
rev: v0.8.1
11+
hooks:
12+
- id: ruff
13+
- id: ruff-format
14+
15+
- repo: https://github.com/RobertCraigie/pyright-python
16+
rev: v1.1.389
17+
hooks:
18+
- id: pyright

.readthedocs.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Read the Docs configuration file for Sphinx projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version and other tools you might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.12"
12+
# You can also specify other tool versions:
13+
# nodejs: "20"
14+
# rust: "1.70"
15+
# golang: "1.20"
16+
17+
# Build documentation in the "docs/" directory with Sphinx
18+
sphinx:
19+
configuration: docs/conf.py
20+
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
21+
# builder: "dirhtml"
22+
# Fail on all warnings to avoid broken references
23+
# fail_on_warning: true
24+
25+
# Optionally build your docs in additional formats such as PDF and ePub
26+
# formats:
27+
# - pdf
28+
# - epub
29+
30+
# Optional but recommended, declare the Python requirements required
31+
# to build your documentation
32+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
33+
python:
34+
install:
35+
- requirements: docs/requirements.txt
36+
- requirements: requirements.txt

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
dist: xenial
2+
3+
language: python
4+
5+
python:
6+
- "3.6"
7+
- "3.7"
8+
- "3.8"
9+
- "3.9"
10+
11+
install:
12+
- pip install -r test-requirements.txt
13+
- pip install -r requirements.txt
14+
- pip install tox-travis
15+
16+
script:
17+
- tox
18+
19+
after_success:
20+
- coveralls

0 commit comments

Comments
 (0)