Doc for module is now in the module itself
Project description
smModule
Collection of methods and classes that are very useful and save a lot of time
Please report any errors to pascalvallaster@gmail.com
Installation
``` pip install smModule ```Description
This module contains several sections, for example the Logging - Section for writing logs or the DB and SQL - Section. Every class and method has its own doc-string containing information about usage, examples, exceptions... . You can see the doc-string by hover over the element with your mouse in the editor (eg. PyCharm) or by typing following python command:
help(sm.<element>)
Usage
For example we would like to execute a SQL-Query in my DB-File:
from sm import dbworker
class db(dbworker):
db_path = "/home/user1234/testDB.db"
result = []
def run_sql(self, sqlcom="SELECT Title FROM Books"):
self.c.execute(sqlcom)
self.connection.commit()
for row in self.c.fetchall():
self.result.append(str(row))
db_instance = db()
db_instance.run_sql()
for element in db_instance.result:
print(element)
db_instance.close()
License
Copyright by Pascal Vallaster | all rights reserved, OSI Approved; MIT-License
Development
Help and fixes welcome!
Tested on the following python versions: 3.6, 3.7, 3.8, 3.9
Tested on the following OS-Systems: Windows 10, Kali Linux, Ubuntu
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file smModule-9.1.1.tar.gz.
File metadata
- Download URL: smModule-9.1.1.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bf93cb885887201f8610e9699f71b9cdd8a41b981ac4cfd88bdf54d26756080
|
|
| MD5 |
ff56b3b5dfd9bc898aa48e464b0ae01d
|
|
| BLAKE2b-256 |
9976bb7f855851a3354f7e302b69d716ebcef164f0f0fe135572eb5451e202fa
|
File details
Details for the file smModule-9.1.1-py3-none-any.whl.
File metadata
- Download URL: smModule-9.1.1-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
116f2fda7ed9f7f246a03da377a9699c38c0ea61fc36bbcfa317aa1564951317
|
|
| MD5 |
c6cb0d442bc754969f9151cf03aebfcd
|
|
| BLAKE2b-256 |
68761cbe072906edc5262aa4a0a9b2167b3faf414bb4c4e91134ad502a63b896
|