satelles 0.0.0__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.
- satelles-0.0.0/.devcontainer/.env.config +5 -0
- satelles-0.0.0/.devcontainer/devcontainer.json +66 -0
- satelles-0.0.0/.github/semantic.yml +5 -0
- satelles-0.0.0/.github/workflows/ci.yml +56 -0
- satelles-0.0.0/.github/workflows/publish.yml +44 -0
- satelles-0.0.0/.github/workflows/test.yml +44 -0
- satelles-0.0.0/.gitignore +171 -0
- satelles-0.0.0/.python-version +1 -0
- satelles-0.0.0/.vscode/recommendations.json +9 -0
- satelles-0.0.0/.vscode/settings.json +27 -0
- satelles-0.0.0/Dockerfile +74 -0
- satelles-0.0.0/LICENSE +21 -0
- satelles-0.0.0/PKG-INFO +12 -0
- satelles-0.0.0/README.md +2 -0
- satelles-0.0.0/mypy.ini +4 -0
- satelles-0.0.0/pyproject.toml +27 -0
- satelles-0.0.0/ruff.toml +77 -0
- satelles-0.0.0/src/satelles/__init__.py +26 -0
- satelles-0.0.0/src/satelles/py.typed +0 -0
- satelles-0.0.0/src/satelles/satellite.py +177 -0
- satelles-0.0.0/src/satelles/tle.py +559 -0
- satelles-0.0.0/test/__init__.py +0 -0
- satelles-0.0.0/test/test_base.py +46 -0
- satelles-0.0.0/test/test_satellite.py +136 -0
- satelles-0.0.0/test/test_tle.py +449 -0
- satelles-0.0.0/uv.lock +429 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"build": {
|
|
3
|
+
"dockerfile": "../Dockerfile",
|
|
4
|
+
"context": "..",
|
|
5
|
+
"target": "development"
|
|
6
|
+
},
|
|
7
|
+
"customizations": {
|
|
8
|
+
"vscode": {
|
|
9
|
+
"extensions": [
|
|
10
|
+
"charliermarsh.ruff",
|
|
11
|
+
"ms-python.mypy-type-checker",
|
|
12
|
+
"ms-python.python",
|
|
13
|
+
"ms-toolsai.jupyter",
|
|
14
|
+
"tamasfe.even-better-toml"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"recommendations": [
|
|
18
|
+
"charliermarsh.ruff",
|
|
19
|
+
"ms-python.mypy-type-checker",
|
|
20
|
+
"ms-python.python",
|
|
21
|
+
"ms-toolsai.jupyter",
|
|
22
|
+
"tamasfe.even-better-toml"
|
|
23
|
+
],
|
|
24
|
+
"settings": {
|
|
25
|
+
"[python]": {
|
|
26
|
+
"editor.defaultFormatter": "charliermarsh.ruff",
|
|
27
|
+
"editor.formatOnSave": true,
|
|
28
|
+
"editor.semanticHighlighting.enabled": true
|
|
29
|
+
},
|
|
30
|
+
"editor.codeActionsOnSave": {
|
|
31
|
+
"source.organizeImports": "explicit"
|
|
32
|
+
},
|
|
33
|
+
"editor.cursorBlinking": "smooth",
|
|
34
|
+
"editor.cursorSmoothCaretAnimation": "on",
|
|
35
|
+
"editor.cursorStyle": "line",
|
|
36
|
+
"editor.formatOnSave": true,
|
|
37
|
+
"editor.rulers": [
|
|
38
|
+
88
|
|
39
|
+
],
|
|
40
|
+
"explorer.compactFolders": true,
|
|
41
|
+
"explorer.confirmDelete": true,
|
|
42
|
+
"ruff.codeAction.disableRuleComment": {
|
|
43
|
+
"enable": true
|
|
44
|
+
},
|
|
45
|
+
"ruff.enable": true,
|
|
46
|
+
"ruff.fixAll": true,
|
|
47
|
+
"ruff.importStrategy": "fromEnvironment",
|
|
48
|
+
"ruff.lint.enable": true,
|
|
49
|
+
"ruff.organizeImports": true,
|
|
50
|
+
},
|
|
51
|
+
"terminal.integrated.defaultProfile.linux": "zsh",
|
|
52
|
+
"terminal.integrated.profiles.linux": {
|
|
53
|
+
"zsh": {
|
|
54
|
+
"path": "zsh"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"forwardPorts": [],
|
|
59
|
+
"postStartCommand": "/bin/zsh",
|
|
60
|
+
"runArgs": [
|
|
61
|
+
"--network=host",
|
|
62
|
+
"--privileged",
|
|
63
|
+
"--env-file",
|
|
64
|
+
"${localWorkspaceFolder}/.devcontainer/.env.config"
|
|
65
|
+
]
|
|
66
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Always validate the PR title AND all the commits
|
|
2
|
+
titleAndCommits: true
|
|
3
|
+
# Allows use of Merge commits (eg on github: "Merge branch 'master' into feature/ride-unicorns")
|
|
4
|
+
# this is only relevant when using commitsOnly: true (or titleAndCommits: true)
|
|
5
|
+
allowMergeCommits: true
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
name: satelles/ci
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
pull_request:
|
|
9
|
+
branches:
|
|
10
|
+
- main
|
|
11
|
+
- release
|
|
12
|
+
- latest
|
|
13
|
+
|
|
14
|
+
paths-ignore:
|
|
15
|
+
- "__pycache__"
|
|
16
|
+
- ".pytest_cache"
|
|
17
|
+
- ".ruff_cache"
|
|
18
|
+
- "docs/**"
|
|
19
|
+
|
|
20
|
+
# Allows you to run this workflow manually from the Actions tab
|
|
21
|
+
workflow_dispatch:
|
|
22
|
+
|
|
23
|
+
jobs:
|
|
24
|
+
ci:
|
|
25
|
+
strategy:
|
|
26
|
+
matrix:
|
|
27
|
+
os: [ubuntu-latest]
|
|
28
|
+
|
|
29
|
+
runs-on: ${{ matrix.os }}
|
|
30
|
+
|
|
31
|
+
steps:
|
|
32
|
+
- name: Checkout 🛎
|
|
33
|
+
uses: actions/checkout@v4
|
|
34
|
+
|
|
35
|
+
- name: Install uv
|
|
36
|
+
uses: astral-sh/setup-uv@v5
|
|
37
|
+
|
|
38
|
+
- name: Synchronise uv environment
|
|
39
|
+
run: |
|
|
40
|
+
uv sync --all-extras --dev
|
|
41
|
+
|
|
42
|
+
- name: Lint w/Ruff
|
|
43
|
+
run: |
|
|
44
|
+
uv run ruff check
|
|
45
|
+
|
|
46
|
+
- name: Format w/Ruff
|
|
47
|
+
run: |
|
|
48
|
+
uv run ruff format
|
|
49
|
+
|
|
50
|
+
- name: Static Analysis w/mypy
|
|
51
|
+
run: |
|
|
52
|
+
uv run mypy ./src/satelles --config mypy.ini
|
|
53
|
+
|
|
54
|
+
- name: Build w/Hatch Build Backend 🔧
|
|
55
|
+
run: |
|
|
56
|
+
uv build
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: satelles/publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
publish:
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
os: [ubuntu-latest]
|
|
15
|
+
|
|
16
|
+
runs-on: ${{ matrix.os }}
|
|
17
|
+
|
|
18
|
+
environment: pypi
|
|
19
|
+
permissions:
|
|
20
|
+
contents: read
|
|
21
|
+
packages: write
|
|
22
|
+
id-token: write
|
|
23
|
+
|
|
24
|
+
steps:
|
|
25
|
+
- name: Checkout 🛎
|
|
26
|
+
uses: actions/checkout@v4
|
|
27
|
+
|
|
28
|
+
- name: Install uv
|
|
29
|
+
uses: astral-sh/setup-uv@v5
|
|
30
|
+
|
|
31
|
+
- name: Synchronise uv environment
|
|
32
|
+
run: |
|
|
33
|
+
uv sync --all-extras --dev
|
|
34
|
+
|
|
35
|
+
- name: Test w/pytest
|
|
36
|
+
run: |
|
|
37
|
+
uv run --link-mode=copy pytest test
|
|
38
|
+
|
|
39
|
+
- name: Build w/Hatch Build Backend 🔧
|
|
40
|
+
run: |
|
|
41
|
+
uv build
|
|
42
|
+
|
|
43
|
+
- name: Publish package distributions to PyPI
|
|
44
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: satelles/test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
pull_request:
|
|
9
|
+
branches:
|
|
10
|
+
- main
|
|
11
|
+
- release
|
|
12
|
+
- latest
|
|
13
|
+
|
|
14
|
+
paths-ignore:
|
|
15
|
+
- "__pycache__"
|
|
16
|
+
- ".pytest_cache"
|
|
17
|
+
- ".ruff_cache"
|
|
18
|
+
- "docs/**"
|
|
19
|
+
|
|
20
|
+
# Allows you to run this workflow manually from the Actions tab
|
|
21
|
+
workflow_dispatch:
|
|
22
|
+
|
|
23
|
+
jobs:
|
|
24
|
+
test:
|
|
25
|
+
strategy:
|
|
26
|
+
matrix:
|
|
27
|
+
os: [ubuntu-latest]
|
|
28
|
+
|
|
29
|
+
runs-on: ${{ matrix.os }}
|
|
30
|
+
|
|
31
|
+
steps:
|
|
32
|
+
- name: Checkout 🛎
|
|
33
|
+
uses: actions/checkout@v4
|
|
34
|
+
|
|
35
|
+
- name: Install uv
|
|
36
|
+
uses: astral-sh/setup-uv@v5
|
|
37
|
+
|
|
38
|
+
- name: Synchronise uv environment
|
|
39
|
+
run: |
|
|
40
|
+
uv sync --all-extras --dev
|
|
41
|
+
|
|
42
|
+
- name: Test w/pytest
|
|
43
|
+
run: |
|
|
44
|
+
uv run --link-mode=copy pytest test
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
#uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
#poetry.lock
|
|
109
|
+
|
|
110
|
+
# pdm
|
|
111
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
112
|
+
#pdm.lock
|
|
113
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
114
|
+
# in version control.
|
|
115
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
116
|
+
.pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
121
|
+
__pypackages__/
|
|
122
|
+
|
|
123
|
+
# Celery stuff
|
|
124
|
+
celerybeat-schedule
|
|
125
|
+
celerybeat.pid
|
|
126
|
+
|
|
127
|
+
# SageMath parsed files
|
|
128
|
+
*.sage.py
|
|
129
|
+
|
|
130
|
+
# Environments
|
|
131
|
+
.env
|
|
132
|
+
.venv
|
|
133
|
+
env/
|
|
134
|
+
venv/
|
|
135
|
+
ENV/
|
|
136
|
+
env.bak/
|
|
137
|
+
venv.bak/
|
|
138
|
+
|
|
139
|
+
# Spyder project settings
|
|
140
|
+
.spyderproject
|
|
141
|
+
.spyproject
|
|
142
|
+
|
|
143
|
+
# Rope project settings
|
|
144
|
+
.ropeproject
|
|
145
|
+
|
|
146
|
+
# mkdocs documentation
|
|
147
|
+
/site
|
|
148
|
+
|
|
149
|
+
# mypy
|
|
150
|
+
.mypy_cache/
|
|
151
|
+
.dmypy.json
|
|
152
|
+
dmypy.json
|
|
153
|
+
|
|
154
|
+
# Pyre type checker
|
|
155
|
+
.pyre/
|
|
156
|
+
|
|
157
|
+
# pytype static type analyzer
|
|
158
|
+
.pytype/
|
|
159
|
+
|
|
160
|
+
# Cython debug symbols
|
|
161
|
+
cython_debug/
|
|
162
|
+
|
|
163
|
+
# PyCharm
|
|
164
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
165
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
166
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
167
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
168
|
+
#.idea/
|
|
169
|
+
|
|
170
|
+
# PyPI configuration file
|
|
171
|
+
.pypirc
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.13
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"[python]": {
|
|
3
|
+
"editor.defaultFormatter": "charliermarsh.ruff",
|
|
4
|
+
"editor.formatOnSave": true,
|
|
5
|
+
"editor.semanticHighlighting.enabled": true,
|
|
6
|
+
},
|
|
7
|
+
"editor.codeActionsOnSave": {
|
|
8
|
+
"source.organizeImports": "explicit"
|
|
9
|
+
},
|
|
10
|
+
"editor.cursorBlinking": "smooth",
|
|
11
|
+
"editor.cursorSmoothCaretAnimation": "on",
|
|
12
|
+
"editor.cursorStyle": "line",
|
|
13
|
+
"editor.formatOnSave": true,
|
|
14
|
+
"editor.rulers": [
|
|
15
|
+
88
|
|
16
|
+
],
|
|
17
|
+
"explorer.compactFolders": true,
|
|
18
|
+
"explorer.confirmDelete": true,
|
|
19
|
+
"ruff.codeAction.disableRuleComment": {
|
|
20
|
+
"enable": true
|
|
21
|
+
},
|
|
22
|
+
"ruff.enable": true,
|
|
23
|
+
"ruff.fixAll": true,
|
|
24
|
+
"ruff.importStrategy": "fromEnvironment",
|
|
25
|
+
"ruff.lint.enable": true,
|
|
26
|
+
"ruff.organizeImports": true
|
|
27
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #
|
|
2
|
+
|
|
3
|
+
FROM python:3.13-slim-bookworm AS base
|
|
4
|
+
|
|
5
|
+
# The installer requires curl (and certificates) to download the release archive
|
|
6
|
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
7
|
+
curl \
|
|
8
|
+
ca-certificates \
|
|
9
|
+
wget \
|
|
10
|
+
zsh \
|
|
11
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
12
|
+
|
|
13
|
+
# Download the latest installer
|
|
14
|
+
ADD https://astral.sh/uv/install.sh /uv-installer.sh
|
|
15
|
+
|
|
16
|
+
# Run the installer then remove it
|
|
17
|
+
RUN sh /uv-installer.sh && rm /uv-installer.sh
|
|
18
|
+
|
|
19
|
+
# Ensure the installed binary is on the `PATH`
|
|
20
|
+
ENV PATH="/root/.local/bin/:$PATH"
|
|
21
|
+
|
|
22
|
+
# //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #
|
|
23
|
+
|
|
24
|
+
FROM base AS development
|
|
25
|
+
|
|
26
|
+
# A cache mount can be used to improve performance across builds:
|
|
27
|
+
ENV UV_LINK_MODE=copy
|
|
28
|
+
|
|
29
|
+
# Install necessary packages: gcc, make, libc-dev, bash, curl, and openssh-client
|
|
30
|
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
31
|
+
bash \
|
|
32
|
+
curl \
|
|
33
|
+
build-essential \
|
|
34
|
+
clang \
|
|
35
|
+
git \
|
|
36
|
+
libc-dev \
|
|
37
|
+
make \
|
|
38
|
+
openssh-client \
|
|
39
|
+
python3-setuptools \
|
|
40
|
+
unzip \
|
|
41
|
+
usbutils \
|
|
42
|
+
wget \
|
|
43
|
+
zsh \
|
|
44
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
45
|
+
|
|
46
|
+
# Install Oh My Zsh (if needed)
|
|
47
|
+
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
|
48
|
+
|
|
49
|
+
# Install oh-my-zsh:
|
|
50
|
+
# Uses "Spaceship" theme with some customization. Uses some bundled plugins and installs some more from github
|
|
51
|
+
RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5/zsh-in-docker.sh)" -- \
|
|
52
|
+
-t https://github.com/denysdovhan/spaceship-prompt \
|
|
53
|
+
-a 'SPACESHIP_PROMPT_ADD_NEWLINE="false"' \
|
|
54
|
+
-a 'SPACESHIP_PROMPT_SEPARATE_LINE="false"' \
|
|
55
|
+
-p git \
|
|
56
|
+
-p ssh-agent \
|
|
57
|
+
-p https://github.com/zsh-users/zsh-autosuggestions \
|
|
58
|
+
-p https://github.com/zsh-users/zsh-completions
|
|
59
|
+
|
|
60
|
+
# Enable shell completions for `uv`
|
|
61
|
+
RUN echo eval "$(uv generate-shell-completion zsh)" >> ~/.zshrc
|
|
62
|
+
|
|
63
|
+
# Enable shell completions for `uvx`
|
|
64
|
+
RUN echo eval "$(uvx generate-shell-completion zsh)" >> ~/.zshrc
|
|
65
|
+
|
|
66
|
+
COPY . /usr/src/app
|
|
67
|
+
|
|
68
|
+
# Set the working directory to /app
|
|
69
|
+
WORKDIR /usr/src/app
|
|
70
|
+
|
|
71
|
+
# Sync the project into a new environment, using the frozen lockfile
|
|
72
|
+
# RUN --mount=type=cache,target=/root/.cache/uv uv sync
|
|
73
|
+
|
|
74
|
+
# //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #
|
satelles-0.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Michael J. Roberts
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
satelles-0.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: satelles
|
|
3
|
+
Version: 0.0.0
|
|
4
|
+
Summary: Add your description here
|
|
5
|
+
Author-email: michealroberts <michael@observerly.com>
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Requires-Python: >=3.13
|
|
8
|
+
Requires-Dist: pydantic>=2.10.6
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
|
|
11
|
+
# satelles
|
|
12
|
+
A hypermodern python package starter template with astral uv ruff and mypy
|
satelles-0.0.0/README.md
ADDED
satelles-0.0.0/mypy.ini
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "satelles"
|
|
3
|
+
version = "0.0.0"
|
|
4
|
+
description = "Add your description here"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
authors = [{ name = "michealroberts", email = "michael@observerly.com" }]
|
|
7
|
+
requires-python = ">=3.13"
|
|
8
|
+
dependencies = ["pydantic>=2.10.6"]
|
|
9
|
+
|
|
10
|
+
[build-system]
|
|
11
|
+
requires = ["hatchling"]
|
|
12
|
+
build-backend = "hatchling.build"
|
|
13
|
+
|
|
14
|
+
[dependency-groups]
|
|
15
|
+
dev = [
|
|
16
|
+
"astropy>=7.0.1",
|
|
17
|
+
"mypy>=1.15.0",
|
|
18
|
+
"pre-commit>=4.1.0",
|
|
19
|
+
"pytest>=8.3.4",
|
|
20
|
+
"pytest-asyncio>=0.25.3",
|
|
21
|
+
"pytest-cov>=6.0.0",
|
|
22
|
+
"ruff>=0.9.7",
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
[tool.pytest.ini_options]
|
|
26
|
+
pythonpath = [".", "src"]
|
|
27
|
+
asyncio_default_fixture_loop_scope = "session"
|
satelles-0.0.0/ruff.toml
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Exclude a variety of commonly ignored directories.
|
|
2
|
+
exclude = [
|
|
3
|
+
".bzr",
|
|
4
|
+
".direnv",
|
|
5
|
+
".eggs",
|
|
6
|
+
".git",
|
|
7
|
+
".git-rewrite",
|
|
8
|
+
".hg",
|
|
9
|
+
".ipynb_checkpoints",
|
|
10
|
+
".mypy_cache",
|
|
11
|
+
".nox",
|
|
12
|
+
".pants.d",
|
|
13
|
+
".pyenv",
|
|
14
|
+
".pytest_cache",
|
|
15
|
+
".pytype",
|
|
16
|
+
".ruff_cache",
|
|
17
|
+
".svn",
|
|
18
|
+
".tox",
|
|
19
|
+
".venv",
|
|
20
|
+
".vscode",
|
|
21
|
+
"__pypackages__",
|
|
22
|
+
"_build",
|
|
23
|
+
"buck-out",
|
|
24
|
+
"build",
|
|
25
|
+
"dist",
|
|
26
|
+
"node_modules",
|
|
27
|
+
"site-packages",
|
|
28
|
+
"venv",
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
# Same as Black.
|
|
32
|
+
line-length = 88
|
|
33
|
+
indent-width = 4
|
|
34
|
+
|
|
35
|
+
# Assume Python 3.13
|
|
36
|
+
target-version = "py313"
|
|
37
|
+
|
|
38
|
+
[lint]
|
|
39
|
+
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
|
|
40
|
+
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
|
|
41
|
+
# McCabe complexity (`C901`) by default.
|
|
42
|
+
select = ["E4", "E7", "E9", "F"]
|
|
43
|
+
ignore = []
|
|
44
|
+
|
|
45
|
+
# Allow fix for all enabled rules (when `--fix`) is provided.
|
|
46
|
+
fixable = ["ALL"]
|
|
47
|
+
unfixable = []
|
|
48
|
+
|
|
49
|
+
# Allow unused variables when underscore-prefixed.
|
|
50
|
+
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
|
|
51
|
+
|
|
52
|
+
[format]
|
|
53
|
+
# Like Black, use double quotes for strings.
|
|
54
|
+
quote-style = "double"
|
|
55
|
+
|
|
56
|
+
# Like Black, indent with spaces, rather than tabs.
|
|
57
|
+
indent-style = "space"
|
|
58
|
+
|
|
59
|
+
# Like Black, respect magic trailing commas.
|
|
60
|
+
skip-magic-trailing-comma = false
|
|
61
|
+
|
|
62
|
+
# Like Black, automatically detect the appropriate line ending.
|
|
63
|
+
line-ending = "auto"
|
|
64
|
+
|
|
65
|
+
# Enable auto-formatting of code examples in docstrings. Markdown,
|
|
66
|
+
# reStructuredText code/literal blocks and doctests are all supported.
|
|
67
|
+
#
|
|
68
|
+
# This is currently disabled by default, but it is planned for this
|
|
69
|
+
# to be opt-out in the future.
|
|
70
|
+
docstring-code-format = false
|
|
71
|
+
|
|
72
|
+
# Set the line length limit used when formatting code snippets in
|
|
73
|
+
# docstrings.
|
|
74
|
+
#
|
|
75
|
+
# This only has an effect when the `docstring-code-format` setting is
|
|
76
|
+
# enabled.
|
|
77
|
+
docstring-code-line-length = "dynamic"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# **************************************************************************************
|
|
2
|
+
|
|
3
|
+
# @package satelles
|
|
4
|
+
# @license MIT License Copyright (c) 2025 Michael J. Roberts
|
|
5
|
+
|
|
6
|
+
# **************************************************************************************
|
|
7
|
+
|
|
8
|
+
from .satellite import Satellite
|
|
9
|
+
from .tle import TLE
|
|
10
|
+
|
|
11
|
+
# **************************************************************************************
|
|
12
|
+
|
|
13
|
+
__version__ = "0.0.0"
|
|
14
|
+
|
|
15
|
+
# **************************************************************************************
|
|
16
|
+
|
|
17
|
+
__license__ = "MIT"
|
|
18
|
+
|
|
19
|
+
# **************************************************************************************
|
|
20
|
+
|
|
21
|
+
__all__: list[str] = [
|
|
22
|
+
"Satellite",
|
|
23
|
+
"TLE",
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
# **************************************************************************************
|
|
File without changes
|