Skip to main content
https://travis-ci.org/moskytw/mosql.png

The full version of this documentation is at mosql.mosky.tw.

MoSQL — More than SQL

It lets you use the common Python data structures to build SQLs. Here are the main features:

  1. Easy-to-learn — Everything is just a plain Python object or SQL keyword.

  2. Flexible — The query it builds fully depends on the structure you provide.

  3. Secure — It prevents the SQL injection from both identifier and value.

  4. Fast — It simply translates the Python data structures into SQLs.

It is just more than SQL.

MoSQL is Elegant

Here we have a dictionary which includes the information of a person:

>>> mosky = {
...    'person_id': 'mosky',
...    'name'     : 'Mosky Liu',
... }

And we want to insert it into a table named person. It is easy with mosql.query:

>>> from mosql.query import insert
>>> print(insert('person', mosky))
INSERT INTO "person" ("person_id", "name") VALUES ('mosky', 'Mosky Liu')

Check The Common Queries — mosql.query for detail, or there are examples which interact with real database.

Like it?

It is available on PyPI:

$ sudo pip install mosql

Or clone the source code from GitHub:

$ git clone git://github.com/moskytw/mosql.git

Metadata

Release files for mosql 0.12.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mosql 0.12.3
File Size Uploaded Provenance Actions
mosql-0.12.3.tar.gz 38.5 kB Without provenance Details for mosql-0.12.3.tar.gz

Release files / mosql-0.12.3.tar.gz

Download URL mosql-0.12.3.tar.gz
Size 38.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f018e1e64aebf30d2b3471d4bafb42a599e08f99d3d2b180661a53e5acdf9d83
BLAKE2b-256 checksum
How to use checksums
e4f5129f11cb503ba0224100c270d397766695a73111237ba23284853834e86a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Security for mosql 0.12.3

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.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page