hcn 0.1.dev268__tar.gz → 2.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.
Files changed (93) hide show
  1. hcn-2.0.1/.github/workflows/docs.yml +34 -0
  2. hcn-2.0.1/.github/workflows/python-publish.yml +53 -0
  3. {hcn-0.1.dev268 → hcn-2.0.1}/.gitignore +143 -143
  4. {hcn-0.1.dev268 → hcn-2.0.1}/LICENSE +21 -21
  5. {hcn-0.1.dev268/src/hcn.egg-info → hcn-2.0.1}/PKG-INFO +81 -39
  6. hcn-2.0.1/README.md +32 -0
  7. {hcn-0.1.dev268 → hcn-2.0.1}/bak/__init__.py +30 -30
  8. {hcn-0.1.dev268 → hcn-2.0.1}/bak/assets/mplstyle/draft.mplstyle +22 -22
  9. {hcn-0.1.dev268 → hcn-2.0.1}/bak/assets/mplstyle/group_wiki_style.mplstyle +16 -16
  10. {hcn-0.1.dev268 → hcn-2.0.1}/bak/assets/mplstyle/matlab_style.py +129 -129
  11. {hcn-0.1.dev268 → hcn-2.0.1}/bak/assets/mplstyle/paper_matlablike.mplstyle +36 -36
  12. {hcn-0.1.dev268 → hcn-2.0.1}/bak/decorators.py +129 -129
  13. {hcn-0.1.dev268 → hcn-2.0.1}/bak/dev/io/FileLoader/FileLoader.py +99 -99
  14. {hcn-0.1.dev268 → hcn-2.0.1}/bak/dev/io/FileLoader/__init__.py +13 -13
  15. {hcn-0.1.dev268 → hcn-2.0.1}/bak/dev/io/__init__.py +1 -1
  16. {hcn-0.1.dev268 → hcn-2.0.1}/bak/ezmail/core.py +75 -75
  17. {hcn-0.1.dev268 → hcn-2.0.1}/bak/futils.py +136 -136
  18. {hcn-0.1.dev268 → hcn-2.0.1}/bak/laser.py +92 -92
  19. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/FreqEst.old/__init__.py +27 -27
  20. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/FreqEst.old/bound.py +164 -164
  21. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/FreqEst.old/common.py +151 -151
  22. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/FreqEst.old/di.py +135 -135
  23. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/FreqEst.old/spade.py +75 -75
  24. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/_DataReader.py +75 -75
  25. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/_FreqEst.py +112 -112
  26. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/_TDEst.py +68 -68
  27. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/cgh/__init__.py +38 -38
  28. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/displacement_est/__init__.py +3 -3
  29. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/displacement_est/di.py +151 -151
  30. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/displacement_est/spade.py +47 -47
  31. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/equipments.old/__init__.py +2 -2
  32. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/equipments.old/dmd.py +3 -3
  33. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/equipments.old/lamp.py +20 -20
  34. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/equipments.old/qcmos.py +12 -12
  35. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/equipments.old/slm.py +3 -3
  36. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/experiments.old/__init__.py +25 -25
  37. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/experiments.old/core.py +242 -242
  38. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/experiments.old/params.py +64 -64
  39. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/experiments.old/utils.py +35 -35
  40. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/lse.py +56 -56
  41. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/simulations/__init__.py +104 -104
  42. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/tk_gui/file converter.py +163 -163
  43. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/tk_gui/file_selector.py +92 -92
  44. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/utils.py +112 -112
  45. {hcn-0.1.dev268 → hcn-2.0.1}/bak/macro.py +408 -408
  46. {hcn-0.1.dev268 → hcn-2.0.1}/bak/photosutils.py +39 -39
  47. {hcn-0.1.dev268 → hcn-2.0.1}/bak/plotter.py +180 -180
  48. {hcn-0.1.dev268 → hcn-2.0.1}/bak/plotter.pyi +149 -149
  49. {hcn-0.1.dev268 → hcn-2.0.1}/bak/style_example.ipynb +58 -58
  50. hcn-2.0.1/docs/cache.ipynb +154 -0
  51. hcn-2.0.1/docs/index.ipynb +48 -0
  52. hcn-2.0.1/docs/io.ipynb +154 -0
  53. hcn-2.0.1/docs/parallelize.ipynb +103 -0
  54. hcn-2.0.1/docs/preamble.ipynb +135 -0
  55. hcn-2.0.1/justfile +32 -0
  56. hcn-2.0.1/mkdocs.yml +53 -0
  57. hcn-2.0.1/pyproject.toml +52 -0
  58. {hcn-0.1.dev268 → hcn-2.0.1}/setup.cfg +4 -4
  59. hcn-2.0.1/src/hcn/__init__.py +97 -0
  60. hcn-2.0.1/src/hcn/assets/matlab_style.py +130 -0
  61. hcn-2.0.1/src/hcn/io/__init__.py +1 -0
  62. hcn-2.0.1/src/hcn/io/core.py +235 -0
  63. hcn-2.0.1/src/hcn/preamble.py +9 -0
  64. {hcn-0.1.dev268/bak → hcn-2.0.1/src/hcn/utils}/cache.py +143 -142
  65. {hcn-0.1.dev268/bak/cryptutils → hcn-2.0.1/src/hcn/utils}/cpuid.py +29 -29
  66. {hcn-0.1.dev268/bak/cryptutils → hcn-2.0.1/src/hcn/utils}/crypt.py +146 -113
  67. hcn-2.0.1/src/hcn/utils/ezmail.py +191 -0
  68. hcn-2.0.1/src/hcn/utils/parallelize.py +25 -0
  69. {hcn-0.1.dev268 → hcn-2.0.1/src/hcn.egg-info}/PKG-INFO +81 -39
  70. {hcn-0.1.dev268 → hcn-2.0.1}/src/hcn.egg-info/SOURCES.txt +26 -8
  71. hcn-2.0.1/src/hcn.egg-info/requires.txt +16 -0
  72. hcn-2.0.1/src/hcn.egg-info/scm_file_list.json +84 -0
  73. hcn-2.0.1/src/hcn.egg-info/scm_version.json +8 -0
  74. hcn-2.0.1/test/test.ipynb +45 -0
  75. {hcn-0.1.dev268/bak → hcn-2.0.1}/trashbin +1694 -1663
  76. hcn-0.1.dev268/README.md +0 -1
  77. hcn-0.1.dev268/bak/cryptutils/__init__.py +0 -2
  78. hcn-0.1.dev268/pyproject.toml +0 -32
  79. hcn-0.1.dev268/src/hcn.egg-info/requires.txt +0 -5
  80. {hcn-0.1.dev268 → hcn-2.0.1}/bak/dev/__init__.py +0 -0
  81. {hcn-0.1.dev268 → hcn-2.0.1}/bak/dev/io/DataWriter/DataWriter.py +0 -0
  82. {hcn-0.1.dev268 → hcn-2.0.1}/bak/dev/io/DataWriter/__init__.py +0 -0
  83. {hcn-0.1.dev268 → hcn-2.0.1}/bak/dev/plotter/__init__.py +0 -0
  84. {hcn-0.1.dev268 → hcn-2.0.1}/bak/dev/plotter/core.py +0 -0
  85. {hcn-0.1.dev268 → hcn-2.0.1}/bak/ezmail/__init__.py +0 -0
  86. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/cgh/fx1.npy +0 -0
  87. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/cgh/fx2.npy +0 -0
  88. {hcn-0.1.dev268 → hcn-2.0.1}/bak/legacy/equipments.old/qe.npy +0 -0
  89. {hcn-0.1.dev268/bak → hcn-2.0.1/src/hcn}/assets/fonts/SourceHanSans.otf +0 -0
  90. {hcn-0.1.dev268/bak → hcn-2.0.1/src/hcn}/assets/fonts/lmroman10.otf +0 -0
  91. {hcn-0.1.dev268/src/hcn → hcn-2.0.1/src/hcn/utils}/__init__.py +0 -0
  92. {hcn-0.1.dev268 → hcn-2.0.1}/src/hcn.egg-info/dependency_links.txt +0 -0
  93. {hcn-0.1.dev268 → hcn-2.0.1}/src/hcn.egg-info/top_level.txt +0 -0
@@ -0,0 +1,34 @@
1
+ name: Deploy docs
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ permissions:
8
+ contents: read
9
+ pages: write
10
+ id-token: write
11
+
12
+ jobs:
13
+ deploy:
14
+ runs-on: ubuntu-latest
15
+
16
+ env:
17
+ HCN_NO_UPDATE_CHECK: "1"
18
+
19
+ environment:
20
+ name: github-pages
21
+ url: ${{ steps.deploy.outputs.page_url }}
22
+
23
+ steps:
24
+ - uses: actions/checkout@v4
25
+ - uses: actions/setup-python@v5
26
+ with:
27
+ python-version: "3.x"
28
+ - run: pip install -e ".[dev]"
29
+ - run: mkdocs build
30
+ - uses: actions/upload-pages-artifact@v3
31
+ with:
32
+ path: site
33
+ - uses: actions/deploy-pages@v4
34
+ id: deploy
@@ -0,0 +1,53 @@
1
+ name: Upload Python package
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ release-build:
13
+ runs-on: ubuntu-latest
14
+
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+
18
+ - uses: actions/setup-python@v5
19
+ with:
20
+ python-version: "3.x"
21
+
22
+ - name: Build release distributions
23
+ run: |
24
+ python -m pip install build
25
+ python -m build
26
+
27
+ - name: Upload distributions
28
+ uses: actions/upload-artifact@v4
29
+ with:
30
+ name: release-dists
31
+ path: dist/
32
+
33
+ pypi-publish:
34
+ runs-on: ubuntu-latest
35
+ needs:
36
+ - release-build
37
+ permissions:
38
+ id-token: write
39
+
40
+ environment:
41
+ name: pypi
42
+
43
+ steps:
44
+ - name: Retrieve release distributions
45
+ uses: actions/download-artifact@v4
46
+ with:
47
+ name: release-dists
48
+ path: dist/
49
+
50
+ - name: Publish release distributions to PyPI
51
+ uses: pypa/gh-action-pypi-publish@release/v1
52
+ with:
53
+ packages-dir: dist/
@@ -1,143 +1,143 @@
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
- # PEP 582; used by e.g. github.com/David-OConnor/pyflow
98
- __pypackages__/
99
-
100
- # Celery stuff
101
- celerybeat-schedule
102
- celerybeat.pid
103
-
104
- # SageMath parsed files
105
- *.sage.py
106
-
107
- # Environments
108
- .env
109
- .venv
110
- env/
111
- venv/
112
- ENV/
113
- env.bak/
114
- venv.bak/
115
-
116
- # Spyder project settings
117
- .spyderproject
118
- .spyproject
119
-
120
- # Rope project settings
121
- .ropeproject
122
-
123
- # mkdocs documentation
124
- /site
125
-
126
- # mypy
127
- .mypy_cache/
128
- .dmypy.json
129
- dmypy.json
130
-
131
- # Pyre type checker
132
- .pyre/
133
-
134
- # pytype static type analyzer
135
- .pytype/
136
-
137
- # Cython debug symbols
138
- cython_debug/
139
-
140
-
141
- # Manually Added
142
- _test.ipynb
143
- .DS_Store
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
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
98
+ __pypackages__/
99
+
100
+ # Celery stuff
101
+ celerybeat-schedule
102
+ celerybeat.pid
103
+
104
+ # SageMath parsed files
105
+ *.sage.py
106
+
107
+ # Environments
108
+ .env
109
+ .venv
110
+ env/
111
+ venv/
112
+ ENV/
113
+ env.bak/
114
+ venv.bak/
115
+
116
+ # Spyder project settings
117
+ .spyderproject
118
+ .spyproject
119
+
120
+ # Rope project settings
121
+ .ropeproject
122
+
123
+ # mkdocs documentation
124
+ /site
125
+
126
+ # mypy
127
+ .mypy_cache/
128
+ .dmypy.json
129
+ dmypy.json
130
+
131
+ # Pyre type checker
132
+ .pyre/
133
+
134
+ # pytype static type analyzer
135
+ .pytype/
136
+
137
+ # Cython debug symbols
138
+ cython_debug/
139
+
140
+
141
+ # Manually Added
142
+ .DS_Store
143
+ .vscode
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 huchaoning
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.
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Chao-Ning Hu
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.
@@ -1,39 +1,81 @@
1
- Metadata-Version: 2.4
2
- Name: hcn
3
- Version: 0.1.dev268
4
- Summary: HCN's Collections of Nonpareils (or Nonsense)
5
- License: MIT License
6
-
7
- Copyright (c) 2023 huchaoning
8
-
9
- Permission is hereby granted, free of charge, to any person obtaining a copy
10
- of this software and associated documentation files (the "Software"), to deal
11
- in the Software without restriction, including without limitation the rights
12
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
- copies of the Software, and to permit persons to whom the Software is
14
- furnished to do so, subject to the following conditions:
15
-
16
- The above copyright notice and this permission notice shall be included in all
17
- copies or substantial portions of the Software.
18
-
19
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
- SOFTWARE.
26
-
27
- Classifier: License :: OSI Approved :: MIT License
28
- Classifier: Programming Language :: Python :: 3
29
- Classifier: Operating System :: OS Independent
30
- Description-Content-Type: text/markdown
31
- License-File: LICENSE
32
- Requires-Dist: numpy
33
- Requires-Dist: scipy
34
- Requires-Dist: matplotlib
35
- Requires-Dist: gitpython
36
- Requires-Dist: setuptools_scm
37
- Dynamic: license-file
38
-
39
- Refactoring...
1
+ Metadata-Version: 2.4
2
+ Name: hcn
3
+ Version: 2.0.1
4
+ Summary: HCN's Collections of Nonpareils (or Nonsense)
5
+ Author: Chao-Ning Hu
6
+ License: MIT License
7
+
8
+ Copyright (c) 2023 Chao-Ning Hu
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Classifier: License :: OSI Approved :: MIT License
29
+ Classifier: Programming Language :: Python :: 3
30
+ Classifier: Operating System :: OS Independent
31
+ Description-Content-Type: text/markdown
32
+ License-File: LICENSE
33
+ Requires-Dist: numpy
34
+ Requires-Dist: scipy
35
+ Requires-Dist: matplotlib
36
+ Requires-Dist: pandas
37
+ Requires-Dist: dask[distributed]
38
+ Requires-Dist: gitpython
39
+ Requires-Dist: tqdm
40
+ Requires-Dist: imageio[ffmpeg,tifffile]
41
+ Requires-Dist: packaging
42
+ Provides-Extra: dev
43
+ Requires-Dist: mkdocs; extra == "dev"
44
+ Requires-Dist: mkdocs-material; extra == "dev"
45
+ Requires-Dist: mkdocstrings; extra == "dev"
46
+ Requires-Dist: mkdocstrings-python; extra == "dev"
47
+ Requires-Dist: mkdocs-jupyter; extra == "dev"
48
+ Dynamic: license-file
49
+
50
+ # HCN's Collection of Nonpareils (or Nonsense)
51
+
52
+ [![PyPI version](https://img.shields.io/pypi/v/hcn.svg)](https://pypi.org/project/hcn/)
53
+ [![Python Version](https://img.shields.io/badge/python-3%2B-blue)](https://www.python.org/downloads/)
54
+ [![License](https://img.shields.io/github/license/huchaoning/hcn?color=blue)](https://github.com/huchaoning/hcn/blob/main/LICENSE)
55
+
56
+
57
+ ## Introduction
58
+
59
+ `hcn` stands for _**H**CN's **C**ollection of **N**onpareils (or **N**onsense)_.
60
+ It is a personal toolkit designed to streamline daily Python tasks.
61
+ By wrapping sophisticated libraries into simple, memorable one-liners, `hcn` prioritizes convenience over complexity.
62
+
63
+ It's **NOT** meant to be a powerful framework, just a collection of handy shortcuts for quick usage.
64
+
65
+ ## Installation
66
+
67
+ ```bash
68
+ pip install hcn
69
+ ```
70
+
71
+
72
+ ## Documentation
73
+
74
+ Full documentation is available at [https://huchaoning.github.io/hcn](https://huchaoning.github.io/hcn).
75
+
76
+
77
+ ## License
78
+
79
+ This project is licensed under the MIT License.
80
+ For more details, please refer to the [LICENSE](https://github.com/huchaoning/hcn/blob/main/LICENSE) file in the repository.
81
+
hcn-2.0.1/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # HCN's Collection of Nonpareils (or Nonsense)
2
+
3
+ [![PyPI version](https://img.shields.io/pypi/v/hcn.svg)](https://pypi.org/project/hcn/)
4
+ [![Python Version](https://img.shields.io/badge/python-3%2B-blue)](https://www.python.org/downloads/)
5
+ [![License](https://img.shields.io/github/license/huchaoning/hcn?color=blue)](https://github.com/huchaoning/hcn/blob/main/LICENSE)
6
+
7
+
8
+ ## Introduction
9
+
10
+ `hcn` stands for _**H**CN's **C**ollection of **N**onpareils (or **N**onsense)_.
11
+ It is a personal toolkit designed to streamline daily Python tasks.
12
+ By wrapping sophisticated libraries into simple, memorable one-liners, `hcn` prioritizes convenience over complexity.
13
+
14
+ It's **NOT** meant to be a powerful framework, just a collection of handy shortcuts for quick usage.
15
+
16
+ ## Installation
17
+
18
+ ```bash
19
+ pip install hcn
20
+ ```
21
+
22
+
23
+ ## Documentation
24
+
25
+ Full documentation is available at [https://huchaoning.github.io/hcn](https://huchaoning.github.io/hcn).
26
+
27
+
28
+ ## License
29
+
30
+ This project is licensed under the MIT License.
31
+ For more details, please refer to the [LICENSE](https://github.com/huchaoning/hcn/blob/main/LICENSE) file in the repository.
32
+
@@ -1,30 +1,30 @@
1
- from math import *
2
- import numpy as np
3
- import scipy as sp
4
- import matplotlib.pyplot as plt
5
-
6
- from PIL import Image as image
7
-
8
- import os, shutil, timeit
9
- from glob import glob
10
- from time import sleep
11
-
12
- try:
13
- from tqdm import tqdm
14
- except ImportError:
15
- pass
16
-
17
- from .futils import *
18
- from .macro import *
19
- from .laser import *
20
- from .decorators import *
21
-
22
- from .ezmail import *
23
- from .cryptutils import *
24
-
25
- from .plotter import *
26
- # inline_format()
27
-
28
- from .cache import *
29
- clean_expired_cache()
30
-
1
+ from math import *
2
+ import numpy as np
3
+ import scipy as sp
4
+ import matplotlib.pyplot as plt
5
+
6
+ from PIL import Image as image
7
+
8
+ import os, shutil, timeit
9
+ from glob import glob
10
+ from time import sleep
11
+
12
+ try:
13
+ from tqdm import tqdm
14
+ except ImportError:
15
+ pass
16
+
17
+ from .futils import *
18
+ from .macro import *
19
+ from .laser import *
20
+ from .decorators import *
21
+
22
+ from .ezmail import *
23
+ from .cryptutils import *
24
+
25
+ from .plotter import *
26
+ # inline_format()
27
+
28
+ from .cache import *
29
+ clean_expired_cache()
30
+
@@ -1,22 +1,22 @@
1
- figure.figsize: 3.3, 2.5
2
- figure.dpi: 150
3
-
4
- font.size: 8
5
- font.family: Latin Modern Roman, Source Han Sans SC
6
- mathtext.fontset: cm
7
-
8
- lines.linewidth: 1.5
9
- lines.markersize: 4
10
-
11
- axes.grid: True
12
- axes.labelsize: large
13
- axes.prop_cycle: cycler('color', 'bgmbgm') + cycler('linestyle', ['--', '-.', '--', '-.', '--', '-.'])
14
-
15
- legend.fancybox: False
16
- legend.frameon: True
17
- legend.framealpha: None
18
- legend.facecolor: inherit
19
- legend.edgecolor: inherit
20
-
21
- savefig.format: pdf
22
- savefig.bbox: tight
1
+ figure.figsize: 3.3, 2.5
2
+ figure.dpi: 150
3
+
4
+ font.size: 8
5
+ font.family: Latin Modern Roman, Source Han Sans SC
6
+ mathtext.fontset: cm
7
+
8
+ lines.linewidth: 1.5
9
+ lines.markersize: 4
10
+
11
+ axes.grid: True
12
+ axes.labelsize: large
13
+ axes.prop_cycle: cycler('color', 'bgmbgm') + cycler('linestyle', ['--', '-.', '--', '-.', '--', '-.'])
14
+
15
+ legend.fancybox: False
16
+ legend.frameon: True
17
+ legend.framealpha: None
18
+ legend.facecolor: inherit
19
+ legend.edgecolor: inherit
20
+
21
+ savefig.format: pdf
22
+ savefig.bbox: tight