Package: graphpy-example-package
graphpy_example_packageInstallationYou can use this Python package by following these steps:Step 1: InstallationFrom PyPI:You can install the package from PyPI using pip:https://pypi.org/project/graphpy-example-package/pipinstallgraphpy-example-packageFrom Local:If you have the package locally, navigate to the root folder withpyproject.tomland run:pipinstall./Step 2: ImportYou can import the package's modules as follows:fromgraphpy_example_packageimportgp_apisTestingTo run the package's test file located in the test folder, execute the following command:python3GCN_graphpy_test.py--gdir/mnt/huge_26TB/data/test2/cora/--category7--graphbinaryBuilding the Python PackageTo build the Python package, first install the necessary tools:python3-mpipinstall--upgradebuildThen build the package:python3-mbuildUploading the Package to PyPITo upload the package to PyPI, ensure you have thetwinetool installed:python3-mpipinstall--upgradetwineThen upload the package distribution:python3-mtwineuploaddist/*Instructions for Creating Python PackagesThis is a sample project demonstrating how to create a Python library and publish it on PyPI. The structure and steps to create and distribute a Python package are outlined here.Reference DocumentationFor detailed information on packaging and distributing Python projects, refer to thePackaging Python Projectstutorial on the official Python packaging website.Project StructureEnsure your project follows the following structure:graphpy_example_package/
├── LICENSE
├── pyproject.toml
├── README.md
├── src/
│   └── graphpy_example_package/
│       ├── __init__.py
│       └── gp_apis.py
└── tests/Thesrcdirectory contains your project's source code, and you should have an__init__.pyfile inside theproject_namefolder to mark it as a Python package.Include aLICENSEfile to specify the licensing terms of your project.Write your project's README in Markdown format in theREADME.mdfile.Place your project's tests in thetestsdirectory.Thepyproject.tomlfile contains the project metadata and configuration.All reference to local modules need to be import using package name: ex.import kernel as gpkneed to befrom graphpy_example_package import kernel as gpkpyproject.toml ConfigurationHere's an example of apyproject.tomlconfiguration for your project:[build-system]requires=["hatchling"]build-backend="hatchling.build"[project]name="graphpy_example_package"version="0.0.1"authors=[{name="Your Name",email="your@email.com"},]description="A small example package"readme="README.md"requires-python=">=3.7"classifiers=["Programming Language :: Python :: 3","License :: OSI Approved :: MIT License","Operating System :: OS Independent",][project.urls]homepage="https://github.com/yourusername/graphpy_example_package"bug-tracker="https://github.com/yourusername/graphpy_example_package"Building and DistributingTo build and distribute your package, follow these steps:Install the required tools:sudoaptinstallpython3-pip
pip3installbuild
sudoaptinstallpython3.10-venvBuild source distribution (sdist) and/or build distribution (wheel):python3-mbuild--sdist/path/to/your/project
python3-mbuild--wheel/path/to/your/projectInstall Twine for uploading:sudoaptinstalltwineUpload your distribution files to PyPI:twineuploaddist/graphpy_example_package-0.0.1.tar.gzdist/graphpy_example_package-0.0.1-py3-none-any.whlAPI Token for PyPI UploadIf you encounter an API token issue during upload, create an API token on PyPI:Username:__token__Password: Your generated token