Skip to main content

My first python package

Project description

MyML Project:

Project name: MyML

This project actually defines the ML project structure.


  1. create virtual environment:

    conda create --name venv python=3.9

  2. activate the venv

    conda activate venv

  3. create a project folder

    mkdir MyML

  4. do some following installation
  5. edit file: >import os >import sys >sys.path.insert(0, os.path.abspath("../my_py_pkg/src")) >project = 'MyML' >copyright = '2023, Khandoker Nosiba Arifin' >author = 'Khandoker Nosiba Arifin' >release = '' >extensions = [ "sphinx.ext.viewcode", "sphinx.ext.todo", "sphinx.ext.autodoc" ] >templates_path = ['_templates']
  6. Add modules into the insert.rst
  7. do some following installation 3 & 4
  8. using cmd >cd docs >sphinx-quickstart >cd my-py-pkg >sphinx_apidoc -o ../docs src/ >cd docs >make html 9. If you want to show the html file then go to the --> docs>build>html>index.html the right click an copy the file and open it using the browser. 10. then create and install the following 11. then for build and upload package to the and we must have an account to the note: package name must be unique otherwise we will get error.

python sdist bdist_wheel twine upload dist/* > username: token > password: "your-api-token"


  1. install conda(miniconda3)
  2. install make (for running make file) After installing make

make --version make install (for running the Makefile and installing the packages which are include into the requirements.txt) (we have to create docs folder where all the documentations of our project are being saved now we have to install these 3 & 4 no)

  1. pip install sphinx
  2. pip install sphinx-rtd-theme

(for 5. pip install setuptools (for locally publish the package) 6. pip install -e . 7. pip install twine



Go to the > Licenses > popular/ strong Community> MIT License(copy & paste to the LICENSE file & edit the author name and copyright year)

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

nsb_ml_py_pkg-1.0.2.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

nsb_ml_py_pkg-1.0.2-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

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