semvec/pypi-packages huggingface dataset:
openapi-client-generator 1.0.13
OpenAPI Client Generator
Keywords: utils typing json yaml openapi oas swagger schema serialization deserialization structured-data

.. _badges:

.. image:: https://github.com/avanov/openapi-client-generator/workflows/CI/badge.svg?branch=develop
    :target: https://github.com/avanov/openapi-client-generator/actions?query=branch%3Adevelop

.. image:: https://coveralls.io/repos/github/avanov/openapi-client-generator/badge.svg?branch=develop
    :target: https://coveralls.io/github/avanov/openapi-client-generator?branch=develop

.. image:: https://requires.io/github/avanov/openapi-client-generator/requirements.svg?branch=master
    :target: https://requires.io/github/avanov/openapi-client-generator/requirements/?branch=master
    :alt: Requirements Status

.. image:: https://readthedocs.org/projects/openapi-client-generator/badge/?version=latest
    :target: https://openapi-client-generator.readthedocs.io/en/latest/
    :alt: Documentation Status

.. image:: http://img.shields.io/pypi/v/openapi-client-generator.svg
    :target: https://pypi.python.org/pypi/openapi-client-generator
    :alt: Latest PyPI Release


OpenAPI Client Generator
========================

This CLI utility allows you to generate Python client packages from OpenAPI v3 specifications.
The project aims at supporting any generic valid specification.

Features
--------

* works on Python 3.8 and above;
* generates clients with type hints to aid static analysis of higher level interfaces that would use the clients;
* supports streaming endpoints.

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

You can install it from PyPI:

.. code-block:: bash

    pip install openapi-client-generator

Afterwards, use a CLI utility called ``openapi-client-generator``:

.. code-block:: bash

    $ openapi-client-generator --help
    usage: openapi-client-generator [-h] [-V] {gen} ...

    OpenAPI Client Generator

    optional arguments:
      -h, --help     show this help message and exit
      -V, --version  show program's version number and exit

    sub-commands:
      valid sub-commands

      {gen}          additional help
        gen          Generate client for a provided schema (JSON, YAML).


Contributing
============

Cloning this repo
-----------------

The proper way to clone this repo is:

.. code-block:: bash

    git clone --recurse-submodules <repo-url> <local-project-root>
    cd <local-project-root>

    # for showing submodule status with `git status`
    git config status.submodulesummary 1

    # for logging submodule diff with `git diff`
    git config diff.submodule log


Test framework
--------------

The project uses `Nix <https://nixos.org/>`_ for bootstrapping its dev environment.

You can run existing test suite with

.. code::

   $ nix-shell --run "make test"


Documentation
-------------

Documentation is hosted on ReadTheDocs: https://openapi-client-generator.readthedocs.io/en/develop/


Changelog
---------

See `CHANGELOG <https://github.com/avanov/openapi-client-generator/blob/master/CHANGELOG.rst>`_.

LICENSE
-------

MIT
minerva-ufrj 1.2.0
Book-renewal project for UFRJ library users
Requires Python: <4,>=3.7

# minerva
### Um renovador automático de livros da biblioteca da UFRJ

## Instalação
Requer Python3.7+, pode ser obtido via ``pip`` ou executando o script ``setup.py`` em um clone do repositório.

### Linux, OSx
```bash
$ python3 -m pip install minerva-ufrj
```
ou
```bash
$ pip3 install minerva-ufrj
```

### Windows
```shell
> pip install minerva-ufrj
```

## Uso
```
$ minerva --help
```

Para renovar os livros de uma conta use o comando:
```
minerva [user] [pswd]
```

Para guardar em cache suas credenciais:
```
minerva -c [user] [pswd]
```

Para listar as credenciais armazenadas:
```
minerva -l
```

Para renovar os livros de todas as credenciais armazenadas:
```
minerva -r
```

## Por fazer:
- Implementar configurações de renovação automática (agendada).<br>
    Algo como
    ```
    minerva --schedule
    ```
    que agende uma renovação ao conectar-se à internet.

- Implementar casos de erro ao renovar.
    Simplesmente melhores relatórios de falha.
automig 0.1.8
Declarative, automatic db migrations using SQL & git as the source of truth
Requires Python: >=3.6
Keywords: sql,migration,git,diff

# automigrate

Automigrate is a command-line tool for SQL migrations.
Unlike other migration tools, it uses git history to do diffs on `create table` statements instead of storing the migration history in a folder somewhere.

* [How is this different](#how-is-this-different)
* [Usage](#usage)
* [Advanced features](#advanced-features)

## How is this different

This tool uses git history to infer database migrations, and uses git SHAs to version production databases.

Other schema migration tools typically work by diffing ORM definitions against a live database (which can be your local DB).
Often these diffs are then checked into a folder in your project repo.

Seriously, all you have to do is maintain a file like this:

```sql
-- schema.sql
create table whatever (
  userid uuid primary key,
  age_at_birth int default 0
);
```

And when you add a field to the create table statement, automig figures out the 'alter table'.

## Usage

If you're using postgres:

```bash
pip install automig[postgres]
# set an environment var with postgres connection details
export AUTOMIG_CON=postgresql://postgres:$PGPASSWORD@host
# initialize the postgres DB to schema/*.sql -- do this once to create a DB
automig_pg --glob 'schema/*.sql' init
# update your DB to whatever sha is at git HEAD -- do this whenever your schema changes
automig_pg --glob 'schema/*.sql' update
# do a dry-run, show the output without applying it
automig_pg --preview --glob 'schema/*.sql' update
```

If you're using another database, you can get the raw SQL for these actions by using the `automig` tool instead of `automig_pg`. (docs coming soon).

Postgres is the primary database I test on, with sqlite support secondary.

## Advanced features

* [Instructions for doing kube-native migrations](./kube) are in the `kube` folder.
* Lambda support: you'll need to bundle a binary version of git that's compatible with amazonlinux. Post an issue if you need help with this.
* You can skip over bad diffs using `--opaque` mode, docs coming soon
* You can specify manual overrides for erroring diffs, or skip over whole shas, by using [.manualmig.yml file](./.manualmig.yml). docs coming soon but in the meantime look inside that file for an example.
* Convert an existing DB to use automig -- please post a github issue if you have this issue and I'll add instructions

### Generate ORM definitions from SQL

Experimental sqlalchemy generator in sa_harness.py. Try it out with:

```bash
python -m automig.lib.sa_harness 'test/schema/*.sql'
```