Skip to main content

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:

def greet():
    return "Hello, world!"

TestClass.py:

class TestClass:
    def greet(self):
        return "Hello, world!"

__init__.py:

# Autoload (TestClass.TestClass => TestClass)
from .TestClass import TestClass

pyproject.toml

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "TestPackage_yidas"
...

Usage

from TestPackage_yidas import example
from TestPackage_yidas import TestClass

print(example.greet())
obj = TestClass()
print(obj.greet())

Metadata

Release files for TestPackage-yidas 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TestPackage-yidas 0.0.6
File Size Uploaded
testpackage_yidas-0.0.6.tar.gz 1.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for TestPackage-yidas 0.0.6
File Interpreter ABI Platform
testpackage_yidas-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 3.5 kB

Release files / testpackage_yidas-0.0.6.tar.gz

Download URL testpackage_yidas-0.0.6.tar.gz
Size 1.4 kB
Tags Source
SHA-256 checksum
How to use checksums
34d0453dbcfc75e63658b9f0d2bb1e42f83719a54921bdc9c375443fb18d9858
BLAKE2b-256 checksum
How to use checksums
3abbb79cf44ea71f45ad99b5a8dff422709ae5e7a79902afbe31e6d2b7198f8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.6

Release files / testpackage_yidas-0.0.6-py3-none-any.whl

Download URL testpackage_yidas-0.0.6-py3-none-any.whl
Size 2.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7396980c207197869302458752340b05050a76fec0bb387a691086a30ee0ab24
BLAKE2b-256 checksum
How to use checksums
1ac580a3233168762e994ca471083eeb26b01e6d26583895a066380a59986d65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page