semvec/pypi-packages huggingface dataset:
MongoDBQueriesManager 0.0.1
Convert query parameters from API urls to MongoDB queries !
License: MIT

# MongoDBQueriesManager
![GitHub](https://img.shields.io/github/license/comic31/MongoDBQueriesManager?style=for-the-badge)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg?style=for-the-badge)](code_of_conduct.md)

Convert query parameters from API urls to MongoDB queries !

This project was inspired by [api-query-params](https://github.com/loris/api-query-params) (JS Library).

## Features:
- **Powerful**: Supports most of MongoDB operators ($in, $regexp, ...) and features (nested objects, type casting, ...)
- **Agnostic**: Works with any web frameworks (Flask, Sanic, ...) and/or MongoDB libraries (pymongo, motor, ...)
- **Simple**: ~150 LOC, Python typing

## Installation:
```shell script
pipenv install mongodb-queries-manager
```

## Usages:
### Api
`mqm(string_query: str) -> Dict[str, Any]:`

###### Description
Converts `string_query` into a MongoDB query dict.

###### Arguments
- `string_query`: query string of the requested API URL (ie, `frist_name=John&limit=10`), Works with url encoded. [required]

###### Returns
The resulting dictionary contains the following properties:
- `filter`: Contains the query criteria
- `sort`: Contains the sort criteria (cursor modifiers)
- `skip`: Contains the skip criteria (cursor modifiers)
- `limit`:  Contains the limit criteria (cursor modifiers)

###### Exception
In case of error the following exception was raised:

- `MongoDBQueriesManagerError`: This exception was raised if the library fail to parse query. Contains `raison` attribute.

###### Examples:
```python
from pymongo import MongoClient
from pymongo.collection import Collection
from pymongo.database import Database

from mongodb_querie_manager import mqm

client: MongoClient = MongoClient('localhost', 27017)
db: Database = client['test-database']
collection: Collection = db['test-collection']

mongodb_query = mqm(string_query="status=sent&toto=true&timestamp>2016-01-01&"
                                 "author.firstName=/john/i&limit=100&skip=50&sort=-timestamp")

result = collection.find(**mongodb_query)
```
regex-build 1.0.1
Build complex one-line regex strings.
License: MIT
Requires Python: >=2.7
Keywords: regex,build,generate,re,auto,create

# regex-build
Build complex one-line regex strings.

The preferred way of building is using a one line chain of calls on the `RegexBuild` instance.
For anything more complex, using it as a context manager will allow for multiple calls to be made on the same instance.

Instances of `RegexBuild` may be used interchangeably with strings, allowing for multiple nested instances to be used.

```python
>>> original_regex = r'.*\\Roaming\\(Microsoft|NVIDIA|Adobe\\.*(Asset|Native)Cache)\\'

# Complex example
>>> with RegexBuild(r'.*\\Roaming\\') as build_regex:
...     build_regex(
...         'Microsoft', 'NVIDIA', RegexBuild(r'Adobe\\.*')('Asset', 'Native')('Cache'),
...     )(r'\\')

>>> original_regex == str(build_regex)
True

# Different ways to build the same regex
>>> with RegexBuild('(?i)', exit='$') as case_insensitive:
...     # As one line
...     case_insensitive('prefix1_')('word1', 'word2')('_suffix1')
...
...     # As context managers
...     with case_insensitive('prefix2_') as prefix:
...         with prefix('word2', 'word3') as words:
...             words('_suffix2')
...
...     # As context manager using the "end" parameter
...     with case_insensitive('prefix3_', end='_suffix3') as prefix:
...         prefix('word4')
...         prefix('word5')
...

>>> case_insensitive
'(?i)(prefix1_(word1|word2)_suffix1|prefix2_(word3|word4)_suffix2|prefix3_(word5|word6)_suffix3)$'
```
ps-htmlpy 0.0.3
Run python commands from html file (on server as Flask)
License: MIT
Requires Python: >=3.5
Keywords: htmlpy

# HTML Python
Run python commands from html file (on server as Flask)
# Flask Example
```
import htmlpy
htmlpy.set_templates_dir('templates')
# Some code here -_-
@app.route('/')
def index():
    return htmlpy.render('index.html')
```
index.html :
```
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  {{ About }}<br>
  <htmlpy>
    print(exec('python test.py arg1 arg2'))
  </htmlpy>
</body>

</html>
```
outpost24hiabclient 0.3
Client for interacting with Outpost24 HIAB
License: MIT
Keywords: outpost24 HIAB API XML python

===================
outpost24hiabclient
===================

A python library for interfacing with Outpost24 HIAB api


* Documentation: https://outpost24hiabclient.readthedocs.org/en/latest


Project Features
================

* Manages users, usergroups, targets, targetgroups


Todo
====

* This code is MVP. It requires a lot of optimizations and extensions.
* Things to do are, try to make the retrieving faster and implement smart caching for entities.




History
-------

0.1.0 (03-02-2021)
------------------

* First release