urfp 0.2__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.
- urfp-0.2/.gitignore +165 -0
- urfp-0.2/.gitlab-ci.yml +70 -0
- urfp-0.2/.pylintrc +639 -0
- urfp-0.2/LICENSE +21 -0
- urfp-0.2/PKG-INFO +83 -0
- urfp-0.2/README.md +60 -0
- urfp-0.2/pyproject.toml +53 -0
- urfp-0.2/src/urfp/__init__.py +0 -0
- urfp-0.2/src/urfp/_version.py +1 -0
- urfp-0.2/src/urfp/argtype.py +114 -0
- urfp-0.2/src/urfp/console.py +111 -0
- urfp-0.2/src/urfp/core.py +551 -0
- urfp-0.2/src/urfp/http.py +135 -0
- urfp-0.2/src/urfp/receiver.py +146 -0
- urfp-0.2/src/urfp/tinypacket.py +882 -0
- urfp-0.2/tests/adc.py +65 -0
- urfp-0.2/tests/blob.py +40 -0
- urfp-0.2/tests/example.py +56 -0
- urfp-0.2/tests/names.py +30 -0
- urfp-0.2/tests/saltydis.py +187 -0
- urfp-0.2/tests/source.py +65 -0
- urfp-0.2/tests/test_serialize.py +116 -0
- urfp-0.2/tests/tests.py +232 -0
- urfp-0.2/tests/urtypes.py +6 -0
- urfp-0.2/tests/utdis.py +337 -0
- urfp-0.2/up +5 -0
urfp-0.2/.gitignore
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
src/urfp/_version.py
|
|
2
|
+
|
|
3
|
+
# Byte-compiled / optimized / DLL files
|
|
4
|
+
__pycache__/
|
|
5
|
+
*.py[cod]
|
|
6
|
+
*$py.class
|
|
7
|
+
|
|
8
|
+
# C extensions
|
|
9
|
+
*.so
|
|
10
|
+
|
|
11
|
+
# Distribution / packaging
|
|
12
|
+
.Python
|
|
13
|
+
build/
|
|
14
|
+
develop-eggs/
|
|
15
|
+
dist/
|
|
16
|
+
downloads/
|
|
17
|
+
eggs/
|
|
18
|
+
.eggs/
|
|
19
|
+
lib/
|
|
20
|
+
lib64/
|
|
21
|
+
parts/
|
|
22
|
+
sdist/
|
|
23
|
+
var/
|
|
24
|
+
wheels/
|
|
25
|
+
share/python-wheels/
|
|
26
|
+
*.egg-info/
|
|
27
|
+
.installed.cfg
|
|
28
|
+
*.egg
|
|
29
|
+
MANIFEST
|
|
30
|
+
|
|
31
|
+
# PyInstaller
|
|
32
|
+
# Usually these files are written by a python script from a template
|
|
33
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
34
|
+
*.manifest
|
|
35
|
+
*.spec
|
|
36
|
+
|
|
37
|
+
# Installer logs
|
|
38
|
+
pip-log.txt
|
|
39
|
+
pip-delete-this-directory.txt
|
|
40
|
+
|
|
41
|
+
# Unit test / coverage reports
|
|
42
|
+
htmlcov/
|
|
43
|
+
.tox/
|
|
44
|
+
.nox/
|
|
45
|
+
.coverage
|
|
46
|
+
.coverage.*
|
|
47
|
+
.cache
|
|
48
|
+
nosetests.xml
|
|
49
|
+
coverage.xml
|
|
50
|
+
*.cover
|
|
51
|
+
*.py,cover
|
|
52
|
+
.hypothesis/
|
|
53
|
+
.pytest_cache/
|
|
54
|
+
cover/
|
|
55
|
+
|
|
56
|
+
# Translations
|
|
57
|
+
*.mo
|
|
58
|
+
*.pot
|
|
59
|
+
|
|
60
|
+
# Django stuff:
|
|
61
|
+
*.log
|
|
62
|
+
local_settings.py
|
|
63
|
+
db.sqlite3
|
|
64
|
+
db.sqlite3-journal
|
|
65
|
+
|
|
66
|
+
# Flask stuff:
|
|
67
|
+
instance/
|
|
68
|
+
.webassets-cache
|
|
69
|
+
|
|
70
|
+
# Scrapy stuff:
|
|
71
|
+
.scrapy
|
|
72
|
+
|
|
73
|
+
# Sphinx documentation
|
|
74
|
+
docs/_build/
|
|
75
|
+
|
|
76
|
+
# PyBuilder
|
|
77
|
+
.pybuilder/
|
|
78
|
+
target/
|
|
79
|
+
|
|
80
|
+
# Jupyter Notebook
|
|
81
|
+
.ipynb_checkpoints
|
|
82
|
+
|
|
83
|
+
# IPython
|
|
84
|
+
profile_default/
|
|
85
|
+
ipython_config.py
|
|
86
|
+
|
|
87
|
+
# pyenv
|
|
88
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
89
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
90
|
+
# .python-version
|
|
91
|
+
|
|
92
|
+
# pipenv
|
|
93
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
94
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
95
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
96
|
+
# install all needed dependencies.
|
|
97
|
+
#Pipfile.lock
|
|
98
|
+
|
|
99
|
+
# poetry
|
|
100
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
101
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
102
|
+
# commonly ignored for libraries.
|
|
103
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
104
|
+
#poetry.lock
|
|
105
|
+
|
|
106
|
+
# pdm
|
|
107
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
108
|
+
#pdm.lock
|
|
109
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
110
|
+
# in version control.
|
|
111
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
112
|
+
.pdm.toml
|
|
113
|
+
|
|
114
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
115
|
+
__pypackages__/
|
|
116
|
+
|
|
117
|
+
# Celery stuff
|
|
118
|
+
celerybeat-schedule
|
|
119
|
+
celerybeat.pid
|
|
120
|
+
|
|
121
|
+
# SageMath parsed files
|
|
122
|
+
*.sage.py
|
|
123
|
+
|
|
124
|
+
# Environments
|
|
125
|
+
.env
|
|
126
|
+
.venv
|
|
127
|
+
env/
|
|
128
|
+
venv/
|
|
129
|
+
ENV/
|
|
130
|
+
env.bak/
|
|
131
|
+
venv.bak/
|
|
132
|
+
|
|
133
|
+
# Spyder project settings
|
|
134
|
+
.spyderproject
|
|
135
|
+
.spyproject
|
|
136
|
+
|
|
137
|
+
# Rope project settings
|
|
138
|
+
.ropeproject
|
|
139
|
+
|
|
140
|
+
# mkdocs documentation
|
|
141
|
+
/site
|
|
142
|
+
|
|
143
|
+
# mypy
|
|
144
|
+
.mypy_cache/
|
|
145
|
+
.dmypy.json
|
|
146
|
+
dmypy.json
|
|
147
|
+
|
|
148
|
+
# Pyre type checker
|
|
149
|
+
.pyre/
|
|
150
|
+
|
|
151
|
+
# pytype static type analyzer
|
|
152
|
+
.pytype/
|
|
153
|
+
|
|
154
|
+
# Cython debug symbols
|
|
155
|
+
cython_debug/
|
|
156
|
+
|
|
157
|
+
# PyCharm
|
|
158
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
159
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
160
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
161
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
162
|
+
#.idea/
|
|
163
|
+
|
|
164
|
+
tmp/
|
|
165
|
+
|
urfp-0.2/.gitlab-ci.yml
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Created with instructions and hints from https://stefan.sofa-rockers.org/2024/11/14/gitlab-trusted-publisher/
|
|
2
|
+
|
|
3
|
+
default:
|
|
4
|
+
image: python:3.14-slim-trixie
|
|
5
|
+
|
|
6
|
+
build:
|
|
7
|
+
stage: 'build'
|
|
8
|
+
script:
|
|
9
|
+
- apt -y update
|
|
10
|
+
- apt -y install git
|
|
11
|
+
- pip install hatch
|
|
12
|
+
- hatch build
|
|
13
|
+
artifacts:
|
|
14
|
+
paths:
|
|
15
|
+
- 'dist/'
|
|
16
|
+
|
|
17
|
+
.release-base:
|
|
18
|
+
# Abstract base job for "release" jobs.
|
|
19
|
+
# Extending jobs must define the following variables:
|
|
20
|
+
# - PYPI_OIDC_AUD: Audience for the ID token that GitLab
|
|
21
|
+
# issues to the pipeline job
|
|
22
|
+
# - PYPI_OIDC_URL: PyPI endpoint for retrieving a publish
|
|
23
|
+
# token with GitLab’s ID token
|
|
24
|
+
# - UV_PUBLISH_URL: PyPI endpoint for the actual upload
|
|
25
|
+
stage: 'deploy'
|
|
26
|
+
id_tokens:
|
|
27
|
+
PYPI_ID_TOKEN:
|
|
28
|
+
aud: '$PYPI_OIDC_AUD'
|
|
29
|
+
script:
|
|
30
|
+
- apt -y update
|
|
31
|
+
- apt -y install git
|
|
32
|
+
- pip install hatch
|
|
33
|
+
# Use the GitLab ID token to retrieve an API token from PyPI
|
|
34
|
+
- resp="$(curl -X POST "${PYPI_OIDC_URL}" -d "{\"token\":\"${PYPI_ID_TOKEN}\"}")"
|
|
35
|
+
# Parse the response and extract the token
|
|
36
|
+
- publish_token="$(python -c "import json; print(json.load('${resp}')['token'])")"
|
|
37
|
+
# Upload the files from "dist/"
|
|
38
|
+
- hatch publish -a "$publish_token"'
|
|
39
|
+
# Print the link to PyPI so we can quickly go there to verify the result:
|
|
40
|
+
- version="$(hatch version)"
|
|
41
|
+
- echo -e "\033[34;1mPackage on PyPI:\033[0m ${CI_ENVIRONMENT_URL}${version}/"'
|
|
42
|
+
|
|
43
|
+
release-test:
|
|
44
|
+
extends: '.release-base'
|
|
45
|
+
when: manual
|
|
46
|
+
rules:
|
|
47
|
+
# Only run if it's a pipeline for the default branch or a tag:
|
|
48
|
+
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_TAG'
|
|
49
|
+
environment:
|
|
50
|
+
name: 'release-test'
|
|
51
|
+
url: 'https://test.pypi.org/project/typed-settings/'
|
|
52
|
+
variables:
|
|
53
|
+
PYPI_OIDC_AUD: 'testpypi'
|
|
54
|
+
PYPI_OIDC_URL: 'https://test.pypi.org/_/oidc/mint-token'
|
|
55
|
+
UV_PUBLISH_URL: 'https://test.pypi.org/legacy/'
|
|
56
|
+
|
|
57
|
+
release:
|
|
58
|
+
extends: '.release-base'
|
|
59
|
+
when: manual
|
|
60
|
+
rules:
|
|
61
|
+
# Only run in tag pipelines:
|
|
62
|
+
- if: '$CI_COMMIT_TAG'
|
|
63
|
+
environment:
|
|
64
|
+
name: 'release'
|
|
65
|
+
url: 'https://pypi.org/project/typed-settings/'
|
|
66
|
+
variables:
|
|
67
|
+
PYPI_OIDC_AUD: 'pypi'
|
|
68
|
+
PYPI_OIDC_URL: 'https://pypi.org/_/oidc/mint-token'
|
|
69
|
+
UV_PUBLISH_URL: 'https://upload.pypi.org/legacy/'
|
|
70
|
+
|