cryptomonere 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cryptomonere-0.0.1/.flake8 +3 -0
- cryptomonere-0.0.1/.github/workflows/lint.yaml +23 -0
- cryptomonere-0.0.1/.github/workflows/release.yaml +48 -0
- cryptomonere-0.0.1/.github/workflows/test.yaml +50 -0
- cryptomonere-0.0.1/.gitignore +11 -0
- cryptomonere-0.0.1/.pre-commit-config.yaml +28 -0
- cryptomonere-0.0.1/LICENSE.txt +673 -0
- cryptomonere-0.0.1/PKG-INFO +19 -0
- cryptomonere-0.0.1/README.md +20 -0
- cryptomonere-0.0.1/pyproject.toml +43 -0
- cryptomonere-0.0.1/requirements.txt +1 -0
- cryptomonere-0.0.1/src/cryptomonere/SqlHandler.py +97 -0
- cryptomonere-0.0.1/src/cryptomonere/__init__.py +0 -0
- cryptomonere-0.0.1/src/cryptomonere/alerts_json.py +89 -0
- cryptomonere-0.0.1/src/cryptomonere/alerts_sample.json +10 -0
- cryptomonere-0.0.1/src/cryptomonere/api_keys_sample.json +3 -0
- cryptomonere-0.0.1/src/cryptomonere/app.py +305 -0
- cryptomonere-0.0.1/src/cryptomonere/coinmarketcap.py +48 -0
- cryptomonere-0.0.1/src/cryptomonere/config_default.json +19 -0
- cryptomonere-0.0.1/src/cryptomonere/sql/dedupe_currency_map.sql +29 -0
- cryptomonere-0.0.1/src/cryptomonere/sql/quote_to_quote_latest.sql +12 -0
- cryptomonere-0.0.1/src/cryptomonere/sql/recreate_cryptocurrency_map.sql +16 -0
- cryptomonere-0.0.1/src/cryptomonere/sql/test.sql +15 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: lint
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
branches: ['master']
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
lint:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- name: Checkout Branch
|
|
12
|
+
uses: actions/checkout@v4
|
|
13
|
+
- name: Install Python
|
|
14
|
+
uses: actions/setup-python@v5
|
|
15
|
+
with:
|
|
16
|
+
python-version: '3.12'
|
|
17
|
+
- name: Update pip
|
|
18
|
+
run: |
|
|
19
|
+
pip install --upgrade pip
|
|
20
|
+
- name: Run pre-commit
|
|
21
|
+
run: |
|
|
22
|
+
pip install pre-commit
|
|
23
|
+
pre-commit run --all
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
name: release
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
tags: ['v[0-9]+.[0-9]+.[0-9]+']
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
lint:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
steps:
|
|
10
|
+
- name: Checkout Branch
|
|
11
|
+
uses: actions/checkout@v4
|
|
12
|
+
- name: Install Python
|
|
13
|
+
uses: actions/setup-python@v5
|
|
14
|
+
with:
|
|
15
|
+
python-version: '3.12'
|
|
16
|
+
- name: Update pip
|
|
17
|
+
run: |
|
|
18
|
+
pip install --upgrade pip
|
|
19
|
+
- name: Run pre-commit
|
|
20
|
+
run: |
|
|
21
|
+
pip install pre-commit
|
|
22
|
+
pre-commit run --all
|
|
23
|
+
|
|
24
|
+
publish:
|
|
25
|
+
name: Build and Publish
|
|
26
|
+
needs: lint
|
|
27
|
+
runs-on: ubuntu-latest
|
|
28
|
+
environment:
|
|
29
|
+
name: Release
|
|
30
|
+
steps:
|
|
31
|
+
- name: Checkout branch
|
|
32
|
+
uses: actions/checkout@v4
|
|
33
|
+
- name: Install Python
|
|
34
|
+
uses: actions/setup-python@v5
|
|
35
|
+
with:
|
|
36
|
+
python-version: "3.12"
|
|
37
|
+
- name: Update pip
|
|
38
|
+
run: pip install --upgrade pip
|
|
39
|
+
- name: Build distribution
|
|
40
|
+
run: |
|
|
41
|
+
pip install flit
|
|
42
|
+
flit build --format "wheel"
|
|
43
|
+
- name: Upload to PyPI
|
|
44
|
+
env:
|
|
45
|
+
FLIT_USERNAME: ${{ vars.PYPI }}
|
|
46
|
+
FLIT_PASSWORD: ${{ secrets.PYPI }}
|
|
47
|
+
run: |
|
|
48
|
+
flit publish
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
name: test
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
tags: ['test-v[0-9]+.[0-9]+.[0-9]+']
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
lint:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
steps:
|
|
10
|
+
- name: Checkout Branch
|
|
11
|
+
uses: actions/checkout@v4
|
|
12
|
+
- name: Install Python
|
|
13
|
+
uses: actions/setup-python@v5
|
|
14
|
+
with:
|
|
15
|
+
python-version: '3.12'
|
|
16
|
+
- name: Update pip
|
|
17
|
+
run: |
|
|
18
|
+
pip install --upgrade pip
|
|
19
|
+
- name: Run pre-commit
|
|
20
|
+
run: |
|
|
21
|
+
pip install pre-commit
|
|
22
|
+
pre-commit run --all
|
|
23
|
+
|
|
24
|
+
publish:
|
|
25
|
+
name: Build and Publish
|
|
26
|
+
needs: lint
|
|
27
|
+
runs-on: ubuntu-latest
|
|
28
|
+
environment:
|
|
29
|
+
name: test
|
|
30
|
+
steps:
|
|
31
|
+
- name: Checkout branch
|
|
32
|
+
uses: actions/checkout@v4
|
|
33
|
+
- name: Install Python
|
|
34
|
+
uses: actions/setup-python@v5
|
|
35
|
+
with:
|
|
36
|
+
python-version: "3.12"
|
|
37
|
+
- name: Update pip
|
|
38
|
+
run: pip install --upgrade pip
|
|
39
|
+
- name: Build distribution
|
|
40
|
+
run: |
|
|
41
|
+
pip install flit
|
|
42
|
+
flit build --format wheel
|
|
43
|
+
- name: Upload to PyPI
|
|
44
|
+
env:
|
|
45
|
+
TWINE_REPOSITORY: ${{ vars.TWINE_REPOSITORY }}
|
|
46
|
+
TWINE_USERNAME: ${{ vars.TWINE_USERNAME }}
|
|
47
|
+
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
|
|
48
|
+
run: |
|
|
49
|
+
pip install twine
|
|
50
|
+
twine upload dist/* --verbose
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
files: ""
|
|
3
|
+
|
|
4
|
+
repos:
|
|
5
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
6
|
+
rev: v5.0.0
|
|
7
|
+
hooks:
|
|
8
|
+
- id: end-of-file-fixer
|
|
9
|
+
- id: trailing-whitespace
|
|
10
|
+
|
|
11
|
+
- repo: https://github.com/pycqa/isort
|
|
12
|
+
rev: 6.0.0
|
|
13
|
+
hooks:
|
|
14
|
+
- id: isort
|
|
15
|
+
name: isort (python)
|
|
16
|
+
|
|
17
|
+
- repo: https://github.com/psf/black
|
|
18
|
+
rev: 25.1.0
|
|
19
|
+
hooks:
|
|
20
|
+
- id: black
|
|
21
|
+
language_version: python3.12
|
|
22
|
+
args: [--target-version=py312]
|
|
23
|
+
|
|
24
|
+
- repo: https://github.com/pycqa/flake8
|
|
25
|
+
rev: 7.2.0
|
|
26
|
+
hooks:
|
|
27
|
+
- id: flake8
|
|
28
|
+
args: [--config=.flake8]
|