Skip to main content

Some useful utils.

Project description

muyi

Some useful utils for GNNs and Deep Learning.

Installation

pip install muyi              # basic installation
pip install muyi[plot]        # + matplotlib
pip install muyi[csv]         # + pandas, tqdm
pip install muyi[gpu]         # + GPUtil
pip install muyi[graph]       # + torch, dgl
pip install muyi[all]         # all dependencies

utils

  1. color_print(content, font_color, bg_color)
  2. save_pic_iterly(pic_name, postfix, info)
  3. read_csv_tqdm(path, **kwargs)
  4. save_result_csv(csv_path, data)
  5. get_unique_save_path(folder_path, base_name_pattern, start_no)

graph

  1. pyg_data_to_dgl_graph(pyg_data_obj)

gpu

  1. get_gpu_memory_usage()
  2. display_gpu_memory_usage()

Upload to PyPI

# 1. Install build tools
pip install build twine

# 2. Build package
python -m build

# 3. Upload to PyPI
twine upload dist/*
# Username: __token__
# Password: your PyPI API Token (starts with pypi-)

Get API Token: https://pypi.org/manage/account/token/

Save Token Locally (Optional)

Create ~/.pypirc file to avoid entering credentials each time:

[pypi]
username = __token__
password = pypi-your-token-here
  • Linux/macOS: ~/.pypirc
  • Windows: C:\Users\<username>\.pypirc

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

muyi-0.0.9.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

muyi-0.0.9-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file muyi-0.0.9.tar.gz.

File metadata

  • Download URL: muyi-0.0.9.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.14

File hashes

Hashes for muyi-0.0.9.tar.gz
Algorithm Hash digest
SHA256 4db36ffbbc7244fe181b4f320b177b93d6ca993638317e5129766d2aadadb81a
MD5 52c504400a0bf66a66d09704b5d07959
BLAKE2b-256 e6a73990fdfe8be93219c8eea595823ccc0d670adbde216c469e87909273f3ea

See more details on using hashes here.

File details

Details for the file muyi-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: muyi-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.14

File hashes

Hashes for muyi-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 aa131d19d491cf18158dcb709e7538a11e8287cc12346eb9f862915950ffa93b
MD5 c2b3a765f2c441aaaaf551e96d603026
BLAKE2b-256 da6c7a5655851e0a40f54cc5ba31ec30fe841aa6ecf3012506a11b6f9ad8c86c

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