semvec/pypi-packages huggingface dataset:
sqlalchemycollector 1.4.5
Metis log collector for Flask and SQLAlchemy


[![metis](https://static-asserts-public.s3.eu-central-1.amazonaws.com/metis-min-logo.png)](https://www.metisdata.io/)

# [Metis FastAPI SQLAlchemy collector](https://docs.metisdata.io/metis/sdk-integration/python-sqlalchemy) 

## Demo Project

### [Flask. SQLAlchemy(psycopg) and PostgreSQL](https://github.com/metis-data/python-flask-postgresql-sqlalchemy)

### About

This library logs the HTTP requests created by FastAPI and SQLAlchemy with the SQL commands they generate. The library
can also collect the execution plan for deeper analysis using [Metis](https://metisdata.io).
Read more in our: [Documentation](https://docs.metisdata.io)

### Technical

This library uses [OpenTelemetry](https://pypi.org/project/opentelemetry-sdk/) to instrument both FastAPI and
SQLAlchemy.

Tested on python 3.8.9, FastAPI 0.78.0, SQLAlchemy 1.4.33, PostgreSQL 12 or higher.
pylint-import-restriction 0.1.5
Pylint plugin to help enforce separation of concerns through import restrictions.
Requires Python: >=3.11,<4.0

# pylint-import-restriction

Pylint plugin to help enforce separation of concerns through import restrictions.

## Installation

Install the module with e.g. `poetry add --group dev pylint_import_restriction`.

## Usage
In your Pylint configuration (e.g. in `pyproject.toml`) add the following:
```
[tool.pylint.MAIN]
load-plugins = "pylint_import_restriction"
import-restriction= [
    "module_visited->module_import_restriction",
    "module2_visited -> restriction\\..*"
]
```
The restrictions configured as part of `import-restriction` setting, and as represented above take the following shape - `module_visited -> import_restriction`
- `module_visited`: The module which is presently being looked at. This could be a RegEx in order to capture several modules.
- `->`: The separator denoting the module being investigated (on the left), and the restricted imports (on the right). You can optionally add spaces around it for clarity.
- `import_restriction`: The module which is restricted from being imported within the module being investigated. This could be a RegEx in order to capture several modules.