All Projects → koxudaxi → py-data-api

koxudaxi / py-data-api

Licence: MIT license
A user-friendly client for AWS Aurora Serverless's Data API

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to py-data-api

local-data-api
Data API for local, you can write unittest for AWS Aurora Serverless's Data API
Stars: ✭ 99 (+167.57%)
Mutual labels:  aurora, data-api, aws-aurora, dataapi
data-api-suite
Monorepo that includes libraries, Serverless Framework plugins and development tools to simplify and enhance the development, deployment and use of the Data API for Aurora Serverless.
Stars: ✭ 23 (-37.84%)
Mutual labels:  aurora, data-api
dbal-rds-data
A driver to use the aws aurora serverless rds data api in the doctrine database abstraction layer
Stars: ✭ 24 (-35.14%)
Mutual labels:  aurora, aws-aurora
pipe-mysql.vim
MySQL client runner to query MySQL / Amazon Aurora / MariaDB database in Vim interactively (also remotely)
Stars: ✭ 51 (+37.84%)
Mutual labels:  aurora
mad-migration
Database migration tool for migrate different structured databases.
Stars: ✭ 29 (-21.62%)
Mutual labels:  sqlalchemy
dice-fairlink
JDBC Driver for read-only connections on AWS RDS Clusters
Stars: ✭ 33 (-10.81%)
Mutual labels:  aurora
hexo-theme-aurora
🏳️‍🌈 Futuristic auroral Hexo theme.
Stars: ✭ 681 (+1740.54%)
Mutual labels:  aurora
alembic utils
An alembic/sqlalchemy extension for migrating sql views, functions, triggers, and policies
Stars: ✭ 105 (+183.78%)
Mutual labels:  sqlalchemy
aws-dbs-refarch-rdbms
Reference Architectures for Relational Databases on AWS
Stars: ✭ 23 (-37.84%)
Mutual labels:  aurora
flask-tweeeter
A full-stack Twitter clone made using the Flask framework for Python 🐦
Stars: ✭ 28 (-24.32%)
Mutual labels:  sqlalchemy
tutorials
Collection of tutorials for various libraries and technologies
Stars: ✭ 98 (+164.86%)
Mutual labels:  sqlalchemy
d2a
A translator Django into SQLAlchemy.
Stars: ✭ 23 (-37.84%)
Mutual labels:  sqlalchemy
django-sqlalchemy
Django ORM built on top of SQLalchemy core 2.0 for seamless integration of SQLAlchemy with Django 4.1+ PostgreSQL 14+ only for now. [pre POC now]
Stars: ✭ 101 (+172.97%)
Mutual labels:  sqlalchemy
flask-restalchemy
Flask extension to build REST APIs based on SQLAlchemy models
Stars: ✭ 34 (-8.11%)
Mutual labels:  sqlalchemy
chm-documentation
chm documentation PostgreSQL pgadmin3 SQLAlchemy Django Flask jinja2 webpy doc chm compiled html help Postgres Postgre документация russian
Stars: ✭ 17 (-54.05%)
Mutual labels:  sqlalchemy
flask for startups
Flask boilerplate using a services oriented structure
Stars: ✭ 210 (+467.57%)
Mutual labels:  sqlalchemy
fmREST.php
PHP class file to support FileMaker Server Data API (REST engine)
Stars: ✭ 24 (-35.14%)
Mutual labels:  data-api
futaba
Discord bot for the Programming server
Stars: ✭ 22 (-40.54%)
Mutual labels:  sqlalchemy
mara-db
Lightweight configuration and access to multiple databases in a single project
Stars: ✭ 36 (-2.7%)
Mutual labels:  sqlalchemy
terraform-aws-rds-cluster
Terraform module to provision an RDS Aurora cluster for MySQL or Postgres
Stars: ✭ 115 (+210.81%)
Mutual labels:  aurora

py-data-api - Data API Client for Python

Test Status PyPI version PyPI - Python Version codecov license Code style: black

py-data-api is a client for Data API of Aurora Serverless. Also, the package includes SQLAlchemy Dialects and DB API 2.0 Client.

Features

  • SQLAlchemy Dialects
  • DB API 2.0 compatible client PEP 249

Support Database Engines

  • MySQL
  • PostgreSQL

What's AWS Aurora Serverless's Data API?

https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html

This project is an experimental phase.

Warning: Some interface will be changed.

How to install

pydataapi requires Python 3.6.1 or later

$ pip install pydataapi

Example

from typing import List

from sqlalchemy import Column, Integer, String
from sqlalchemy.ext.declarative import declarative_base

from pydataapi import DataAPI, Result


class Pets(declarative_base()):
    __tablename__ = 'pets'
    id = Column(Integer, primary_key=True, autoincrement=True)
    name = Column(String(255, collation='utf8_unicode_ci'), default=None)


database: str = 'test'
resource_arn: str = 'arn:aws:rds:us-east-1:123456789012:cluster:serverless-test-1'
secret_arn: str = 'arn:aws:secretsmanager:us-east-1:123456789012:secret:serverless-test1'

def example_driver_for_sqlalchemy():
    from sqlalchemy.engine import create_engine
    engine = create_engine(
        'mysql+pydataapi://',
        connect_args={
            'resource_arn': 'arn:aws:rds:us-east-1:123456789012:cluster:dummy',
            'secret_arn': 'arn:aws:secretsmanager:us-east-1:123456789012:secret:dummy',
            'database': 'test'}
    )

    result = engine.execute("select * from pets")
    print(result.fetchall())

def example_simple_execute():
    data_api = DataAPI(resource_arn=resource_arn, secret_arn=secret_arn, database=database)
    result: Result = data_api.execute('show tables')
    print(result.scalar())
    # Pets

Contributing to pydataapi

We are waiting for your contributions to pydataapi.

How to contribute

https://koxudaxi.github.io/py-data-api/contributing

Related projects

local-data-api

DataAPI Server for local

https://github.com/koxudaxi/local-data-api

PyPi

https://pypi.org/project/pydataapi

Source Code

https://github.com/koxudaxi/py-data-api

Documentation

https://koxudaxi.github.io/py-data-api

License

py-data-api is released under the MIT License. http://www.opensource.org/licenses/mit-license

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].