example-package-practice 0.0.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.
@@ -0,0 +1,78 @@
1
+ # This workflow will upload a Python Package to PyPI when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3
+
4
+ # This workflow uses actions that are not certified by GitHub.
5
+ # They are provided by a third-party and are governed by
6
+ # separate terms of service, privacy policy, and support
7
+ # documentation.
8
+
9
+ name: Upload Python Package
10
+
11
+ on:
12
+ push:
13
+ branches:
14
+ [ "main" ]
15
+ pull_request:
16
+ branches:
17
+ [ "main" ]
18
+ release:
19
+ types: [published]
20
+
21
+ #permissions:
22
+ #contents: read
23
+
24
+ jobs:
25
+ release-build:
26
+ runs-on: ubuntu-latest
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+ - uses: actions/setup-python@v5
30
+ with:
31
+ python-version: "3.x"
32
+ - name: Build release distributions
33
+ run: |
34
+ # NOTE: put your own distribution build steps here.
35
+ rm -rf dist
36
+ python -m pip install build
37
+ python -m build
38
+
39
+ - name: Upload distributions
40
+ uses: actions/upload-artifact@v4
41
+ with:
42
+ name: release-dists
43
+ path: dist/
44
+
45
+
46
+
47
+ pypi-publish:
48
+ runs-on: ubuntu-latest
49
+ needs:
50
+ - release-build
51
+ permissions:
52
+ id-token: write
53
+ steps:
54
+ - name: Retrieve release distributions
55
+ uses: actions/download-artifact@v4
56
+ with:
57
+ name: release-dists
58
+ path: dist/
59
+
60
+ - name: Publish release distributions to PyPI
61
+ uses: pypa/gh-action-pypi-publish@release/v1
62
+ with:
63
+ packages-dir: dist/
64
+ # env:
65
+ # TWINE_USERNAME: __token__
66
+ # TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
67
+
68
+
69
+ # Dedicated environments with protections for publishing are strongly recommended.
70
+ # For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
71
+ #environment: <--- This is for test -->
72
+ #name: pypi
73
+ # OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
74
+ # url: https://pypi.org/p/YOURPROJECT
75
+ #
76
+ # ALTERNATIVE: if your GitHub Release name is the PyPI project version string
77
+ # ALTERNATIVE: exactly, uncomment the following line instead:
78
+ # url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
@@ -0,0 +1 @@
1
+ This is the first file in this folder to push it to repository.
@@ -0,0 +1,207 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
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
+ #poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ #pdm.lock
116
+ #pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ #pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # SageMath parsed files
135
+ *.sage.py
136
+
137
+ # Environments
138
+ .env
139
+ .envrc
140
+ .venv
141
+ env/
142
+ venv/
143
+ ENV/
144
+ env.bak/
145
+ venv.bak/
146
+
147
+ # Spyder project settings
148
+ .spyderproject
149
+ .spyproject
150
+
151
+ # Rope project settings
152
+ .ropeproject
153
+
154
+ # mkdocs documentation
155
+ /site
156
+
157
+ # mypy
158
+ .mypy_cache/
159
+ .dmypy.json
160
+ dmypy.json
161
+
162
+ # Pyre type checker
163
+ .pyre/
164
+
165
+ # pytype static type analyzer
166
+ .pytype/
167
+
168
+ # Cython debug symbols
169
+ cython_debug/
170
+
171
+ # PyCharm
172
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
173
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
174
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
175
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
176
+ #.idea/
177
+
178
+ # Abstra
179
+ # Abstra is an AI-powered process automation framework.
180
+ # Ignore directories containing user credentials, local state, and settings.
181
+ # Learn more at https://abstra.io/docs
182
+ .abstra/
183
+
184
+ # Visual Studio Code
185
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
186
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
187
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
188
+ # you could uncomment the following to ignore the entire vscode folder
189
+ # .vscode/
190
+
191
+ # Ruff stuff:
192
+ .ruff_cache/
193
+
194
+ # PyPI configuration file
195
+ .pypirc
196
+
197
+ # Cursor
198
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
199
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
200
+ # refer to https://docs.cursor.com/context/ignore-files
201
+ .cursorignore
202
+ .cursorindexingignore
203
+
204
+ # Marimo
205
+ marimo/_static/
206
+ marimo/_lsp/
207
+ __marimo__/
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2018 The Python Packaging Authority
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,24 @@
1
+ Metadata-Version: 2.4
2
+ Name: example_package_practice
3
+ Version: 0.0.3
4
+ Summary: A small example package
5
+ Project-URL: Homepage, https://github.com/pypa/sampleproject
6
+ Project-URL: Issues, https://github.com/pypa/sampleproject/issues
7
+ Author-email: Example Author <author@example.com>
8
+ License: MIT
9
+ License-File: LICENSE
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Programming Language :: Python :: 3
12
+ Requires-Python: >=3.9
13
+ Description-Content-Type: text/markdown
14
+
15
+ # python-practice-app
16
+ This is for practice
17
+
18
+ # Example Package
19
+
20
+ This is a simple example package. You can use
21
+ [GitHub-flavored Markdown](https://guides.github.com/features/mastering-markdown/)
22
+ to write your content.
23
+
24
+ https://www.geeksforgeeks.org/python/python-projects-beginner-to-advanced/
@@ -0,0 +1,10 @@
1
+ # python-practice-app
2
+ This is for practice
3
+
4
+ # Example Package
5
+
6
+ This is a simple example package. You can use
7
+ [GitHub-flavored Markdown](https://guides.github.com/features/mastering-markdown/)
8
+ to write your content.
9
+
10
+ https://www.geeksforgeeks.org/python/python-projects-beginner-to-advanced/
@@ -0,0 +1,26 @@
1
+ [build-system]
2
+ requires = ["hatchling >= 1.26"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "example_package_practice"
7
+ version = "0.0.3"
8
+ authors = [
9
+ { name="Example Author", email="author@example.com" },
10
+ ]
11
+ description = "A small example package"
12
+ readme = "README.md"
13
+ requires-python = ">=3.9"
14
+ classifiers = [
15
+ "Programming Language :: Python :: 3",
16
+ "Operating System :: OS Independent",
17
+ ]
18
+ license = { text="MIT" }
19
+ license-files = ["LICENSE"]
20
+
21
+ [project.urls]
22
+ Homepage = "https://github.com/pypa/sampleproject"
23
+ Issues = "https://github.com/pypa/sampleproject/issues"
24
+
25
+ [project.scripts]
26
+ myapp = "example_package_practice:run"
@@ -0,0 +1,3 @@
1
+ from .example import run
2
+
3
+ __all__ = ["run"]
@@ -0,0 +1,48 @@
1
+ #def add_one(number):
2
+ # return number + 1
3
+
4
+ #Above code is basic from documentation
5
+
6
+ # Import required modules
7
+ from tkinter import *
8
+ import rotatescreen
9
+
10
+
11
+ # User defined function
12
+ # for rotating screen
13
+ def Screen_rotation(temp):
14
+ screen = rotatescreen.get_primary_display()
15
+ if temp == "up":
16
+ screen.set_landscape()
17
+ elif temp == "right":
18
+ screen.set_portrait_flipped()
19
+ elif temp == "down":
20
+ screen.set_landscape_flipped()
21
+ elif temp == "left":
22
+ screen.set_portrait()
23
+
24
+
25
+ # Creating tkinter object
26
+ master = Tk()
27
+ master.geometry("100x100")
28
+ master.title("Screen Rotation")
29
+ master.configure(bg='light grey')
30
+
31
+
32
+ # Variable classes in tkinter
33
+ result = StringVar()
34
+
35
+
36
+ # Creating buttons to change orientation
37
+ Button(master, text="Up", command=lambda: Screen_rotation(
38
+ "up"), bg="white").grid(row=0, column=3)
39
+ Button(master, text="Right", command=lambda: Screen_rotation(
40
+ "right"), bg="white").grid(row=1, column=6)
41
+ Button(master, text="Left", command=lambda: Screen_rotation(
42
+ "left"), bg="white").grid(row=1, column=2)
43
+ Button(master, text="Down", command=lambda: Screen_rotation(
44
+ "down"), bg="white").grid(row=3, column=3)
45
+
46
+
47
+ mainloop()
48
+