semvec/pypi-packages huggingface dataset:
alembic-migrate 2.5.9.dev0
A framework-independent fork of flask-migrate.
License: MIT

alembic-migrate
=============

alembic-migrate is a framework-independent fork of flask-migrate.

Installation
------------

To install, run `pip install alembic-migrate`

Usage
-----

Create the following file structure:

```bash
model/
  ├── __init__.py
  ├── base.py
  ├── book.py 
```

Then declare your SQLAlchemy Base and connection string in `model/base.py`.
*Note: the connection string doesn't need to match your
app's DB connection, it's only used for migrations.*

```python
# model/base.py
from sqlalchemy.ext.declarative import declarative_base

Base = declarative_base()

def get_base():
    return {'base': Base, 'sqlalchemy_url': 'sqlite:///demo.db'}
```

Let's add a model in `model/book.py`:
```python
from .base import Base
from sqlalchemy import Integer, String, Column

class Book(Base):
    __tablename__ = 'books'
    name = Column(String, primary_key=True)
    year = Column(Integer)
```

Now `cd ..` so that you are out of the model package and run:
* `alembic-db init` to setup the template
* `alembic-db migrate` to create a migration

You can also check out the example folder in this repo.

### Configuring base module

The base module contains `get_base() -> dict`. By default `model.base` is used but you can change the environment variable:
```python
export ALEMBIC_BASE="my_model.base"
```

### Customize model import logic

By default, all `*.py` files in the same package as the base will be loaded.
However if you want to split your models in subpackages or have custom logic
you should implement `import_models` inside your base module.

```python
def import_models():
   from . import car, book
   from .sub import other_models

def get_base():
    return ...
```
sasa-phys 0.1
Semi Analytic Stacking Algorithm for Meta Surface stacks
License: MIT

SASA "Semi Analytic Stacking Algorithm"


Documentation:
https://sasa.readthedocs.io/en/latest/index.html#


Functionality:

- create arbitrary meta surface stacks and calculate their scatter matrices
- apply geometric transformations to single layers
- simulate different spacer heights


References:

[1] J. Sperrhake, M. Decker, M. Falkner, S. Fasold, T. Kaiser, I. Staude, T. Pertsch,
    "Analyzing the polarization response of a chiral metasurface stack by semi-analytic modeling",
    Optics Express 1246, 2019


[2] C. Menzel, J. Sperrhake, T. Pertsch,
    "Efficient treatment of stacked metasurfaces for optimizing and enhancing the range of accessible optical functionalities",
    Physical Review A 93, 2016


[3] J. Sperrhake, T. Kaiser, M. Falkner, S. Fasold, T. Pertsch,
    "Interaction of reflection paths of light in metasurfaces stacks"
snekchek 0.4.8
Linter/formatter/test-tool wrapper for python modules
License: MIT
Keywords: linter,formatter,python,pylint,flake8,isort,vulture,bandit,dodgy,safety,pytest,unittest,pyroma,pypi,yapf,black,snekchek,snekrc

SnekCheck
=========
|image0|

A generalized, highly customizable python linter 

All configuration (except for pylint) is done in one file: .snekrc

full .snekrc:

.. code:: ini

    TODO

**Not all flake8 extensions are supported!**

::

    usage: snekchek [-h] [--json] [--config-file CONFIG_FILE]

       optional arguments:
         -h, --help            show this help message and exit
         --json                output in JSON format
         --config-file CONFIG_FILE
                               Select config file to use

.. |image0| image:: https://travis-ci.org/IzunaDevs/SnekChek.svg?branch=master