py2api 0.0.3__tar.gz → 0.0.4__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.
- py2api-0.0.4/.editorconfig +17 -0
- py2api-0.0.4/.github/workflows/ci.yml +48 -0
- py2api-0.0.4/.gitignore +102 -0
- py2api-0.0.4/.idea/inspectionProfiles/profiles_settings.xml +7 -0
- py2api-0.0.4/.idea/misc.xml +4 -0
- py2api-0.0.4/.idea/modules.xml +8 -0
- py2api-0.0.4/.idea/py2api.iml +12 -0
- py2api-0.0.4/.idea/vcs.xml +6 -0
- py2api-0.0.4/.idea/workspace.xml +585 -0
- {py2api-0.0.3 → py2api-0.0.4}/PKG-INFO +32 -14
- {py2api-0.0.3 → py2api-0.0.4}/README.md +6 -7
- py2api-0.0.4/docsrc/.gitignore +1 -0
- py2api-0.0.4/docsrc/Makefile +33 -0
- py2api-0.0.4/docsrc/conf.py +82 -0
- py2api-0.0.4/docsrc/index.rst +18 -0
- py2api-0.0.4/docsrc/make.bat +35 -0
- py2api-0.0.4/py2api/.gitignore +101 -0
- py2api-0.0.4/py2api/__init__.py +9 -0
- py2api-0.0.4/py2api/constants.py +21 -0
- py2api-0.0.4/py2api/defaults.py +4 -0
- {py2api-0.0.3 → py2api-0.0.4}/py2api/errors.py +8 -5
- py2api-0.0.4/py2api/examples/__init__.py +0 -0
- {py2api-0.0.3 → py2api-0.0.4}/py2api/examples/wrapping_a_class.py +6 -6
- {py2api-0.0.3 → py2api-0.0.4}/py2api/examples/wrapping_a_module.py +1 -1
- {py2api-0.0.3 → py2api-0.0.4}/py2api/obj_wrap.py +53 -33
- {py2api-0.0.3 → py2api-0.0.4}/py2api/output_trans.py +20 -7
- py2api-0.0.4/py2api/py2rest/__init__.py +1 -0
- {py2api-0.0.3 → py2api-0.0.4}/py2api/py2rest/app_maker.py +28 -19
- py2api-0.0.4/py2api/py2rest/constants.py +12 -0
- {py2api-0.0.3 → py2api-0.0.4}/py2api/py2rest/input_trans.py +52 -27
- {py2api-0.0.3 → py2api-0.0.4}/py2api/py2rest/obj_wrap.py +14 -11
- py2api-0.0.4/py2api/py2rest/old/old_input_trans_with_val_type.py +350 -0
- {py2api-0.0.3 → py2api-0.0.4}/py2api/py2rest/rest2py.py +27 -20
- {py2api-0.0.3 → py2api-0.0.4}/py2api/scrap_obj_wrap.py +2 -4
- py2api-0.0.4/py2api/tests/wrapping_a_class.py +43 -0
- {py2api-0.0.3 → py2api-0.0.4}/py2api/util.py +55 -40
- py2api-0.0.4/pyproject.toml +181 -0
- py2api-0.0.3/py2api/__init__.py +0 -4
- py2api-0.0.3/py2api/constants.py +0 -21
- py2api-0.0.3/py2api/defaults.py +0 -4
- py2api-0.0.3/py2api/examples/__init__.py +0 -2
- py2api-0.0.3/py2api/py2rest/__init__.py +0 -1
- py2api-0.0.3/py2api/py2rest/constants.py +0 -12
- py2api-0.0.3/py2api.egg-info/PKG-INFO +0 -160
- py2api-0.0.3/py2api.egg-info/SOURCES.txt +0 -29
- py2api-0.0.3/py2api.egg-info/dependency_links.txt +0 -1
- py2api-0.0.3/py2api.egg-info/not-zip-safe +0 -1
- py2api-0.0.3/py2api.egg-info/requires.txt +0 -8
- py2api-0.0.3/py2api.egg-info/top_level.txt +0 -1
- py2api-0.0.3/setup.cfg +0 -32
- py2api-0.0.3/setup.py +0 -3
- {py2api-0.0.3 → py2api-0.0.4}/LICENSE +0 -0
- {py2api-0.0.3 → py2api-0.0.4}/py2api/examples/pong.py +0 -0
- {py2api-0.0.3 → py2api-0.0.4}/py2api/examples/streaming_sine.py +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
charset = utf-8
|
|
5
|
+
end_of_line = lf
|
|
6
|
+
insert_final_newline = true
|
|
7
|
+
trim_trailing_whitespace = true
|
|
8
|
+
|
|
9
|
+
[*.{py,toml,yml,yaml}]
|
|
10
|
+
indent_style = space
|
|
11
|
+
indent_size = 4
|
|
12
|
+
|
|
13
|
+
[*.md]
|
|
14
|
+
trim_trailing_whitespace = false
|
|
15
|
+
|
|
16
|
+
[Makefile]
|
|
17
|
+
indent_style = tab
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# wads CI — calls the reusable workflow hosted in i2mint/wads.
|
|
2
|
+
#
|
|
3
|
+
# All configuration comes from this repo's pyproject.toml [tool.wads.ci.*].
|
|
4
|
+
# To customize the workflow itself (rare), replace this file with the
|
|
5
|
+
# full inline template `wads/data/github_ci_uv.yml` from i2mint/wads.
|
|
6
|
+
#
|
|
7
|
+
# Pinning: `@master` floats with wads. If you need version stability for
|
|
8
|
+
# a release-sensitive repo, change `@master` to a wads tag (e.g. `@v0.1.81`).
|
|
9
|
+
# CI failure does not block a published release — it blocks the publish
|
|
10
|
+
# step itself — so floating master is generally safe.
|
|
11
|
+
#
|
|
12
|
+
# Permissions: GitHub validates that the caller grants AT LEAST the
|
|
13
|
+
# permissions any job in the called workflow requests — at workflow-parse
|
|
14
|
+
# time, not at run-time, even if the job would be skipped via `if:`.
|
|
15
|
+
# The reusable workflow needs:
|
|
16
|
+
# contents: write for the publish job's version-bump push-back
|
|
17
|
+
# and for the github-pages job's gh-pages branch push
|
|
18
|
+
# pages: write for the github-pages job's REST API Pages config
|
|
19
|
+
# Both default to `write` on org-account GITHUB_TOKEN and need to be
|
|
20
|
+
# granted explicitly on personal-account callers (where the default is
|
|
21
|
+
# read-only). No `id-token: write` needed — the publish-github-pages
|
|
22
|
+
# action uses peaceiris/actions-gh-pages (branch-based) + REST API,
|
|
23
|
+
# not the OIDC `actions/deploy-pages` flow.
|
|
24
|
+
name: Continuous Integration
|
|
25
|
+
on: [push, pull_request]
|
|
26
|
+
jobs:
|
|
27
|
+
ci:
|
|
28
|
+
uses: i2mint/wads/.github/workflows/uv-ci.yml@master
|
|
29
|
+
permissions:
|
|
30
|
+
contents: write
|
|
31
|
+
pages: write
|
|
32
|
+
# Explicit pass-through (not `secrets: inherit`) because `inherit` does
|
|
33
|
+
# not reliably propagate caller-repo secrets to a reusable workflow owned
|
|
34
|
+
# by a different account (verified empirically: personal-account caller +
|
|
35
|
+
# i2mint-org workflow → `${{ secrets.PYPI_PASSWORD }}` resolved to empty).
|
|
36
|
+
#
|
|
37
|
+
# This list is the per-repo *transport*: it should contain PYPI_PASSWORD
|
|
38
|
+
# (for publishing) plus every secret your tests/CI need. It is generated
|
|
39
|
+
# from [tool.wads.ci.env] in pyproject.toml. To add one, run
|
|
40
|
+
# wads-secrets add VAR_NAME # updates pyproject + this block
|
|
41
|
+
# or just append a line below. *Which* of these become job env vars (and
|
|
42
|
+
# which are required) is controlled by [tool.wads.ci.env] — passing a
|
|
43
|
+
# secret here does not by itself put it in the environment.
|
|
44
|
+
#
|
|
45
|
+
# A secret name must also be declared in the reusable workflow's superset
|
|
46
|
+
# (wads/ci_secrets.py). `wads-secrets add` warns if it is not.
|
|
47
|
+
secrets:
|
|
48
|
+
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
py2api-0.0.4/.gitignore
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
docs/*
|
|
2
|
+
# Byte-compiled / optimized / DLL files
|
|
3
|
+
__pycache__/
|
|
4
|
+
*.py[cod]
|
|
5
|
+
*$py.class
|
|
6
|
+
|
|
7
|
+
# C extensions
|
|
8
|
+
*.so
|
|
9
|
+
|
|
10
|
+
# Distribution / packaging
|
|
11
|
+
.Python
|
|
12
|
+
env/
|
|
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
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
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
|
+
.coverage
|
|
43
|
+
.coverage.*
|
|
44
|
+
.cache
|
|
45
|
+
nosetests.xml
|
|
46
|
+
coverage.xml
|
|
47
|
+
*.cover
|
|
48
|
+
.hypothesis/
|
|
49
|
+
|
|
50
|
+
# Translations
|
|
51
|
+
*.mo
|
|
52
|
+
*.pot
|
|
53
|
+
|
|
54
|
+
# Django stuff:
|
|
55
|
+
*.log
|
|
56
|
+
local_settings.py
|
|
57
|
+
|
|
58
|
+
# Flask stuff:
|
|
59
|
+
instance/
|
|
60
|
+
.webassets-cache
|
|
61
|
+
|
|
62
|
+
# Scrapy stuff:
|
|
63
|
+
.scrapy
|
|
64
|
+
|
|
65
|
+
# Sphinx documentation
|
|
66
|
+
docs/_build/
|
|
67
|
+
|
|
68
|
+
# PyBuilder
|
|
69
|
+
target/
|
|
70
|
+
|
|
71
|
+
# Jupyter Notebook
|
|
72
|
+
.ipynb_checkpoints
|
|
73
|
+
|
|
74
|
+
# pyenv
|
|
75
|
+
.python-version
|
|
76
|
+
|
|
77
|
+
# celery beat schedule file
|
|
78
|
+
celerybeat-schedule
|
|
79
|
+
|
|
80
|
+
# SageMath parsed files
|
|
81
|
+
*.sage.py
|
|
82
|
+
|
|
83
|
+
# dotenv
|
|
84
|
+
.env
|
|
85
|
+
|
|
86
|
+
# virtualenv
|
|
87
|
+
.venv
|
|
88
|
+
venv/
|
|
89
|
+
ENV/
|
|
90
|
+
|
|
91
|
+
# Spyder project settings
|
|
92
|
+
.spyderproject
|
|
93
|
+
.spyproject
|
|
94
|
+
|
|
95
|
+
# Rope project settings
|
|
96
|
+
.ropeproject
|
|
97
|
+
|
|
98
|
+
# mkdocs documentation
|
|
99
|
+
/site
|
|
100
|
+
|
|
101
|
+
# mypy
|
|
102
|
+
.mypy_cache/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="PYTHON_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$" />
|
|
5
|
+
<orderEntry type="jdk" jdkName="Python 3.6.5 virtualenv at ~/.virtualenvs/p3" jdkType="Python SDK" />
|
|
6
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
+
</component>
|
|
8
|
+
<component name="TestRunnerService">
|
|
9
|
+
<option name="projectConfiguration" value="Nosetests" />
|
|
10
|
+
<option name="PROJECT_TEST_RUNNER" value="Nosetests" />
|
|
11
|
+
</component>
|
|
12
|
+
</module>
|