degiro-cli 0.1.2__tar.gz → 0.1.3__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.
- {degiro-cli-0.1.2/degiro_cli.egg-info → degiro_cli-0.1.3}/PKG-INFO +21 -6
- {degiro-cli-0.1.2 → degiro_cli-0.1.3/degiro_cli.egg-info}/PKG-INFO +21 -6
- {degiro-cli-0.1.2 → degiro_cli-0.1.3}/degiro_cli.egg-info/SOURCES.txt +1 -6
- degiro_cli-0.1.3/degiro_cli.egg-info/entry_points.txt +4 -0
- degiro_cli-0.1.3/degiro_cli.egg-info/requires.txt +14 -0
- {degiro-cli-0.1.2 → degiro_cli-0.1.3}/degirocli/history.py +5 -5
- {degiro-cli-0.1.2 → degiro_cli-0.1.3}/degirocli/login.py +3 -3
- {degiro-cli-0.1.2 → degiro_cli-0.1.3}/degirocli/search.py +4 -4
- degiro_cli-0.1.3/pyproject.toml +59 -0
- degiro-cli-0.1.2/bin/degiro-history +0 -8
- degiro-cli-0.1.2/bin/degiro-login +0 -8
- degiro-cli-0.1.2/bin/degiro-logout +0 -0
- degiro-cli-0.1.2/bin/degiro-portfolio +0 -0
- degiro-cli-0.1.2/bin/degiro-search +0 -8
- degiro-cli-0.1.2/degiro_cli.egg-info/requires.txt +0 -9
- degiro-cli-0.1.2/pyproject.toml +0 -4
- degiro-cli-0.1.2/setup.py +0 -68
- {degiro-cli-0.1.2 → degiro_cli-0.1.3}/LICENSE +0 -0
- {degiro-cli-0.1.2 → degiro_cli-0.1.3}/README.md +0 -0
- {degiro-cli-0.1.2 → degiro_cli-0.1.3}/degiro_cli.egg-info/dependency_links.txt +0 -0
- {degiro-cli-0.1.2 → degiro_cli-0.1.3}/degiro_cli.egg-info/top_level.txt +0 -0
- {degiro-cli-0.1.2 → degiro_cli-0.1.3}/degirocli/__init__.py +0 -0
- {degiro-cli-0.1.2 → degiro_cli-0.1.3}/degirocli/helpers.py +0 -0
- {degiro-cli-0.1.2 → degiro_cli-0.1.3}/setup.cfg +0 -0
|
@@ -1,20 +1,35 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: degiro-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: Unofficial command line tools for Degiro
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Author-email: ohmajesticlama <ohmajesticlama@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/OhMajesticLama/degiro-cli
|
|
7
8
|
Project-URL: Documentation, https://ohmajesticlama.github.io/degiro-cli
|
|
9
|
+
Keywords: degiro,cli,finance,investment
|
|
8
10
|
Classifier: Programming Language :: Python :: 3
|
|
9
11
|
Classifier: License :: OSI Approved :: MIT License
|
|
10
12
|
Classifier: Operating System :: OS Independent
|
|
11
|
-
Classifier: Development Status ::
|
|
13
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
14
|
Classifier: Intended Audience :: End Users/Desktop
|
|
13
15
|
Classifier: Topic :: Office/Business :: Financial :: Investment
|
|
14
16
|
Requires-Python: >=3.8
|
|
15
17
|
Description-Content-Type: text/markdown
|
|
16
|
-
Provides-Extra: dev
|
|
17
18
|
License-File: LICENSE
|
|
19
|
+
Requires-Dist: degiroasync>=1.0.0
|
|
20
|
+
Provides-Extra: dev
|
|
21
|
+
Requires-Dist: pytest>=7.0.1; extra == "dev"
|
|
22
|
+
Requires-Dist: coverage>=6.3; extra == "dev"
|
|
23
|
+
Requires-Dist: flake8>=4.0.1; extra == "dev"
|
|
24
|
+
Requires-Dist: mypy>=0.931; extra == "dev"
|
|
25
|
+
Requires-Dist: build>=0.7.0; extra == "dev"
|
|
26
|
+
Requires-Dist: twine>=3.8.0; extra == "dev"
|
|
27
|
+
Requires-Dist: sphinx>=4.4.0; extra == "dev"
|
|
28
|
+
Requires-Dist: sphinx_rtd_theme>=1.0.0; extra == "dev"
|
|
29
|
+
Requires-Dist: myst-parser>=0.17.0; extra == "dev"
|
|
30
|
+
Requires-Dist: ipython; extra == "dev"
|
|
31
|
+
Requires-Dist: ipdb; extra == "dev"
|
|
32
|
+
Dynamic: license-file
|
|
18
33
|
|
|
19
34
|
# DegiroAsync Command Line Interface
|
|
20
35
|
|
|
@@ -1,20 +1,35 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: degiro-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: Unofficial command line tools for Degiro
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Author-email: ohmajesticlama <ohmajesticlama@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/OhMajesticLama/degiro-cli
|
|
7
8
|
Project-URL: Documentation, https://ohmajesticlama.github.io/degiro-cli
|
|
9
|
+
Keywords: degiro,cli,finance,investment
|
|
8
10
|
Classifier: Programming Language :: Python :: 3
|
|
9
11
|
Classifier: License :: OSI Approved :: MIT License
|
|
10
12
|
Classifier: Operating System :: OS Independent
|
|
11
|
-
Classifier: Development Status ::
|
|
13
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
14
|
Classifier: Intended Audience :: End Users/Desktop
|
|
13
15
|
Classifier: Topic :: Office/Business :: Financial :: Investment
|
|
14
16
|
Requires-Python: >=3.8
|
|
15
17
|
Description-Content-Type: text/markdown
|
|
16
|
-
Provides-Extra: dev
|
|
17
18
|
License-File: LICENSE
|
|
19
|
+
Requires-Dist: degiroasync>=1.0.0
|
|
20
|
+
Provides-Extra: dev
|
|
21
|
+
Requires-Dist: pytest>=7.0.1; extra == "dev"
|
|
22
|
+
Requires-Dist: coverage>=6.3; extra == "dev"
|
|
23
|
+
Requires-Dist: flake8>=4.0.1; extra == "dev"
|
|
24
|
+
Requires-Dist: mypy>=0.931; extra == "dev"
|
|
25
|
+
Requires-Dist: build>=0.7.0; extra == "dev"
|
|
26
|
+
Requires-Dist: twine>=3.8.0; extra == "dev"
|
|
27
|
+
Requires-Dist: sphinx>=4.4.0; extra == "dev"
|
|
28
|
+
Requires-Dist: sphinx_rtd_theme>=1.0.0; extra == "dev"
|
|
29
|
+
Requires-Dist: myst-parser>=0.17.0; extra == "dev"
|
|
30
|
+
Requires-Dist: ipython; extra == "dev"
|
|
31
|
+
Requires-Dist: ipdb; extra == "dev"
|
|
32
|
+
Dynamic: license-file
|
|
18
33
|
|
|
19
34
|
# DegiroAsync Command Line Interface
|
|
20
35
|
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
LICENSE
|
|
2
2
|
README.md
|
|
3
3
|
pyproject.toml
|
|
4
|
-
setup.py
|
|
5
|
-
bin/degiro-history
|
|
6
|
-
bin/degiro-login
|
|
7
|
-
bin/degiro-logout
|
|
8
|
-
bin/degiro-portfolio
|
|
9
|
-
bin/degiro-search
|
|
10
4
|
degiro_cli.egg-info/PKG-INFO
|
|
11
5
|
degiro_cli.egg-info/SOURCES.txt
|
|
12
6
|
degiro_cli.egg-info/dependency_links.txt
|
|
7
|
+
degiro_cli.egg-info/entry_points.txt
|
|
13
8
|
degiro_cli.egg-info/requires.txt
|
|
14
9
|
degiro_cli.egg-info/top_level.txt
|
|
15
10
|
degirocli/__init__.py
|
|
@@ -87,10 +87,10 @@ def prepare_inputs(input_stream: Iterable[str]) -> Iterable[Tuple[str, str]]:
|
|
|
87
87
|
inputs = filter(lambda l: l[0] != '#', inputs)
|
|
88
88
|
inputs = more_itertools.unique_everseen(inputs)
|
|
89
89
|
inputs = (line.split('.')[:2] for line in inputs)
|
|
90
|
-
return inputs
|
|
90
|
+
return inputs # type: ignore , correct type.
|
|
91
91
|
|
|
92
92
|
|
|
93
|
-
async def
|
|
93
|
+
async def run_price_pipeline(
|
|
94
94
|
session: dapi.Session,
|
|
95
95
|
*,
|
|
96
96
|
symbols: Iterable[str],
|
|
@@ -111,7 +111,7 @@ async def run(
|
|
|
111
111
|
return await asyncio.gather(*queries)
|
|
112
112
|
|
|
113
113
|
|
|
114
|
-
def
|
|
114
|
+
def main():
|
|
115
115
|
handler = logging.StreamHandler()
|
|
116
116
|
|
|
117
117
|
parser = argparse.ArgumentParser(
|
|
@@ -190,8 +190,8 @@ def run_cli():
|
|
|
190
190
|
"low",
|
|
191
191
|
"close",
|
|
192
192
|
))
|
|
193
|
-
asyncio.
|
|
194
|
-
|
|
193
|
+
asyncio.run(
|
|
194
|
+
run_price_pipeline(
|
|
195
195
|
session,
|
|
196
196
|
symbols=symbols,
|
|
197
197
|
period=period,
|
|
@@ -171,7 +171,7 @@ def get_session_from_cache() -> dapi.Session:
|
|
|
171
171
|
"""
|
|
172
172
|
Helper to get Session when already logged in.
|
|
173
173
|
"""
|
|
174
|
-
return asyncio.
|
|
174
|
+
return asyncio.run(_get_session_from_cache())
|
|
175
175
|
|
|
176
|
-
def
|
|
177
|
-
asyncio.
|
|
176
|
+
def main():
|
|
177
|
+
asyncio.run(login())
|
|
@@ -11,7 +11,7 @@ from .helpers import LOGGER
|
|
|
11
11
|
from .login import get_session_from_cache
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
async def
|
|
14
|
+
async def run_search_pipeline(
|
|
15
15
|
session: dapi.Session,
|
|
16
16
|
*,
|
|
17
17
|
search_txt: Optional[str],
|
|
@@ -45,7 +45,7 @@ async def run(
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
def
|
|
48
|
+
def main():
|
|
49
49
|
handler = logging.StreamHandler()
|
|
50
50
|
|
|
51
51
|
parser = argparse.ArgumentParser(
|
|
@@ -163,8 +163,8 @@ def run_cli():
|
|
|
163
163
|
"currency",
|
|
164
164
|
"isin",
|
|
165
165
|
))
|
|
166
|
-
asyncio.
|
|
167
|
-
|
|
166
|
+
asyncio.run(
|
|
167
|
+
run_search_pipeline(
|
|
168
168
|
session,
|
|
169
169
|
search_txt=search_txt,
|
|
170
170
|
exchange_txt=exchange_txt,
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "degiro-cli"
|
|
7
|
+
version = "0.1.3"
|
|
8
|
+
authors = [{ name = "ohmajesticlama", email = "ohmajesticlama@gmail.com" }]
|
|
9
|
+
description = "Unofficial command line tools for Degiro"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
requires-python = ">=3.8"
|
|
12
|
+
license = { text = "MIT" }
|
|
13
|
+
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"License :: OSI Approved :: MIT License",
|
|
17
|
+
"Operating System :: OS Independent",
|
|
18
|
+
"Development Status :: 5 - Production/Stable",
|
|
19
|
+
"Intended Audience :: End Users/Desktop",
|
|
20
|
+
"Topic :: Office/Business :: Financial :: Investment"
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
keywords = ["degiro", "cli", "finance", "investment"]
|
|
24
|
+
|
|
25
|
+
dependencies = [
|
|
26
|
+
"degiroasync >= 1.0.0",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[project.urls]
|
|
30
|
+
"Homepage" = "https://github.com/OhMajesticLama/degiro-cli"
|
|
31
|
+
"Documentation" = "https://ohmajesticlama.github.io/degiro-cli"
|
|
32
|
+
|
|
33
|
+
[project.scripts]
|
|
34
|
+
degiro-login = "degirocli.login:main"
|
|
35
|
+
degiro-history = "degirocli.history:main"
|
|
36
|
+
degiro-search = "degirocli.search:main"
|
|
37
|
+
|
|
38
|
+
[project.optional-dependencies]
|
|
39
|
+
dev = [
|
|
40
|
+
# Tests
|
|
41
|
+
"pytest >= 7.0.1",
|
|
42
|
+
"coverage >= 6.3",
|
|
43
|
+
# Code quality
|
|
44
|
+
"flake8 >= 4.0.1",
|
|
45
|
+
"mypy >= 0.931",
|
|
46
|
+
# For shipping
|
|
47
|
+
"build >= 0.7.0",
|
|
48
|
+
"twine >= 3.8.0",
|
|
49
|
+
# Documentation
|
|
50
|
+
"sphinx >= 4.4.0",
|
|
51
|
+
"sphinx_rtd_theme >= 1.0.0",
|
|
52
|
+
"myst-parser >= 0.17.0",
|
|
53
|
+
# Other dev tools
|
|
54
|
+
"ipython",
|
|
55
|
+
"ipdb",
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
[tool.setuptools]
|
|
59
|
+
packages = ["degirocli"]
|
|
File without changes
|
|
File without changes
|
degiro-cli-0.1.2/pyproject.toml
DELETED
degiro-cli-0.1.2/setup.py
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
setup file for degiroasync
|
|
3
|
-
"""
|
|
4
|
-
import sys
|
|
5
|
-
import os
|
|
6
|
-
|
|
7
|
-
import setuptools
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if __name__ == '__main__':
|
|
11
|
-
description = "Unofficial command line tools for Degiro"
|
|
12
|
-
readme_path = os.path.join(os.path.dirname(__file__), 'README.md')
|
|
13
|
-
with open(readme_path, "r") as fh:
|
|
14
|
-
long_description = fh.read()
|
|
15
|
-
|
|
16
|
-
setuptools.setup(
|
|
17
|
-
name="degiro-cli",
|
|
18
|
-
version="0.1.2",
|
|
19
|
-
author_email="ohmajesticlama@gmail.com",
|
|
20
|
-
description=description,
|
|
21
|
-
long_description=long_description,
|
|
22
|
-
long_description_content_type='text/markdown',
|
|
23
|
-
url="https://github.com/OhMajesticLama/degiro-cli",
|
|
24
|
-
project_urls={
|
|
25
|
-
'Documentation':
|
|
26
|
-
'https://ohmajesticlama.github.io/degiro-cli'
|
|
27
|
-
},
|
|
28
|
-
packages=setuptools.find_packages(),
|
|
29
|
-
scripts=[
|
|
30
|
-
os.path.join('bin', 'degiro-login'),
|
|
31
|
-
os.path.join('bin', 'degiro-history'),
|
|
32
|
-
os.path.join('bin', 'degiro-search'),
|
|
33
|
-
],
|
|
34
|
-
python_requires=">=3.8",
|
|
35
|
-
install_requires=[
|
|
36
|
-
'degiroasync >= 0.20.0',
|
|
37
|
-
],
|
|
38
|
-
extras_require={
|
|
39
|
-
'dev': [
|
|
40
|
-
# Tests
|
|
41
|
-
'pytest >= 7.0.1',
|
|
42
|
-
'coverage >= 6.3',
|
|
43
|
-
# Code quality
|
|
44
|
-
'flake8 >= 4.0.1',
|
|
45
|
-
'mypy >= 0.931',
|
|
46
|
-
# For shipping
|
|
47
|
-
#'build >= 0.7.0',
|
|
48
|
-
#'twine >= 3.8.0',
|
|
49
|
-
# Documentation
|
|
50
|
-
#'sphinx >= 4.4.0',
|
|
51
|
-
#'sphinx_rtd_theme >= 1.0.0',
|
|
52
|
-
#'myst-parser >= 0.17.0', # markdown imports
|
|
53
|
-
# Other dev tools
|
|
54
|
-
'ipython',
|
|
55
|
-
'ipdb',
|
|
56
|
-
]
|
|
57
|
-
},
|
|
58
|
-
classifiers=[
|
|
59
|
-
"Programming Language :: Python :: 3",
|
|
60
|
-
"License :: OSI Approved :: MIT License",
|
|
61
|
-
"Operating System :: OS Independent",
|
|
62
|
-
"Development Status :: 4 - Beta",
|
|
63
|
-
"Intended Audience :: End Users/Desktop",
|
|
64
|
-
"Topic :: Office/Business :: Financial :: Investment"
|
|
65
|
-
],
|
|
66
|
-
test_suite='pytest',
|
|
67
|
-
tests_require=['pytest']
|
|
68
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|