emtl 0.1.1__tar.gz → 0.1.2.dev2__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 (52) hide show
  1. emtl-0.1.2.dev2/CHANGELOG.rst +13 -0
  2. {emtl-0.1.1/src/emtl.egg-info → emtl-0.1.2.dev2}/PKG-INFO +7 -2
  3. {emtl-0.1.1 → emtl-0.1.2.dev2}/src/emtl/__init__.py +2 -0
  4. {emtl-0.1.1 → emtl-0.1.2.dev2}/src/emtl/_version.py +2 -2
  5. {emtl-0.1.1 → emtl-0.1.2.dev2}/src/emtl/cli.py +4 -8
  6. emtl-0.1.2.dev2/src/emtl/core.py +8 -0
  7. emtl-0.1.2.dev2/src/emtl/tests/test_cli.py +5 -0
  8. emtl-0.1.2.dev2/src/emtl/tests/test_core.py +14 -0
  9. {emtl-0.1.1 → emtl-0.1.2.dev2/src/emtl.egg-info}/PKG-INFO +7 -2
  10. emtl-0.1.1/CHANGELOG.rst +0 -8
  11. emtl-0.1.1/src/emtl/core.py +0 -2
  12. emtl-0.1.1/src/emtl/tests/test_cli.py +0 -5
  13. emtl-0.1.1/src/emtl/tests/test_core.py +0 -5
  14. {emtl-0.1.1 → emtl-0.1.2.dev2}/.bumpversion.cfg +0 -0
  15. {emtl-0.1.1 → emtl-0.1.2.dev2}/.cookiecutterrc +0 -0
  16. {emtl-0.1.1 → emtl-0.1.2.dev2}/.coveragerc +0 -0
  17. {emtl-0.1.1 → emtl-0.1.2.dev2}/.editorconfig +0 -0
  18. {emtl-0.1.1 → emtl-0.1.2.dev2}/.github/workflows/github-actions.yml +0 -0
  19. {emtl-0.1.1 → emtl-0.1.2.dev2}/.gitignore +0 -0
  20. {emtl-0.1.1 → emtl-0.1.2.dev2}/.pre-commit-config.yaml +0 -0
  21. {emtl-0.1.1 → emtl-0.1.2.dev2}/.readthedocs.yml +0 -0
  22. {emtl-0.1.1 → emtl-0.1.2.dev2}/AUTHORS.rst +0 -0
  23. {emtl-0.1.1 → emtl-0.1.2.dev2}/CONTRIBUTING.rst +0 -0
  24. {emtl-0.1.1 → emtl-0.1.2.dev2}/LICENSE +0 -0
  25. {emtl-0.1.1 → emtl-0.1.2.dev2}/README.rst +0 -0
  26. {emtl-0.1.1 → emtl-0.1.2.dev2}/ci/bootstrap.py +0 -0
  27. {emtl-0.1.1 → emtl-0.1.2.dev2}/ci/requirements.txt +0 -0
  28. {emtl-0.1.1 → emtl-0.1.2.dev2}/ci/templates/.github/workflows/github-actions.yml +0 -0
  29. {emtl-0.1.1 → emtl-0.1.2.dev2}/docs/authors.rst +0 -0
  30. {emtl-0.1.1 → emtl-0.1.2.dev2}/docs/changelog.rst +0 -0
  31. {emtl-0.1.1 → emtl-0.1.2.dev2}/docs/conf.py +0 -0
  32. {emtl-0.1.1 → emtl-0.1.2.dev2}/docs/contributing.rst +0 -0
  33. {emtl-0.1.1 → emtl-0.1.2.dev2}/docs/index.rst +0 -0
  34. {emtl-0.1.1 → emtl-0.1.2.dev2}/docs/installation.rst +0 -0
  35. {emtl-0.1.1 → emtl-0.1.2.dev2}/docs/readme.rst +0 -0
  36. {emtl-0.1.1 → emtl-0.1.2.dev2}/docs/reference/emtl.rst +0 -0
  37. {emtl-0.1.1 → emtl-0.1.2.dev2}/docs/reference/index.rst +0 -0
  38. {emtl-0.1.1 → emtl-0.1.2.dev2}/docs/requirements.txt +0 -0
  39. {emtl-0.1.1 → emtl-0.1.2.dev2}/docs/spelling_wordlist.txt +0 -0
  40. {emtl-0.1.1 → emtl-0.1.2.dev2}/docs/usage.rst +0 -0
  41. {emtl-0.1.1 → emtl-0.1.2.dev2}/pyproject.toml +0 -0
  42. {emtl-0.1.1 → emtl-0.1.2.dev2}/pytest.ini +0 -0
  43. {emtl-0.1.1 → emtl-0.1.2.dev2}/setup.cfg +0 -0
  44. {emtl-0.1.1 → emtl-0.1.2.dev2}/setup.py +0 -0
  45. {emtl-0.1.1 → emtl-0.1.2.dev2}/src/emtl/__main__.py +0 -0
  46. {emtl-0.1.1 → emtl-0.1.2.dev2}/src/emtl/tests/__init__.py +0 -0
  47. {emtl-0.1.1 → emtl-0.1.2.dev2}/src/emtl.egg-info/SOURCES.txt +0 -0
  48. {emtl-0.1.1 → emtl-0.1.2.dev2}/src/emtl.egg-info/dependency_links.txt +0 -0
  49. {emtl-0.1.1 → emtl-0.1.2.dev2}/src/emtl.egg-info/entry_points.txt +0 -0
  50. {emtl-0.1.1 → emtl-0.1.2.dev2}/src/emtl.egg-info/not-zip-safe +0 -0
  51. {emtl-0.1.1 → emtl-0.1.2.dev2}/src/emtl.egg-info/top_level.txt +0 -0
  52. {emtl-0.1.1 → emtl-0.1.2.dev2}/tox.ini +0 -0
@@ -0,0 +1,13 @@
1
+
2
+ Changelog
3
+ =========
4
+
5
+ 0.1.1 (2024-04-16)
6
+ ------------------
7
+
8
+ * Delete python3.8 python3.9 pypy.
9
+
10
+ 0.1.0 (2024-04-14)
11
+ ------------------
12
+
13
+ * First release on PyPI.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: emtl
3
- Version: 0.1.1
3
+ Version: 0.1.2.dev2
4
4
  Summary: 东方财富交易系统
5
5
  Home-page: https://github.com/riiy/emtl
6
6
  Author: Eastmoney Trade Library
@@ -85,7 +85,12 @@ Note, to combine the coverage data from all the tox environments run:
85
85
  Changelog
86
86
  =========
87
87
 
88
- 0.1.0 (2024-04-16)
88
+ 0.1.1 (2024-04-16)
89
+ ------------------
90
+
91
+ * Delete python3.8 python3.9 pypy.
92
+
93
+ 0.1.0 (2024-04-14)
89
94
  ------------------
90
95
 
91
96
  * First release on PyPI.
@@ -1,7 +1,9 @@
1
1
  __version__ = "0.1.1"
2
2
 
3
3
  from .core import emt
4
+ from .core import login
4
5
 
5
6
  __all__ = [
6
7
  "emt",
8
+ "login",
7
9
  ]
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.1.1'
16
- __version_tuple__ = version_tuple = (0, 1, 1)
15
+ __version__ = version = '0.1.2.dev2'
16
+ __version_tuple__ = version_tuple = (0, 1, 2, 'dev2')
@@ -19,16 +19,12 @@ import argparse
19
19
 
20
20
  from .core import emt
21
21
 
22
- parser = argparse.ArgumentParser(description="Command description.")
23
- parser.add_argument(
24
- "names",
25
- metavar="NAME",
26
- nargs=argparse.ZERO_OR_MORE,
27
- help="A name of something.",
28
- )
22
+ parser = argparse.ArgumentParser(prog="emt", description="东方财富交易系统", epilog="东方财富交易系统")
23
+ parser.add_argument("-u", "--user", required=True)
24
+ parser.add_argument("-p", "--password", required=True)
29
25
 
30
26
 
31
27
  def run(args=None):
32
28
  args = parser.parse_args(args=args)
33
- print(emt(args.names))
29
+ print(emt(args.user, args.password))
34
30
  parser.exit(0)
@@ -0,0 +1,8 @@
1
+ def emt(user, password):
2
+ return user, password
3
+
4
+
5
+ def login(user: str, password: str) -> str:
6
+ """Login."""
7
+ valide_key = user + password
8
+ return valide_key
@@ -0,0 +1,5 @@
1
+ import subprocess
2
+
3
+
4
+ def test_main():
5
+ assert subprocess.check_output(["emt", "-u=foo", "-p=bar"], text=True) == "('foo', 'bar')\n"
@@ -0,0 +1,14 @@
1
+ from .. import emt
2
+ from .. import login
3
+
4
+
5
+ def test_emt():
6
+ assert emt("user", "pass") == ("user", "pass")
7
+
8
+
9
+ def test_emt_empty():
10
+ assert emt("", "") == ("", "")
11
+
12
+
13
+ def test_login():
14
+ assert login("user", "pass") == "userpass"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: emtl
3
- Version: 0.1.1
3
+ Version: 0.1.2.dev2
4
4
  Summary: 东方财富交易系统
5
5
  Home-page: https://github.com/riiy/emtl
6
6
  Author: Eastmoney Trade Library
@@ -85,7 +85,12 @@ Note, to combine the coverage data from all the tox environments run:
85
85
  Changelog
86
86
  =========
87
87
 
88
- 0.1.0 (2024-04-16)
88
+ 0.1.1 (2024-04-16)
89
+ ------------------
90
+
91
+ * Delete python3.8 python3.9 pypy.
92
+
93
+ 0.1.0 (2024-04-14)
89
94
  ------------------
90
95
 
91
96
  * First release on PyPI.
emtl-0.1.1/CHANGELOG.rst DELETED
@@ -1,8 +0,0 @@
1
-
2
- Changelog
3
- =========
4
-
5
- 0.1.0 (2024-04-16)
6
- ------------------
7
-
8
- * First release on PyPI.
@@ -1,2 +0,0 @@
1
- def emt(args):
2
- return max(args, key=len)
@@ -1,5 +0,0 @@
1
- import subprocess
2
-
3
-
4
- def test_main():
5
- assert subprocess.check_output(["emt", "foo", "foobar"], text=True) == "foobar\n"
@@ -1,5 +0,0 @@
1
- from .. import emt
2
-
3
-
4
- def test_emt():
5
- assert emt([b"a", b"bc", b"abc"]) == b"abc"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes