Python package development

Once you have created a Python file you can upload this on a web repository where others can use this module.

pip install httpimport
import httpimport
url = "https://raw.githubusercontent.com/deep-bits/PFA/main/Python-tutorials/"
with httpimport.remote_repo(url):
    import circle as c
    import Factorial_via_iteration as f
print("Area of a circle with radius =",4,"is",c.area(4))
## Area of a circle with radius = 4 is 50.26544
print("Factorial of",4, "is",f.factI(4))
## Factorial of 4 is 24

Summary : A repository link can be provided to httpimport's remote_repo() function with which you can import the python modules as hosted on web repositories such as GitHub. After the import of remote repository it can be accessed like a local python module.