emtl 0.1.4.dev1__tar.gz → 0.1.5__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 (53) hide show
  1. {emtl-0.1.4.dev1 → emtl-0.1.5}/.bumpversion.cfg +1 -1
  2. {emtl-0.1.4.dev1 → emtl-0.1.5}/.cookiecutterrc +2 -2
  3. {emtl-0.1.4.dev1 → emtl-0.1.5}/CHANGELOG.rst +15 -4
  4. {emtl-0.1.4.dev1/src/emtl.egg-info → emtl-0.1.5}/PKG-INFO +18 -7
  5. {emtl-0.1.4.dev1 → emtl-0.1.5}/README.rst +2 -2
  6. {emtl-0.1.4.dev1 → emtl-0.1.5}/docs/conf.py +2 -2
  7. emtl-0.1.5/docs/requirements.txt +1 -0
  8. {emtl-0.1.4.dev1 → emtl-0.1.5}/docs/usage.rst +2 -0
  9. {emtl-0.1.4.dev1 → emtl-0.1.5}/setup.py +3 -3
  10. {emtl-0.1.4.dev1 → emtl-0.1.5}/src/emtl/__init__.py +1 -1
  11. {emtl-0.1.4.dev1 → emtl-0.1.5}/src/emtl/_version.py +2 -2
  12. {emtl-0.1.4.dev1 → emtl-0.1.5}/src/emtl/core.py +6 -4
  13. {emtl-0.1.4.dev1 → emtl-0.1.5/src/emtl.egg-info}/PKG-INFO +18 -7
  14. emtl-0.1.4.dev1/docs/requirements.txt +0 -2
  15. {emtl-0.1.4.dev1 → emtl-0.1.5}/.coveragerc +0 -0
  16. {emtl-0.1.4.dev1 → emtl-0.1.5}/.editorconfig +0 -0
  17. {emtl-0.1.4.dev1 → emtl-0.1.5}/.github/workflows/document.yml +0 -0
  18. {emtl-0.1.4.dev1 → emtl-0.1.5}/.github/workflows/github-actions.yml +0 -0
  19. {emtl-0.1.4.dev1 → emtl-0.1.5}/.gitignore +0 -0
  20. {emtl-0.1.4.dev1 → emtl-0.1.5}/.pre-commit-config.yaml +0 -0
  21. {emtl-0.1.4.dev1 → emtl-0.1.5}/.readthedocs.yml +0 -0
  22. {emtl-0.1.4.dev1 → emtl-0.1.5}/AUTHORS.rst +0 -0
  23. {emtl-0.1.4.dev1 → emtl-0.1.5}/CONTRIBUTING.rst +0 -0
  24. {emtl-0.1.4.dev1 → emtl-0.1.5}/LICENSE +0 -0
  25. {emtl-0.1.4.dev1 → emtl-0.1.5}/ci/bootstrap.py +0 -0
  26. {emtl-0.1.4.dev1 → emtl-0.1.5}/ci/requirements.txt +0 -0
  27. {emtl-0.1.4.dev1 → emtl-0.1.5}/ci/templates/.github/workflows/github-actions.yml +0 -0
  28. {emtl-0.1.4.dev1 → emtl-0.1.5}/docs/authors.rst +0 -0
  29. {emtl-0.1.4.dev1 → emtl-0.1.5}/docs/changelog.rst +0 -0
  30. {emtl-0.1.4.dev1 → emtl-0.1.5}/docs/contributing.rst +0 -0
  31. {emtl-0.1.4.dev1 → emtl-0.1.5}/docs/index.rst +0 -0
  32. {emtl-0.1.4.dev1 → emtl-0.1.5}/docs/installation.rst +0 -0
  33. {emtl-0.1.4.dev1 → emtl-0.1.5}/docs/readme.rst +0 -0
  34. {emtl-0.1.4.dev1 → emtl-0.1.5}/docs/reference/emtl.rst +0 -0
  35. {emtl-0.1.4.dev1 → emtl-0.1.5}/docs/reference/index.rst +0 -0
  36. {emtl-0.1.4.dev1 → emtl-0.1.5}/docs/spelling_wordlist.txt +0 -0
  37. {emtl-0.1.4.dev1 → emtl-0.1.5}/pyproject.toml +0 -0
  38. {emtl-0.1.4.dev1 → emtl-0.1.5}/pytest.ini +0 -0
  39. {emtl-0.1.4.dev1 → emtl-0.1.5}/setup.cfg +0 -0
  40. {emtl-0.1.4.dev1 → emtl-0.1.5}/src/emtl/__main__.py +0 -0
  41. {emtl-0.1.4.dev1 → emtl-0.1.5}/src/emtl/cli.py +0 -0
  42. {emtl-0.1.4.dev1 → emtl-0.1.5}/src/emtl/const.py +0 -0
  43. {emtl-0.1.4.dev1 → emtl-0.1.5}/src/emtl/tests/__init__.py +0 -0
  44. {emtl-0.1.4.dev1 → emtl-0.1.5}/src/emtl/tests/test_cli.py +0 -0
  45. {emtl-0.1.4.dev1 → emtl-0.1.5}/src/emtl/tests/test_core.py +0 -0
  46. {emtl-0.1.4.dev1 → emtl-0.1.5}/src/emtl/utils.py +0 -0
  47. {emtl-0.1.4.dev1 → emtl-0.1.5}/src/emtl.egg-info/SOURCES.txt +0 -0
  48. {emtl-0.1.4.dev1 → emtl-0.1.5}/src/emtl.egg-info/dependency_links.txt +0 -0
  49. {emtl-0.1.4.dev1 → emtl-0.1.5}/src/emtl.egg-info/entry_points.txt +0 -0
  50. {emtl-0.1.4.dev1 → emtl-0.1.5}/src/emtl.egg-info/not-zip-safe +0 -0
  51. {emtl-0.1.4.dev1 → emtl-0.1.5}/src/emtl.egg-info/requires.txt +0 -0
  52. {emtl-0.1.4.dev1 → emtl-0.1.5}/src/emtl.egg-info/top_level.txt +0 -0
  53. {emtl-0.1.4.dev1 → emtl-0.1.5}/tox.ini +0 -0
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 0.1.3
2
+ current_version = 0.1.5
3
3
  commit = True
4
4
  tag = True
5
5
 
@@ -51,10 +51,10 @@ default_context:
51
51
  sphinx_docs: "yes"
52
52
  sphinx_docs_hosting: "https://emtl.readthedocs.io/"
53
53
  sphinx_doctest: "no"
54
- sphinx_theme: "furo"
54
+ sphinx_theme: "alabaster"
55
55
  test_matrix_separate_coverage: "yes"
56
56
  tests_inside_package: "yes"
57
- version: "0.1.2"
57
+ version: "0.1.4"
58
58
  version_manager: "bump2version"
59
59
  website: "riiy.gihub.io/emtl"
60
60
  year_from: "2024"
@@ -2,17 +2,28 @@
2
2
  Changelog
3
3
  =========
4
4
 
5
- 0.1.2 (2024-04-18)
5
+
6
+ 0.1.0 (2024-04-14)
6
7
  ------------------
7
8
 
8
- * add login && add asset position
9
+ * First release on PyPI.
9
10
 
10
11
  0.1.1 (2024-04-16)
11
12
  ------------------
12
13
 
13
14
  * Delete python3.8 python3.9 pypy.
14
15
 
15
- 0.1.0 (2024-04-14)
16
+ 0.1.2 (2024-04-18)
16
17
  ------------------
17
18
 
18
- * First release on PyPI.
19
+ * add login && add asset position
20
+
21
+ 0.1.3 (2024-04-19)
22
+ ------------------
23
+
24
+ * update docs theme
25
+
26
+ 0.1.5 (2024-04-24)
27
+ ------------------
28
+
29
+ * update login refrence
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: emtl
3
- Version: 0.1.4.dev1
3
+ Version: 0.1.5
4
4
  Summary: 东方财富自动交易系统
5
5
  Home-page: https://github.com/riiy/emtl
6
- Author: Eastmoney Trade Library
6
+ Author: Riiy
7
7
  Author-email: riiyzhou@gmail.com
8
8
  License: MIT
9
9
  Project-URL: Documentation, https://emtl.readthedocs.io/
@@ -11,7 +11,7 @@ Project-URL: Changelog, https://emtl.readthedocs.io/en/latest/changelog.html
11
11
  Project-URL: Issue Tracker, https://github.com/riiy/emtl/issues
12
12
  Keywords: autotrade,trade,东方财富,股票,交易,交易机器人
13
13
  Platform: UNKNOWN
14
- Classifier: Development Status :: 2 - Pre-Alpha
14
+ Classifier: Development Status :: 5 - Production/Stable
15
15
  Classifier: Intended Audience :: Developers
16
16
  Classifier: License :: OSI Approved :: MIT License
17
17
  Classifier: Operating System :: Unix
@@ -84,19 +84,30 @@ Note, to combine the coverage data from all the tox environments run:
84
84
  Changelog
85
85
  =========
86
86
 
87
- 0.1.2 (2024-04-18)
87
+
88
+ 0.1.0 (2024-04-14)
88
89
  ------------------
89
90
 
90
- * add login && add asset position
91
+ * First release on PyPI.
91
92
 
92
93
  0.1.1 (2024-04-16)
93
94
  ------------------
94
95
 
95
96
  * Delete python3.8 python3.9 pypy.
96
97
 
97
- 0.1.0 (2024-04-14)
98
+ 0.1.2 (2024-04-18)
98
99
  ------------------
99
100
 
100
- * First release on PyPI.
101
+ * add login && add asset position
102
+
103
+ 0.1.3 (2024-04-19)
104
+ ------------------
105
+
106
+ * update docs theme
107
+
108
+ 0.1.5 (2024-04-24)
109
+ ------------------
110
+
111
+ * update login refrence
101
112
 
102
113
 
@@ -41,9 +41,9 @@ Overview
41
41
  :alt: Supported implementations
42
42
  :target: https://pypi.org/project/emtl
43
43
 
44
- .. |commits-since| image:: https://img.shields.io/github/commits-since/riiy/emtl/v0.1.3.svg
44
+ .. |commits-since| image:: https://img.shields.io/github/commits-since/riiy/emtl/v0.1.5.svg
45
45
  :alt: Commits since latest release
46
- :target: https://github.com/riiy/emtl/compare/v0.1.3...master
46
+ :target: https://github.com/riiy/emtl/compare/v0.1.5...master
47
47
 
48
48
 
49
49
 
@@ -25,7 +25,7 @@ except Exception:
25
25
  import traceback
26
26
 
27
27
  traceback.print_exc()
28
- version = release = "0.1.3"
28
+ version = release = "0.1.5"
29
29
 
30
30
  pygments_style = "trac"
31
31
  templates_path = ["."]
@@ -34,7 +34,7 @@ extlinks = {
34
34
  "pr": ("https://github.com/riiy/emtl/pull/%s", "PR #%s"),
35
35
  }
36
36
 
37
- html_theme = "furo"
37
+ html_theme = "alabaster"
38
38
  html_theme_options = {
39
39
  "githuburl": "https://github.com/riiy/emtl/",
40
40
  }
@@ -0,0 +1 @@
1
+ sphinx==7.2.6
@@ -8,3 +8,5 @@ To use the project:
8
8
 
9
9
  import emtl
10
10
  emtl.emt(...)
11
+ emtl.login(...)
12
+ emtl.query_asset_and_position(...)
@@ -16,7 +16,7 @@ setup(
16
16
  use_scm_version={
17
17
  "local_scheme": "dirty-tag",
18
18
  "write_to": "src/emtl/_version.py",
19
- "fallback_version": "0.1.3",
19
+ "fallback_version": "0.1.5",
20
20
  },
21
21
  license="MIT",
22
22
  description="东方财富自动交易系统",
@@ -24,7 +24,7 @@ setup(
24
24
  re.compile("^.. start-badges.*^.. end-badges", re.M | re.S).sub("", read("README.rst")),
25
25
  re.sub(":[a-z]+:`~?(.*?)`", r"``\1``", read("CHANGELOG.rst")),
26
26
  ),
27
- author="Eastmoney Trade Library",
27
+ author="Riiy",
28
28
  author_email="riiyzhou@gmail.com",
29
29
  url="https://github.com/riiy/emtl",
30
30
  packages=find_packages("src"),
@@ -34,7 +34,7 @@ setup(
34
34
  zip_safe=False,
35
35
  classifiers=[
36
36
  # complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
37
- "Development Status :: 2 - Pre-Alpha",
37
+ "Development Status :: 5 - Production/Stable",
38
38
  "Intended Audience :: Developers",
39
39
  "License :: OSI Approved :: MIT License",
40
40
  "Operating System :: Unix",
@@ -1,4 +1,4 @@
1
- __version__ = "0.1.3"
1
+ __version__ = "0.1.5"
2
2
 
3
3
  from .core import emt
4
4
  from .core import login
@@ -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.4.dev1'
16
- __version_tuple__ = version_tuple = (0, 1, 4, 'dev1')
15
+ __version__ = version = '0.1.5'
16
+ __version_tuple__ = version_tuple = (0, 1, 5)
@@ -94,10 +94,12 @@ def _get_em_validate_key():
94
94
 
95
95
 
96
96
  def login(username: str, password: str, duration: int = 30) -> Optional[str]:
97
- """Login.
98
- :param username: 用户名
99
- :param password: 密码(明文)
100
- :param duration: 在线时长(分钟)
97
+ """登录接口.
98
+
99
+ :param str username: 用户名
100
+ :param str password: 密码(明文)
101
+ :param duration: 在线时长(分钟), defaults to 30
102
+ :type duration: int, optional
101
103
  :return:
102
104
  """
103
105
  if (ret := _get_captcha_code()) is None:
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: emtl
3
- Version: 0.1.4.dev1
3
+ Version: 0.1.5
4
4
  Summary: 东方财富自动交易系统
5
5
  Home-page: https://github.com/riiy/emtl
6
- Author: Eastmoney Trade Library
6
+ Author: Riiy
7
7
  Author-email: riiyzhou@gmail.com
8
8
  License: MIT
9
9
  Project-URL: Documentation, https://emtl.readthedocs.io/
@@ -11,7 +11,7 @@ Project-URL: Changelog, https://emtl.readthedocs.io/en/latest/changelog.html
11
11
  Project-URL: Issue Tracker, https://github.com/riiy/emtl/issues
12
12
  Keywords: autotrade,trade,东方财富,股票,交易,交易机器人
13
13
  Platform: UNKNOWN
14
- Classifier: Development Status :: 2 - Pre-Alpha
14
+ Classifier: Development Status :: 5 - Production/Stable
15
15
  Classifier: Intended Audience :: Developers
16
16
  Classifier: License :: OSI Approved :: MIT License
17
17
  Classifier: Operating System :: Unix
@@ -84,19 +84,30 @@ Note, to combine the coverage data from all the tox environments run:
84
84
  Changelog
85
85
  =========
86
86
 
87
- 0.1.2 (2024-04-18)
87
+
88
+ 0.1.0 (2024-04-14)
88
89
  ------------------
89
90
 
90
- * add login && add asset position
91
+ * First release on PyPI.
91
92
 
92
93
  0.1.1 (2024-04-16)
93
94
  ------------------
94
95
 
95
96
  * Delete python3.8 python3.9 pypy.
96
97
 
97
- 0.1.0 (2024-04-14)
98
+ 0.1.2 (2024-04-18)
98
99
  ------------------
99
100
 
100
- * First release on PyPI.
101
+ * add login && add asset position
102
+
103
+ 0.1.3 (2024-04-19)
104
+ ------------------
105
+
106
+ * update docs theme
107
+
108
+ 0.1.5 (2024-04-24)
109
+ ------------------
110
+
111
+ * update login refrence
101
112
 
102
113
 
@@ -1,2 +0,0 @@
1
- sphinx>=1.3
2
- furo
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