Creating a Python Package Using Setuptools | Python Tutorials For Absolute Beginners In Hindi #95

Code setup.py as described/written in the video


from setuptools import setup
setup(name="packageharry",
version="0.3",
description="This is code with harry package",
long_description = "This is a very very long description",
author="Harry",
packages=['packageharry'],
install_requires=[])

Code __init__.py as described/written in the video


class Achha:
    def __init__(self):
        print("Constructor ban gaya")

    def achhafunc(self, number):
        print("This is a function")
        return number




Be the first person to comment!

Comments(0)