Skip to main content

My first python package

Project description

MyML Project:

Project name: MyML

This project actually defines the ML project structure.

Description

  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 conf.py 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 = '0.0.0.1' >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 setup.py and install the following 11. then for build and upload package to the pypi.org and we must have an account to the pypi.org. note: package name must be unique otherwise we will get error.

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

Installation

  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 setup.py) 5. pip install setuptools (for locally publish the package) 6. pip install -e . 7. pip install twine

Contributors

License

Go to the https://opensource.org/ > 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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file nsb_ml_py_pkg-1.0.2.tar.gz.

File metadata

  • Download URL: nsb_ml_py_pkg-1.0.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for nsb_ml_py_pkg-1.0.2.tar.gz
Algorithm Hash digest
SHA256 166215f06d75cb6cab5b4c3164fd29a7fbebc94df84d2ca1abe2314b17bfe9e7
MD5 7171cdef5a3c6ca70b5db646bca2373b
BLAKE2b-256 e5d06ebea947242d05dc8cb2d9302e8bdb9a904e0a46187d0d535a38140a5e3e

See more details on using hashes here.

File details

Details for the file nsb_ml_py_pkg-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: nsb_ml_py_pkg-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for nsb_ml_py_pkg-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5f8aa2157bddb3b93c2667974dd192bb7f1a8250125d7888097c671344516b9e
MD5 adbe4f2cc3d9b5ad837615ac3947469c
BLAKE2b-256 04b2e70866fab92dc12a298219dbca33946c51ff69854b91c72cd0fe68e5e2fd

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