xchainpy2_utils 0.1.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 (34) hide show
  1. xchainpy2_utils-0.1.1/LICENSE +19 -0
  2. xchainpy2_utils-0.1.1/PKG-INFO +42 -0
  3. xchainpy2_utils-0.1.1/README.md +16 -0
  4. xchainpy2_utils-0.1.1/pyproject.toml +38 -0
  5. xchainpy2_utils-0.1.1/setup.cfg +4 -0
  6. xchainpy2_utils-0.1.1/xchainpy2_utils/__init__.py +12 -0
  7. xchainpy2_utils-0.1.1/xchainpy2_utils/amount.py +766 -0
  8. xchainpy2_utils-0.1.1/xchainpy2_utils/asset.py +631 -0
  9. xchainpy2_utils-0.1.1/xchainpy2_utils/async_utils.py +13 -0
  10. xchainpy2_utils-0.1.1/xchainpy2_utils/chain.py +88 -0
  11. xchainpy2_utils-0.1.1/xchainpy2_utils/consts.py +191 -0
  12. xchainpy2_utils-0.1.1/xchainpy2_utils/dates.py +19 -0
  13. xchainpy2_utils-0.1.1/xchainpy2_utils/decimals.py +69 -0
  14. xchainpy2_utils-0.1.1/xchainpy2_utils/format.py +210 -0
  15. xchainpy2_utils-0.1.1/xchainpy2_utils/math.py +9 -0
  16. xchainpy2_utils-0.1.1/xchainpy2_utils/seqs.py +55 -0
  17. xchainpy2_utils-0.1.1/xchainpy2_utils/testing_utils.py +16 -0
  18. xchainpy2_utils-0.1.1/xchainpy2_utils/tests/__init__.py +0 -0
  19. xchainpy2_utils-0.1.1/xchainpy2_utils/tests/test_amount.py +351 -0
  20. xchainpy2_utils-0.1.1/xchainpy2_utils/tests/test_asset.py +238 -0
  21. xchainpy2_utils-0.1.1/xchainpy2_utils/tests/test_async.py +46 -0
  22. xchainpy2_utils-0.1.1/xchainpy2_utils/tests/test_crypto_amount.py +241 -0
  23. xchainpy2_utils-0.1.1/xchainpy2_utils/tests/test_decimals.py +43 -0
  24. xchainpy2_utils-0.1.1/xchainpy2_utils/tests/test_misc_helpers.py +95 -0
  25. xchainpy2_utils-0.1.1/xchainpy2_utils/tests/test_money_format.py +91 -0
  26. xchainpy2_utils-0.1.1/xchainpy2_utils/tests/test_utils.py +59 -0
  27. xchainpy2_utils-0.1.1/xchainpy2_utils/type_hint.py +9 -0
  28. xchainpy2_utils-0.1.1/xchainpy2_utils/util.py +29 -0
  29. xchainpy2_utils-0.1.1/xchainpy2_utils/versions.py +44 -0
  30. xchainpy2_utils-0.1.1/xchainpy2_utils.egg-info/PKG-INFO +42 -0
  31. xchainpy2_utils-0.1.1/xchainpy2_utils.egg-info/SOURCES.txt +32 -0
  32. xchainpy2_utils-0.1.1/xchainpy2_utils.egg-info/dependency_links.txt +1 -0
  33. xchainpy2_utils-0.1.1/xchainpy2_utils.egg-info/requires.txt +3 -0
  34. xchainpy2_utils-0.1.1/xchainpy2_utils.egg-info/top_level.txt +1 -0
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2023 Tirinox (aka TRX1 aka account1242 aka Old1)
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
@@ -0,0 +1,42 @@
1
+ Metadata-Version: 2.4
2
+ Name: xchainpy2_utils
3
+ Version: 0.1.1
4
+ Summary: XChainPy 2 Utils
5
+ Author-email: Tirinox <tirinox@gmail.com>
6
+ License: MIT
7
+ Project-URL: source, https://github.com/tirinox/xchainpy
8
+ Keywords: Crypto,THORChain,Blockchain,XChain
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Topic :: Software Development :: Build Tools
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.6
15
+ Classifier: Programming Language :: Python :: 3.7
16
+ Classifier: Programming Language :: Python :: 3.8
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Requires-Python: >=3.7
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Provides-Extra: test
24
+ Requires-Dist: pytest; extra == "test"
25
+ Dynamic: license-file
26
+
27
+ # XChainPy2 Utilities Package
28
+
29
+ Utility helpers that are used across different XChainPy2 clients and other packages.
30
+
31
+ ### Modules (in alphabetical order)
32
+
33
+ - `Asset` - Utilities for handling assets
34
+ - `Amount` - Utilities for handling amounts
35
+ - `CryptoAmount` is a combination of `Asset` and `Amount`
36
+
37
+ ### Documentation
38
+
39
+ 👉 https://xchainpy2.readthedocs.io/en/latest/packages/xchainpy2_utils.html
40
+
41
+
42
+
@@ -0,0 +1,16 @@
1
+ # XChainPy2 Utilities Package
2
+
3
+ Utility helpers that are used across different XChainPy2 clients and other packages.
4
+
5
+ ### Modules (in alphabetical order)
6
+
7
+ - `Asset` - Utilities for handling assets
8
+ - `Amount` - Utilities for handling amounts
9
+ - `CryptoAmount` is a combination of `Asset` and `Amount`
10
+
11
+ ### Documentation
12
+
13
+ 👉 https://xchainpy2.readthedocs.io/en/latest/packages/xchainpy2_utils.html
14
+
15
+
16
+
@@ -0,0 +1,38 @@
1
+ [build-system]
2
+ requires = ["setuptools", "setuptools-scm"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "xchainpy2_utils"
7
+ version = "0.1.1"
8
+ authors = [
9
+ { name = "Tirinox", email = "tirinox@gmail.com" },
10
+ ]
11
+ description = "XChainPy 2 Utils"
12
+ readme = "README.md"
13
+ requires-python = ">=3.7"
14
+ keywords = ["Crypto", "THORChain", "Blockchain", "XChain"]
15
+ license = { text = "MIT" }
16
+ urls = {source = "https://github.com/tirinox/xchainpy"}
17
+ classifiers = [
18
+ 'Development Status :: 3 - Alpha',
19
+ # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the current state of your package
20
+ 'Intended Audience :: Developers', # Define that your audience are developers
21
+ 'Topic :: Software Development :: Build Tools',
22
+ 'License :: OSI Approved :: MIT License',
23
+ 'Programming Language :: Python :: 3',
24
+ 'Programming Language :: Python :: 3.6',
25
+ 'Programming Language :: Python :: 3.7',
26
+ 'Programming Language :: Python :: 3.8',
27
+ 'Programming Language :: Python :: 3.9',
28
+ 'Programming Language :: Python :: 3.10',
29
+ 'Programming Language :: Python :: 3.11',
30
+ ]
31
+ dependencies = [
32
+ ]
33
+
34
+ [project.optional-dependencies]
35
+ test = ["pytest"]
36
+
37
+ [tool.setuptools]
38
+ packages = ["xchainpy2_utils"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,12 @@
1
+ from .amount import *
2
+ from .asset import *
3
+ from .consts import *
4
+ from .format import *
5
+ from .math import *
6
+ from .seqs import *
7
+ from .util import *
8
+ from .dates import *
9
+ from .decimals import *
10
+ from .chain import *
11
+ from .type_hint import *
12
+ from .async_utils import *