A small example package
Project description
Test Package
This is a simple example of how to create a Python package.
Installation
Run pip install yidas-TestPackage
Structure
packaging_tutorial/
├── LICENSE
├── pyproject.toml
├── README.md
├── src/
│ └── TestPackage_yidas/
│ ├── __init__.py
│ └── example.py
└── tests/
example.py
:
# myclass.py
class TestClass:
def greet(self):
return "Hello, world!"
pyproject.toml
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "TestPackage_yidas"
...
Usage
# from stress_testing import StressTesting
from TestPackage_yidas import example
def main():
obj = example.TestClass()
print(obj.greet())
main()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for testpackage_yidas-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff774dee39c1c62f675b374fcdb46bb2c82e8866a69bbc99ab56633d30cd0e74 |
|
MD5 | 78a81aa2692262d42870025732c71884 |
|
BLAKE2b-256 | d94e2a41df7b4f3b2dad7014df72b7d59f1623a3cc070ac4fa6d4db52b3b0d48 |