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.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f063adf812d6cf6e1110a48937b4622f579b8cd0d627ea175fe9f2e61fdc1d23 |
|
MD5 | ab0ca2d0252fcce16004a21029dc74d7 |
|
BLAKE2b-256 | e114cf6dedc80ab66e03403587b1ec9e5fe59f61eec83658eebd57f6b07e6d19 |