steampie 0.2.0__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 (36) hide show
  1. steampie-0.2.0/.github/workflows/publish.yml +17 -0
  2. steampie-0.2.0/.gitignore +175 -0
  3. steampie-0.2.0/.vscode/settings.json +9 -0
  4. steampie-0.2.0/LICENSE +22 -0
  5. steampie-0.2.0/PKG-INFO +96 -0
  6. steampie-0.2.0/README.md +78 -0
  7. steampie-0.2.0/conftest.py +70 -0
  8. steampie-0.2.0/docs/Makefile +20 -0
  9. steampie-0.2.0/docs/conf.py +67 -0
  10. steampie-0.2.0/docs/index.rst +10 -0
  11. steampie-0.2.0/docs/make.bat +35 -0
  12. steampie-0.2.0/docs/pages/client.rst +6 -0
  13. steampie-0.2.0/docs/pages/exceptions.rst +6 -0
  14. steampie-0.2.0/docs/pages/models.rst +6 -0
  15. steampie-0.2.0/docs/pages/utils.rst +6 -0
  16. steampie-0.2.0/example_credentials.json +7 -0
  17. steampie-0.2.0/pyproject.toml +26 -0
  18. steampie-0.2.0/setup.cfg +4 -0
  19. steampie-0.2.0/setup.py +3 -0
  20. steampie-0.2.0/src/steampie/__init__.py +10 -0
  21. steampie-0.2.0/src/steampie/client.py +617 -0
  22. steampie-0.2.0/src/steampie/confirmation.py +130 -0
  23. steampie-0.2.0/src/steampie/exceptions.py +47 -0
  24. steampie-0.2.0/src/steampie/guard.py +68 -0
  25. steampie-0.2.0/src/steampie/login.py +238 -0
  26. steampie-0.2.0/src/steampie/models.py +112 -0
  27. steampie-0.2.0/src/steampie/utils.py +159 -0
  28. steampie-0.2.0/src/steampie.egg-info/PKG-INFO +96 -0
  29. steampie-0.2.0/src/steampie.egg-info/SOURCES.txt +34 -0
  30. steampie-0.2.0/src/steampie.egg-info/dependency_links.txt +1 -0
  31. steampie-0.2.0/src/steampie.egg-info/requires.txt +3 -0
  32. steampie-0.2.0/src/steampie.egg-info/top_level.txt +1 -0
  33. steampie-0.2.0/tests/__init__.py +0 -0
  34. steampie-0.2.0/tests/test_client.py +119 -0
  35. steampie-0.2.0/tests/test_guard.py +36 -0
  36. steampie-0.2.0/tests/test_utils.py +40 -0
@@ -0,0 +1,17 @@
1
+ name: Upload Python Package
2
+ on:
3
+ release:
4
+ types: [published]
5
+ jobs:
6
+ pypi:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - name: Checkout
10
+ uses: actions/checkout@v3
11
+ with:
12
+ fetch-depth: 0
13
+ - run: python3 -m pip install --upgrade build && python3 -m build
14
+ - name: Publish package
15
+ uses: pypa/gh-action-pypi-publish@release/v1
16
+ with:
17
+ password: ${{ secrets.PYPI_API_TOKEN }}
@@ -0,0 +1,175 @@
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
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+
110
+ # pdm
111
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
112
+ #pdm.lock
113
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
114
+ # in version control.
115
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
116
+ .pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
121
+ __pypackages__/
122
+
123
+ # Celery stuff
124
+ celerybeat-schedule
125
+ celerybeat.pid
126
+
127
+ # SageMath parsed files
128
+ *.sage.py
129
+
130
+ # Environments
131
+ .env
132
+ .venv
133
+ env/
134
+ venv/
135
+ ENV/
136
+ env.bak/
137
+ venv.bak/
138
+
139
+ # Spyder project settings
140
+ .spyderproject
141
+ .spyproject
142
+
143
+ # Rope project settings
144
+ .ropeproject
145
+
146
+ # mkdocs documentation
147
+ /site
148
+
149
+ # mypy
150
+ .mypy_cache/
151
+ .dmypy.json
152
+ dmypy.json
153
+
154
+ # Pyre type checker
155
+ .pyre/
156
+
157
+ # pytype static type analyzer
158
+ .pytype/
159
+
160
+ # Cython debug symbols
161
+ cython_debug/
162
+
163
+ # PyCharm
164
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
165
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
166
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
167
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
168
+ #.idea/
169
+
170
+ # PyPI configuration file
171
+ .pypirc
172
+
173
+ # steampie
174
+ credentials.json
175
+ *.maFile
@@ -0,0 +1,9 @@
1
+ {
2
+ "editor.formatOnSave": true,
3
+ "editor.defaultFormatter": "charliermarsh.ruff",
4
+ "[python]": {
5
+ "editor.codeActionsOnSave": {
6
+ "source.organizeImports": "explicit"
7
+ }
8
+ }
9
+ }
steampie-0.2.0/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2016 Michał Bukowski gigibukson@gmail.com
4
+ Copyright (c) 2024 offish
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
@@ -0,0 +1,96 @@
1
+ Metadata-Version: 2.1
2
+ Name: steampie
3
+ Version: 0.2.0
4
+ Summary: Interact with Steam using Python 3
5
+ Author-email: offish <overutilization@gmail.com>
6
+ Project-URL: Homepage, https://github.com/offish/steampie
7
+ Project-URL: Bug Tracker, https://github.com/offish/steampie/issues
8
+ Keywords: steam,steampie,steampy,steamio
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >=3.12
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: rsa
16
+ Requires-Dist: beautifulsoup4
17
+ Requires-Dist: requests
18
+
19
+ # steampie
20
+ [![License](https://img.shields.io/github/license/offish/steampie.svg)](https://github.com/offish/steampie/blob/master/LICENSE)
21
+ [![Stars](https://img.shields.io/github/stars/offish/steampie.svg)](https://github.com/offish/steampie/stargazers)
22
+ [![Issues](https://img.shields.io/github/issues/offish/steampie.svg)](https://github.com/offish/steampie/issues)
23
+ [![Size](https://img.shields.io/github/repo-size/offish/steampie.svg)](https://github.com/offish/steampie)
24
+ [![Discord](https://img.shields.io/discord/467040686982692865?color=7289da&label=Discord&logo=discord)](https://discord.gg/t8nHSvA)
25
+ [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
26
+
27
+ `steampie` is a Python library for interacting with Steam, and is a modified fork of [bukson](https://github.com/bukson)'s [steampy](https://github.com/bukson/steampy).
28
+
29
+ ## Donate
30
+ * BTC: `bc1qntlxs7v76j0zpgkwm62f6z0spsvyezhcmsp0z2` (offish)
31
+ * [Steam Trade Offer](https://steamcommunity.com/tradeoffer/new/?partner=293059984&token=0-l_idZR) (offish)
32
+ * BTC (bukson): `3PRzESHsTVkCFK7osjwFGQLZjSf7qXP1Ta` (bukson)
33
+ * [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XC8BMJ8QRD9ZY) (bukson)
34
+
35
+ ## Installation
36
+ ```bash
37
+ pip install steampie
38
+ ```
39
+
40
+ ### Update
41
+ ```bash
42
+ pip install --upgrade steampie
43
+ ```
44
+
45
+ ## Differences from `steampy`
46
+ <!-- * Added functionality for adding/removing friends -->
47
+ * Removed market functionality due to Steam having strict ToS regarding market automation
48
+ * Uses [ruff](https://github.com/astral-sh/ruff) for formatting and linting
49
+ * Uses [pytest](https://pytest.org/) for unit tests
50
+
51
+ <!-- ## Usage
52
+
53
+
54
+ ## Examples
55
+
56
+
57
+ ## Developing -->
58
+
59
+
60
+ ### Tests
61
+ ```bash
62
+ # steampie/
63
+ pytest
64
+ ```
65
+
66
+ ### Building documentation
67
+ ```bash
68
+ # steampie/
69
+ cd docs/
70
+ make clean
71
+ make html
72
+ ```
73
+
74
+ ## License
75
+ MIT License
76
+
77
+ Copyright (c) 2016 [Michał Bukowski](mailto:gigibukson@gmail.com) <br>
78
+ Copyright (c) 2024 offish ([confern](https://steamcommunity.com/id/confern))
79
+
80
+ Permission is hereby granted, free of charge, to any person obtaining a copy
81
+ of this software and associated documentation files (the "Software"), to deal
82
+ in the Software without restriction, including without limitation the rights
83
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
84
+ copies of the Software, and to permit persons to whom the Software is
85
+ furnished to do so, subject to the following conditions:
86
+
87
+ The above copyright notice and this permission notice shall be included in all
88
+ copies or substantial portions of the Software.
89
+
90
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
91
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
92
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
93
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
94
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
95
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
96
+ SOFTWARE.
@@ -0,0 +1,78 @@
1
+ # steampie
2
+ [![License](https://img.shields.io/github/license/offish/steampie.svg)](https://github.com/offish/steampie/blob/master/LICENSE)
3
+ [![Stars](https://img.shields.io/github/stars/offish/steampie.svg)](https://github.com/offish/steampie/stargazers)
4
+ [![Issues](https://img.shields.io/github/issues/offish/steampie.svg)](https://github.com/offish/steampie/issues)
5
+ [![Size](https://img.shields.io/github/repo-size/offish/steampie.svg)](https://github.com/offish/steampie)
6
+ [![Discord](https://img.shields.io/discord/467040686982692865?color=7289da&label=Discord&logo=discord)](https://discord.gg/t8nHSvA)
7
+ [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
8
+
9
+ `steampie` is a Python library for interacting with Steam, and is a modified fork of [bukson](https://github.com/bukson)'s [steampy](https://github.com/bukson/steampy).
10
+
11
+ ## Donate
12
+ * BTC: `bc1qntlxs7v76j0zpgkwm62f6z0spsvyezhcmsp0z2` (offish)
13
+ * [Steam Trade Offer](https://steamcommunity.com/tradeoffer/new/?partner=293059984&token=0-l_idZR) (offish)
14
+ * BTC (bukson): `3PRzESHsTVkCFK7osjwFGQLZjSf7qXP1Ta` (bukson)
15
+ * [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XC8BMJ8QRD9ZY) (bukson)
16
+
17
+ ## Installation
18
+ ```bash
19
+ pip install steampie
20
+ ```
21
+
22
+ ### Update
23
+ ```bash
24
+ pip install --upgrade steampie
25
+ ```
26
+
27
+ ## Differences from `steampy`
28
+ <!-- * Added functionality for adding/removing friends -->
29
+ * Removed market functionality due to Steam having strict ToS regarding market automation
30
+ * Uses [ruff](https://github.com/astral-sh/ruff) for formatting and linting
31
+ * Uses [pytest](https://pytest.org/) for unit tests
32
+
33
+ <!-- ## Usage
34
+
35
+
36
+ ## Examples
37
+
38
+
39
+ ## Developing -->
40
+
41
+
42
+ ### Tests
43
+ ```bash
44
+ # steampie/
45
+ pytest
46
+ ```
47
+
48
+ ### Building documentation
49
+ ```bash
50
+ # steampie/
51
+ cd docs/
52
+ make clean
53
+ make html
54
+ ```
55
+
56
+ ## License
57
+ MIT License
58
+
59
+ Copyright (c) 2016 [Michał Bukowski](mailto:gigibukson@gmail.com) <br>
60
+ Copyright (c) 2024 offish ([confern](https://steamcommunity.com/id/confern))
61
+
62
+ Permission is hereby granted, free of charge, to any person obtaining a copy
63
+ of this software and associated documentation files (the "Software"), to deal
64
+ in the Software without restriction, including without limitation the rights
65
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
66
+ copies of the Software, and to permit persons to whom the Software is
67
+ furnished to do so, subject to the following conditions:
68
+
69
+ The above copyright notice and this permission notice shall be included in all
70
+ copies or substantial portions of the Software.
71
+
72
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
73
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
74
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
75
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
76
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
77
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
78
+ SOFTWARE.
@@ -0,0 +1,70 @@
1
+ import json
2
+ from base64 import b64encode
3
+
4
+ import pytest
5
+
6
+ from steampie.client import SteamClient
7
+
8
+
9
+ def my_steam_id() -> str:
10
+ return "76561198253325712"
11
+
12
+
13
+ @pytest.fixture
14
+ def partner_steam_id() -> str:
15
+ return "76561198155938401"
16
+
17
+
18
+ @pytest.fixture
19
+ def partner_trade_url() -> str:
20
+ return "https://steamcommunity.com/tradeoffer/new/?partner=195672673&token=k3YfpXNU"
21
+
22
+
23
+ @pytest.fixture
24
+ def shared_secret() -> bytes:
25
+ return b64encode(b"1234567890abcdefghij")
26
+
27
+
28
+ @pytest.fixture
29
+ def identity_secret() -> bytes:
30
+ return b64encode(b"abcdefghijklmnoprstu")
31
+
32
+
33
+ def get_credentials() -> dict:
34
+ steam_credentials = {}
35
+
36
+ with open("./credentials.json", "r") as f:
37
+ steam_credentials = json.load(f)
38
+
39
+ return steam_credentials
40
+
41
+
42
+ @pytest.fixture
43
+ def credentials() -> dict:
44
+ return get_credentials()
45
+
46
+
47
+ @pytest.fixture
48
+ def steam_guard_file() -> dict:
49
+ steam_guard_credentials = {}
50
+ steam_id = my_steam_id()
51
+
52
+ with open(f"./{steam_id}.maFile", "r") as f:
53
+ steam_guard_credentials = json.load(f)
54
+
55
+ steam_credentials = get_credentials()
56
+
57
+ steam_guard_credentials["password"] = steam_credentials["password"]
58
+ steam_guard_credentials["api_key"] = steam_credentials["api_key"]
59
+
60
+ return steam_guard_credentials
61
+
62
+
63
+ steam_credentials = get_credentials()
64
+ steam_client = SteamClient(**steam_credentials)
65
+ steam_client.login()
66
+
67
+
68
+ @pytest.fixture
69
+ def client() -> SteamClient:
70
+ return steam_client
@@ -0,0 +1,20 @@
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line, and also
5
+ # from the environment for the first two.
6
+ SPHINXOPTS ?=
7
+ SPHINXBUILD ?= sphinx-build
8
+ SOURCEDIR = .
9
+ BUILDDIR = _build
10
+
11
+ # Put it first so that "make" without argument is like "make help".
12
+ help:
13
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
+
15
+ .PHONY: help Makefile
16
+
17
+ # Catch-all target: route all unknown targets to Sphinx using the new
18
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
+ %: Makefile
20
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@@ -0,0 +1,67 @@
1
+ # Configuration file for the Sphinx documentation builder.
2
+ #
3
+ # For the full list of built-in configuration values, see the documentation:
4
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html
5
+ # flake8: noqa
6
+ import re
7
+ import os
8
+ import sys
9
+
10
+ sys.path.insert(0, os.path.abspath(".."))
11
+ sys.path.append(os.path.abspath("extensions"))
12
+
13
+
14
+ # -- Project information -----------------------------------------------------
15
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
16
+
17
+ project = "steampie"
18
+ copyright = "2024, offish"
19
+ author = "offish"
20
+
21
+ with open("src/steampie/__init__.py") as f:
22
+ version = re.search(
23
+ r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE
24
+ ).group(1)
25
+
26
+ # The full version, including alpha/beta/rc tags
27
+ release = version
28
+
29
+ # -- General configuration ---------------------------------------------------
30
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
31
+
32
+ extensions = []
33
+
34
+ templates_path = ["_templates"]
35
+ exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
36
+
37
+ extensions = [
38
+ "sphinxcontrib.jquery",
39
+ "sphinx.ext.duration",
40
+ "sphinx.ext.doctest",
41
+ "sphinx.ext.autodoc",
42
+ "sphinx.ext.autosummary",
43
+ "sphinx_rtd_theme",
44
+ "sphinx.ext.napoleon",
45
+ ]
46
+
47
+ autodoc_member_order = "bysource"
48
+
49
+ # -- Options for HTML output -------------------------------------------------
50
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
51
+
52
+ napoleon_google_docstring = True
53
+ napoleon_numpy_docstring = False
54
+ napoleon_include_init_with_doc = False
55
+ napoleon_include_private_with_doc = False
56
+ napoleon_include_special_with_doc = True
57
+ napoleon_use_admonition_for_examples = False
58
+ napoleon_use_admonition_for_notes = False
59
+ napoleon_use_admonition_for_references = False
60
+ napoleon_use_ivar = False
61
+ napoleon_use_param = True
62
+ napoleon_use_rtype = True
63
+ napoleon_preprocess_types = False
64
+ napoleon_type_aliases = None
65
+ napoleon_attr_annotations = True
66
+
67
+ html_theme = "furo"
@@ -0,0 +1,10 @@
1
+ .. include:: ../README.rst
2
+
3
+ .. toctree::
4
+ :maxdepth: 2
5
+ :caption: Contents:
6
+
7
+ pages/client
8
+ pages/models
9
+ pages/exceptions
10
+ pages/utils
@@ -0,0 +1,35 @@
1
+ @ECHO OFF
2
+
3
+ pushd %~dp0
4
+
5
+ REM Command file for Sphinx documentation
6
+
7
+ if "%SPHINXBUILD%" == "" (
8
+ set SPHINXBUILD=sphinx-build
9
+ )
10
+ set SOURCEDIR=.
11
+ set BUILDDIR=_build
12
+
13
+ %SPHINXBUILD% >NUL 2>NUL
14
+ if errorlevel 9009 (
15
+ echo.
16
+ echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
17
+ echo.installed, then set the SPHINXBUILD environment variable to point
18
+ echo.to the full path of the 'sphinx-build' executable. Alternatively you
19
+ echo.may add the Sphinx directory to PATH.
20
+ echo.
21
+ echo.If you don't have Sphinx installed, grab it from
22
+ echo.https://www.sphinx-doc.org/
23
+ exit /b 1
24
+ )
25
+
26
+ if "%1" == "" goto help
27
+
28
+ %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29
+ goto end
30
+
31
+ :help
32
+ %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33
+
34
+ :end
35
+ popd
@@ -0,0 +1,6 @@
1
+ client
2
+ ------
3
+ .. automodule:: src.steampie.client
4
+ :members:
5
+ :undoc-members:
6
+ :private-members:
@@ -0,0 +1,6 @@
1
+ exceptions
2
+ ----------
3
+ .. automodule:: src.steampie.exceptions
4
+ :members:
5
+ :undoc-members:
6
+ :private-members:
@@ -0,0 +1,6 @@
1
+ models
2
+ ------
3
+ .. automodule:: src.steampie.models
4
+ :members:
5
+ :undoc-members:
6
+ :private-members:
@@ -0,0 +1,6 @@
1
+ utils
2
+ -----
3
+ .. automodule:: src.steampie.utils
4
+ :members:
5
+ :undoc-members:
6
+ :private-members:
@@ -0,0 +1,7 @@
1
+ {
2
+ "api_key": "FDSHJ428768GDJ43",
3
+ "username": "username",
4
+ "password": "password",
5
+ "identity_secret": "ds6432ghjs6732ghdsjaas=",
6
+ "shared_secret": "dsa732gfdsds427fdsjfg="
7
+ }
@@ -0,0 +1,26 @@
1
+ [build-system]
2
+ requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "steampie"
7
+ authors = [
8
+ { name="offish", email="overutilization@gmail.com" },
9
+ ]
10
+ description = "Interact with Steam using Python 3"
11
+ readme = "README.md"
12
+ requires-python = ">=3.12"
13
+ keywords = ["steam", "steampie", "steampy", "steamio"]
14
+ classifiers = [
15
+ "Programming Language :: Python :: 3",
16
+ "License :: OSI Approved :: MIT License",
17
+ "Operating System :: OS Independent",
18
+ ]
19
+ dependencies = ["rsa", "beautifulsoup4", "requests"]
20
+ dynamic = ["version"]
21
+
22
+ [project.urls]
23
+ "Homepage" = "https://github.com/offish/steampie"
24
+ "Bug Tracker" = "https://github.com/offish/steampie/issues"
25
+
26
+ [tool.setuptools_scm]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ from setuptools import setup
2
+
3
+ setup()