Skip to main content

Spartacus is a database wrapper for the most widely used RDBMS Python drivers.

Currently, Spartacus supports:

  • SQLite

    pip install Spartacus

  • Memory (in-memory SQLite)

    pip install Spartacus

  • PostgreSQL

    pip install Spartacus[postgresql]

  • MySQL

    pip install Spartacus[mysql]

  • MariaDB

    pip install Spartacus[mariadb]

  • Firebird

    pip install Spartacus[firebird]

  • Oracle

    # make sure you have Oracle Database or Instant Client installed and configured pip install Spartacus[oracle]

  • MS SQL

    sudo apt install freetds-bin freetds-dev pip install Spartacus[mssql]

  • IBM DB2

    pip install Spartacus[ibmdb2]

  • All supported RDBMS:

    pip install Spartacus[complete]

Instantiate this way:

SQLite

v_database = Spartacus.Database.SQLite(‘../employees.db’)

Memory

v_database = Spartacus.Database.Memory()

PostgreSQL

v_database = Spartacus.Database.PostgreSQL(‘127.0.0.1’, ‘5432’, ‘employees’, ‘william’, ‘password’)

MySQL

v_database = Spartacus.Database.MySQL(‘127.0.0.1’, ‘3306’, ‘employees’, ‘root’, ‘password’)

MariaDB

v_database = Spartacus.Database.MariaDB(‘127.0.0.1’, ‘3306’, ‘employees’, ‘root’, ‘password’)

Firebird

v_database = Spartacus.Database.Firebird(‘127.0.0.1’, ‘3050’, ‘/path/to/employees.fdb’, ‘sysdba’, ‘masterkey’)

Oracle

v_database = Spartacus.Database.Oracle(‘127.0.0.1’, ‘1521’, ‘XE’, ‘employees’, ‘password’)

Microsoft SQL Server

v_database = Spartacus.Database.MSSQL(‘127.0.0.1’, ‘1433’, ‘employees’, ‘sa’, ‘password’)

IBM DB2

v_database = Spartacus.Database.IBMDB2(‘127.0.0.1’, ‘50000’, ‘employes’, ‘db2inst1’, ‘password’)

Download files

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

Source Distribution

Spartacus-3.47.tar.gz (27.5 kB view details)

Uploaded Source

File details

Details for the file Spartacus-3.47.tar.gz.

File metadata

  • Download URL: Spartacus-3.47.tar.gz
  • Upload date:
  • Size: 27.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for Spartacus-3.47.tar.gz
Algorithm Hash digest
SHA256 0dd27b3de6c6a882fb106c1b6a86f472536c0157d2214aa7f62c525a720fabef
MD5 952cd2e8a2a550ddcd03391a6731c7d8
BLAKE2b-256 deb0a4da16b42eeaf7ff8f26eebdbc16b1120e46f01f9695289da797db8ba779

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.47 This release

1 file

3.46

1 file

3.45

1 file

3.43

1 file

3.41

1 file

3.40

1 file

3.39

1 file

3.38

1 file

3.37

1 file

3.36

1 file

3.35

1 file

3.34

1 file

3.33

1 file

3.32

1 file

3.31

1 file

3.30

1 file

3.29

1 file

3.28

1 file

3.27

1 file

3.26

1 file

3.24

1 file

3.23

1 file

3.20

1 file

3.19

1 file

3.18

1 file

3.17

1 file

3.16

1 file

3.15

1 file

3.14

1 file

3.13

1 file

3.12

1 file

3.11

1 file

3.10

1 file

3.9

1 file

3.8

1 file

3.7

1 file

3.6

1 file

3.5

1 file

3.3

1 file

3.2

1 file

3.1

1 file

2.73

1 file

2.72

1 file

2.71

1 file

2.70

1 file

2.69

1 file

2.68

1 file

2.67

1 file

2.66

1 file

2.65

1 file

2.64

1 file

2.63

1 file

2.62

1 file

2.61

1 file

2.60

1 file

2.59

1 file

2.58

1 file

2.57

1 file

2.56

1 file

2.55

1 file

2.54

1 file

2.53

1 file

2.52

1 file

2.51

1 file

2.50

1 file

2.49

1 file

2.48

1 file

2.47

1 file

2.46

1 file

2.45

1 file

2.44

1 file

2.43

1 file

2.42

1 file

2.41

1 file

2.40

1 file

2.39

1 file

2.38

1 file

2.37

1 file

2.36

1 file

2.35

1 file

2.34

1 file

2.33

1 file

2.32

1 file

2.31

1 file

2.30

1 file

2.29

1 file

2.28

1 file

2.27

1 file

2.26

1 file

2.25

1 file

2.24

1 file

2.22

1 file

2.21

1 file

2.20

1 file

2.19

1 file

2.18

1 file

2.17

1 file

2.16

1 file

2.15

1 file

2.14

1 file

2.13

1 file

2.12

1 file

2.11

1 file

2.9

1 file

2.8

1 file

2.7

1 file

2.6

1 file

2.5

1 file

2.4

1 file

2.3

1 file

2.2

1 file

2.1

1 file

2.0

1 file

1.19

1 file

1.18

1 file

1.17

1 file

1.16

1 file

1.15

1 file

1.14

1 file

1.13

1 file

1.12

1 file

1.11

1 file

1.10

1 file

1.9

1 file

1.8

1 file

1.7

1 file

1.6

1 file

1.5

1 file

1.4

1 file

1.3

1 file

1.2

1 file

1.1

1 file

1.0

1 file

0.34

1 file

0.32

1 file

0.31

1 file

0.30

1 file

0.29

1 file

0.28

1 file

0.27

1 file

0.26

1 file

0.25

1 file

0.24

1 file

0.23

1 file

0.22

1 file

0.21

1 file

0.20

1 file

0.19

1 file

0.18

1 file

0.17

1 file

0.16

1 file

0.15

1 file

0.14

1 file

0.13

1 file

0.12

1 file

0.11

1 file

0.10

1 file

0.9

1 file

0.7

1 file

0.6

1 file

0.5

1 file

0.3

1 file

0.2

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page