+ 6

Creating our own module/library in python.

How can we create our own module/library in python that everyone can use by installing the module then importing?

15th Dec 2024, 3:39 AM
You
You - avatar
8 odpowiedzi
+ 3
You , do you talk about creating and using own modules in sololearn environment ?
15th Dec 2024, 12:29 PM
Lothar
Lothar - avatar
+ 3
Lothar I am taking about creating a package in python that others can use by installing and importing in a python code.
15th Dec 2024, 1:14 PM
You
You - avatar
+ 3
module is not package. but package is a module with a file named __init__.py Just upload it to pypi and that's all
15th Dec 2024, 2:04 PM
RuntimeTerror
RuntimeTerror - avatar
+ 2
Hello, To create your own Python module/library: Write your Python code in a folder (e.g., my_library/). Create a setup.py file with metadata about your library. (Optional) Add __init__.py for submodules. Build your package using python setup.py sdist bdist_wheel. Upload it to PyPI with twine upload dist/*. Others can install it via pip install my_library.
18th Dec 2024, 6:16 AM
venom85jojes
+ 1
Thanks to all
16th Dec 2024, 10:38 AM
You
You - avatar
0
I am new on this programming app plz assist if you want to
16th Dec 2024, 6:19 PM
Sthembiso Khumalo
Sthembiso Khumalo - avatar
0
I was on free trail then my heart finish so I couldn't complete my lesson I need help am new
17th Dec 2024, 12:56 AM
Egujeh Mary
Egujeh Mary - avatar