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
color_print(content, font_color, bg_color)save_pic_iterly(pic_name, postfix, info)read_csv_tqdm(path, **kwargs)save_result_csv(csv_path, data)get_unique_save_path(folder_path, base_name_pattern, start_no)
graph
pyg_data_to_dgl_graph(pyg_data_obj)
gpu
get_gpu_memory_usage()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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
muyi-0.0.9-py3-none-any.whl
(6.8 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4db36ffbbc7244fe181b4f320b177b93d6ca993638317e5129766d2aadadb81a
|
|
| MD5 |
52c504400a0bf66a66d09704b5d07959
|
|
| BLAKE2b-256 |
e6a73990fdfe8be93219c8eea595823ccc0d670adbde216c469e87909273f3ea
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa131d19d491cf18158dcb709e7538a11e8287cc12346eb9f862915950ffa93b
|
|
| MD5 |
c2b3a765f2c441aaaaf551e96d603026
|
|
| BLAKE2b-256 |
da6c7a5655851e0a40f54cc5ba31ec30fe841aa6ecf3012506a11b6f9ad8c86c
|