cemirfw
Install
sudo bash install.sh
cemirfw start
cemirfw stop
cemirfw restart
cemirfw disable
cemirfw status
Sample endpoints
from func_dbs import db_query, Tablo
from func_handlers import put, get, check_params
@put(r"/fiyat-guncelle", auth=False, redis_cache_params={"expire_time": 30, "key": "ip,useragent"})
async def putete(request, data):
table = Tablo("test1")
# ins_result = await table.insert(name="asd", blocked=True, content=data).execute()
# upd_result = await table.update(blocked=True, name="asdasdasdasdasdasd").where(id=7).execute()
# del_result = await table.where(id=15).delete()
# sel_result = await table.select("*", fetchall=True).wherenot(name=["asd", "John", "Johdddddddddddddddddn"]).order('id').asc().execute()
# sel_result = await table.select("*", fetchall=True).wherenot(id=3).order('id').asc().execute()
# sel_result = await table.select("*", fetchall=True).wherenot(name="Johdddddddddddddddddn").order('id').asc().execute()
# sel_result = await table.select("*", fetchall=True).likenot(name="John").order('id').asc().execute()
# sel_result = await table.select("*", fetchall=True).likeew(name="hn").order('id').asc().execute()
# sel_result = await table.select("*", fetchall=True).likenotew(name="asd").order('id').asc().execute()
# sel_result = await table.select("*", fetchall=True).likesw(name="Jo").order('id').asc().execute()
sel_result = await table.select("*", fetchall=True).likenotsw(name="asd").order('id').asc().execute()
# sel_result = await table.select("*").where(id=7).execute()
return sel_result
@get(r"/pi", redis_cache_params={"expire_time": 3, "key": "ip,useragent"})
@check_params(["id"])
async def get_pi(request):
id = request.params("id")
# return await db_query("SELECT content FROM accounting__customer_proforma_invoices where id=%s;", id, False, 2, "proformainvoices")
return await db_query("SELECT content FROM test1 where id in (1,2,3,4);", id, True, 2, "proformainvoices")
Metadata
Release files for cemirfw 20240624.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cemirfw-20240624.1.tar.gz | 2.6 kB | Without provenance | Details for cemirfw-20240624.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cemirfw-20240624.1-py3-none-any.whl | Python 3 | none | any | Details for cemirfw-20240624.1-py3-none-any.whl |
Total release size: 5.2 kB
Release files / cemirfw-20240624.1.tar.gz
| Download URL | cemirfw-20240624.1.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
944188c9e1425844cb315baeb95f98144c01dabcdd3ece3f659a2569b754a347
|
|
BLAKE2b-256 checksum How to use checksums |
60af793027c523885d42536a14d406cc64e71f875985abf2ca0f297fc561d292
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.19
|
Release files / cemirfw-20240624.1-py3-none-any.whl
| Download URL | cemirfw-20240624.1-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
462ccb8f9fadb8c3932b40e1a2aecf6897f781416cf49377c5ddc32dfe589dd0
|
|
BLAKE2b-256 checksum How to use checksums |
557b1f2f4934c7851042d0172a8358e19cb64495f2d02aebc9559383c5be20da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.19
|
Security for cemirfw 20240624.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.