semvec/pypi-packages huggingface dataset:
pypkgs-sy 0.1.0
Python package that eases the pain of concatenating Pandas categoricals!
License: MIT
Requires Python: >=3.8,<4.0

# pypkgs_sy 

![](https://github.com/rissangs/pypkgs_sy/workflows/build/badge.svg) [![codecov](https://codecov.io/gh/rissangs/pypkgs_sy/branch/main/graph/badge.svg)](https://codecov.io/gh/rissangs/pypkgs_sy) ![Release](https://github.com/rissangs/pypkgs_sy/workflows/Release/badge.svg) [![Documentation Status](https://readthedocs.org/projects/pypkgs_sy/badge/?version=latest)](https://pypkgs_sy.readthedocs.io/en/latest/?badge=latest)

This cookiecutter creates a boilerplate for a Python project.]: Python package that eases the pain of concatenating Pandas categoricals!

## Installation

```bash
$ pip install -i https://test.pypi.org/simple/ pypkgs_sy
```

## Features

- TODO

## Dependencies

- TODO

## Usage

- TODO

## Documentation

The official documentation is hosted on Read the Docs: https://pypkgs_sy.readthedocs.io/en/latest/

## Contributors

We welcome and recognize all contributions. You can see a list of current contributors in the [contributors tab](https://github.com/rissangs/pypkgs_sy/graphs/contributors).

### Credits

This package was created with Cookiecutter and the UBC-MDS/cookiecutter-ubc-mds project template, modified from the [pyOpenSci/cookiecutter-pyopensci](https://github.com/pyOpenSci/cookiecutter-pyopensci) project template and the [audreyr/cookiecutter-pypackage](https://github.com/audreyr/cookiecutter-pypackage).
sql-orm 1.2.2
A python based ORM (Object relational mapping) to make flexible queries and saving new items in the database.
License: MIT

# sql-orm
A simple python ORM (Object relational mapping) which can be used similar to Django ORM and can be easily integrated to any python project.

This ORM can be adapted easily to existing database as well (without even using any migrations). 
It can also be integrated with both MySQL and PostgreSQL in the same project.

### Dependencies

* Python3

### Installation

    $pip install sql-orm

### Set up

Create a directory named db_models and a file named models.py.

Create models in models.py similar to the properties of the columns used in your database.  

Create a config file for connecting to the database.

    [POSTGRESQL]
    DB_HOST = localhost
    DB_PORT = 5432
    DB_NAME = dbname
    DB_USER = user
    DB_PASSWORD = password
    DEBUG = True


Set DEBUG = True only if you wish to see the SQL queries.

If you want to do create the tables as well, create a migrate.py file using: https://github.com/shubhamdipt/sql-orm/blob/master/migrate.py

Sample models can be found in the GitHub repository.

### New features

* Support for schema (can be added as an attribute in the models. "public" is the default schema.)


    _schema = "public"  


* Query: get_or_none (similar to get_or_create)
* Negative indexing support for slicing queryset.
* For setting any ForeignKey, either assign Model object or just the primary key (both works).

#### Differences

* The primary key for every model needs to supplied explicitly.
* All the models should be in one file called models.py in db_models directory.
* verbose_name is optional for every field currently.

#### Missing features / Work in progress

* JSONField for PostgreSQL.
* ManyToMany relationship in models.
* Support for MySQL.
* Support for makemigrations.


Please feel free to contribute.