wtoolzargs contains core filtering and ordering logic for web applications.
Project description
wtoolzargs
wtoolzargs contains core filtering and ordering logic for web applications
Installation | Getting Up And Running | Examples | API | See Also
wtoolzargs contains core filtering and ordering logic for web applications. The main feature are:
-
Filtering and
-
ordering for SQLAlchemy models.
Installation
pip install wtoolzargs
Getting Up and Running
nox -l
Examples
import wtoolzargs
# sqlalchemy model
class Hacker(Base):
__tablename__ = "hacker"
id = Column(Integer, primary_key=True)
a = Column(String)
b = Column(String)
c = Column(String)
d = Column(String)
e = Column(String)
f = wtoolzargs.filter_(Hacker, "a eq 'a' and b eq 'b'")
res = Hacker.query.filter(f).all()
o = wtoolzargs.order(Hacker, "a asc, b desc")
res = Hacker.query.filter(f).order_by(*o).all()
API
FIXME
See Also
FIXME
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wtoolzargs-0.1.0.tar.gz
(8.2 kB
view details)
File details
Details for the file wtoolzargs-0.1.0.tar.gz.
File metadata
- Download URL: wtoolzargs-0.1.0.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7180929657ffab0cd2b9f82fce8d3badb8756ad02b2c194114a049c185d0aae
|
|
| MD5 |
e3cd705b9fc4177c109e5be9706c345b
|
|
| BLAKE2b-256 |
53d153576387d9fe1076c3bbb88806f6f45835ceab2d0ca3c1768fa73a4d45ed
|