Skip to main content

custom common fun

Project description

init.py中写法

  1. 使用方式
  2. 导包,可选
My Common Lib

This package provides utility functions and classes for various projects.
Usage:

    from my_common_lib import greet, add

    # Example usage
    print(greet("Alice"))  # Output: "Hello, Alice!"
    print(add(3, 5))       # Output: 8

Functions:
- greet(name): Returns a greeting string.
- add(a, b): Returns the sum of two numbers.
"""

# Optional: You can also import commonly used functions here for convenience
from .my_module import greet, add

本地安装和测试

pip install .

打包和分发

python setup.py sdist bdist_wheel

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

cus_lib-0.0.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cus_lib-0.0.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file cus_lib-0.0.1.tar.gz.

File metadata

  • Download URL: cus_lib-0.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.13

File hashes

Hashes for cus_lib-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4ce40c9cd0e072566613b0304f09c99d3ecd5f7fe0b610c1d12f7bb89eb88447
MD5 568d5be5cecca25bc134be37a0632c70
BLAKE2b-256 9e496453b0dec0647e68356bb85850186098ffcd35df4d9eb55482d9b148e846

See more details on using hashes here.

File details

Details for the file cus_lib-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: cus_lib-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.13

File hashes

Hashes for cus_lib-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 036acc7c1061f94c1e6751cf63a1d9e6e52ee2da74251b5c37a6497ebd76757f
MD5 5d37b9339b07efdb4f47f1ba6520755b
BLAKE2b-256 7d1e6f0f7f26afb048c28338b2e8ecddb0af7ec7958aff34e9a9f0a454cf6916

See more details on using hashes here.

Supported by

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