Skip to main content

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

testpackage_yidas-0.0.5.tar.gz (1.3 kB view hashes)

Uploaded Source

Built Distribution

testpackage_yidas-0.0.5-py3-none-any.whl (2.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page