Skip to main content

This library makes your software to dump and load data in databases with sqlalchemy.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

sqlalchemy-loadump

This library makes your software to dump and load data in databases with sqlalchemy.

Dependencies

  • Python 3.8+
  • SQLAlchemy 2.0+

Installation

Latest version

pip install sqlalchemy-loadump

Specific version(e.g. 0.1.1)

pip install sqlalchemy-loadump==0.1.1

Usage

Commandline

Dump

This command dumps data in the postgresql database to the json file.

You need installing the database adapter before using this command. In below example, you need installing psycopg2.

python -m sqlalchemy_loadump dump \
--dump-file-type=json \
--dump-file-path=dump.json \
--db-url=postgresql+psycopg2://user:password@host:port/database

Load

This command loads data from the json file and inserts it into the postgresql database.

You need installing the database adapter before using this command. In below example, you need installing psycopg2.

python -m sqlalchemy_loadump load \
--dump-file-type=json \
--dump-file-path=dump.json \
--db-url=postgresql+psycopg2://user:password@host:port/database

Supported Dump Formats

  • JSON

Supported Databases

  • PostgreSQL
  • Microsoft SQLServer

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlalchemy_loadump-0.1.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqlalchemy_loadump-0.1.1-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file sqlalchemy_loadump-0.1.1.tar.gz.

File metadata

  • Download URL: sqlalchemy_loadump-0.1.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.7.9 Windows/10

File hashes

Hashes for sqlalchemy_loadump-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c081c09d99fc91dbab2a3d8b824db683df694e3c5bb49be4e401756036a42fed
MD5 d6f83726a8b3b7bdc563143cc720b377
BLAKE2b-256 5c8883fbb84e0a3e58a210fd70d64747339c69fe58c6e159c8dcaf8d223b6af3

See more details on using hashes here.

File details

Details for the file sqlalchemy_loadump-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sqlalchemy_loadump-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a6d8d2dd29ac5ca1d257f73d8e3da77a16d36ac85b7ad893473a377583c4f5b4
MD5 a4cb1fd6d943ad49fb208b8b5eb1b136
BLAKE2b-256 956bbbdbf8644d0aff498854f7e222947569a214ec1e01d378e546c2fe6777bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page