An open API service indexing awesome lists of open source software.

https://github.com/natorsc/py-databases

How to use the Python programming language with various databases.
https://github.com/natorsc/py-databases

access banco-de-dados mariadb mongodb mssql mysql postgresql python3 redis sqlachemy sqlite3

Last synced: 10 months ago
JSON representation

How to use the Python programming language with various databases.

Awesome Lists containing this project

README

          

# Como utilizar Python com diversos bancos de dados

[![natorsc - databases-with-python](https://img.shields.io/static/v1?label=natorsc&message=databases-with-python&color=blue&logo=github)](https://github.com/natorsc/databases-with-python "Ir para o repositório.")

[![stars - databases-with-python](https://img.shields.io/github/stars/natorsc/databases-with-python?style=social)](https://github.com/natorsc/databases-with-python)

[![forks - databases-with-python](https://img.shields.io/github/forks/natorsc/databases-with-python?style=social)](https://github.com/natorsc/databases-with-python)

[![License MIT](https://img.shields.io/static/v1?label=License&message=MIT&color=blue)](./LICENSE)

[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)

## 📝 Descrição

Como utilizar a linguagem de programação Python com diversos bancos de dados.

---

## 🤓 Author

Repository created with 💙 by [Renato Cruz](https://github.com/natorsc) 🤜🤛 Feel free to reach out!

[![Email](https://img.shields.io/badge/-Email-blueviolet?logo=gmail&logoColor=white)](mailto:natorsc@gmail.com "Send an email.")

Check out programming and technology content on:

[![www.justcode.com.br](https://img.shields.io/badge/-justcode.com.br-grey?logo=hashnode&logoColor=white)](https://www.justcode.com.br "Visit the justCode blog.")

[![www.swift.dev.br](https://img.shields.io/badge/-swift.dev.br-orange?logo=hashnode&logoColor=white)](www.swift.dev.br "Visit the Swift Dev BR blog.")

A playlist I often listen to while studying or coding 😁:

[![Spotify](https://img.shields.io/badge/-Spotify-darkgreen?logo=spotify&logoColor=white)](https://open.spotify.com/playlist/1xf3u29puXlnrWO7MsaHL5?si=A-LgwRJXSvOno_e6trpi5w&utm_source=copy-link "Access the playlist.")

---

## 💝 Doações

Obrigado por sua doação, é através dela que consigo manter este conteúdo 😊.

### Pix

**Chave**: `b1839493-2afe-484d-9272-82a3e402b36f`

---

## Conteúdo

### MariaDB

- [docker-compose](src/mariadb/docker-compose.yml).

- [MariaDB Connector](src/mariadb/main.py).
- [MariaDB Connector + SQLAlchemy](src/mariadb/main_sqlalchemy.py).

- [MySQL Connector](src/mariadb/mysql_connector.py).
- [MySQL Connector + SQLAlchemy](src/mariadb/mysql_connector_sqlalchemy.py).

### MongoDB

- [docker-compose](src/mongodb/docker-compose.yml).

- [PyMongo](src/mongodb/main.py).
- [MongoEngine](src/mongodb/main_mongoengine.py).

### Microsoft Access

- [Pyodbc Connector](src/ms-access/main.py).

### Microsoft SQL Server

- [docker-compose](src/mssql-server/docker-compose.yml).

- [Pyodbc Connector](src/mssql-server/main.py).
- [Pyodbc Connector + SQLAlchemy](src/mssql-server/main_sqlalchemy.py).

### MySQL

- [docker-compose](src/mysql/docker-compose.yml).

- [MySQL Connector](src/mysql/main.py).
- [MySQL Connector + SQLAlchemy](src/mysql/main_sqlalchemy.py).

### PostgreSQL

- [docker-compose](src/postgresql/docker-compose.yml).

- [Psycopg](src/postgresql/main.py).
- [Psycopg + SQLAlchemy](src/postgresql/main_sqlalchemy.py).

### Redis

- [docker-compose](src/redis/docker-compose.yml).

- [Redis Connector](src/redis/main.py).

### SQLite

- [SQLite3](src/sqlite-3/main.py).
- [SQLite3 + SQLAlchemy](src/sqlite-3/main_sqlalchemy.py).

---

## Links úteis

- [SQLAlchemy](https://www.sqlalchemy.org/).

### Bancos de dados

- [MariaDB](https://mariadb.org/).
- [MongoDB](https://www.mongodb.com/).
- [Microsoft Access](https://www.microsoft.com/pt-br/microsoft-365/access).
- [Microsoft SQL Server](https://www.microsoft.com/pt-br/sql-server/sql-server-downloads).
- [MySQL](https://www.mysql.com/).
- [PostgreSQL](https://www.postgresql.org/).
- [Redis](https://redis.io/).
- [SQLite](https://www.sqlite.org/).

### Conectores

- [MariaDB Connector](https://pypi.org/project/mariadb/).
- [PyMongo](https://pypi.org/project/pymongo/).
- [Pyodbc](https://pypi.org/project/pymongo/).
- [MySQL Connector](https://pypi.org/project/mysql-connector-python/).
- [Redis Connector](https://pypi.org/project/redis/).

---