Skip to main content

sqlitemgr

This package can be found at https://github.com/aescwork/sqlitemgr.

In the github repository there is sphinx-generated documentation: the main page is docs/index.html.

sqlitemgr – the SQLite Manager module – is a wrapper class for basic management of an sqlite database and its tables. It can be used to create and delete database files, tables, create and return a connection to a database file as well as a cursor which is used for executing statements against an sqlite database.

It has two main purposes: 1. to encapsulate all of the basic database management actions in one class, and 2. to create tables with the option of not having to directly enter the structured query language necessary. Specific methods for composing and executing sql statements can be chained together for creating tables (including specifying column names, data types and constraints) in an sqlite database.

There are also a few utility methods for managing data in and getting information about the tables. These can get the number of tables in a database, get the number of rows in a table, or re-index a column which is used for storing numbers.

This module was written as a companion to the sqliteminor module, whose functionality focuses on creating, reading, updating and deleting data in sqlite database columns.

NOTE:

This module requires sqlite3 to be installed prior to use.

After installation of this package is complete, trying to use the module might result in the following error: “ImportError: No module named sqlitemgr” or some other error message.

This probably indicates that the Python interpreter may not be able to locate the module. In this case, the following is recommended:

On Linux:

Locate where the package was installed. In the terminal, navigate to the root directory and execute the following command:

sudo find . -name sqlitemgr.py

This should give a path to the sqlitemgr.py file. Create a file called “local_python.sh” and put the following text in it:

PYTHONPATH=”/usr/local/lib/python*.*/dist-packages/sqlitemgr/”:”${PYTHONPATH}” export PYTHONPATH

To make the module available to all users, place this file in /etc/profile.d. Then place a line to execute this file somewhere in .bashrc or one of the other bash configuration files in the individual (non-root) user’s terminal:

. /etc/profile.d/local_python.sh

This should cause the python interpreter to locate the sqlitemgr.py file in the module.

On MS Windows:

The following was tested on a machine running Windows 10.

(This assumes that Python is installed on the machine.)

Locate where the package was installed. On Windows 10, Look for the Python folder. Its usually right under the C: drive. The name of the folder probably has the version number in it as well, like “Python27”. Look for the sqlitemgr folder: it should be in “Lib" and then “site-packages" folder.

Open up the System Properties Panel. (You can find this by clicking on the “Settings” icon and entering “Environment Variables” in the search bar. When the panel comes up, Click the “Environment Variables” button. Under “System variables”, click “New” and type in the full path to the sqlitemgr folder.

Test this by opening the command line application and starting the Python interpreter (type the command “python” and press enter). Now try to import the module and instantiate an sqlitemgr object. Type the following:

>>> import sqlitemgr
>>> sg = sqlitemgr.SQLiteMinor()
>>> sg.result

If everything went well, ‘None’ should print out on the screen. If there was an “ImportError” or any other error, try importing the module again and test as follows:

>>> import sqlitemgr.sqlitemgr as sqlitemgr
>>> sg = sqlitemgr.SQLiteMgr()
>>> sg.result

Metadata

Release files for sqlitemgr 1.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sqlitemgr 1.2.6
File Size Uploaded Provenance Actions
sqlitemgr-1.2.6.tar.gz 8.1 kB Without provenance Details for sqlitemgr-1.2.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sqlitemgr 1.2.6
File Interpreter ABI Platform Actions
sqlitemgr-1.2.6-py2.py3-none-any.whl Python 2, Python 3 none any Details for sqlitemgr-1.2.6-py2.py3-none-any.whl

Total release size: 18.3 kB

Release files / sqlitemgr-1.2.6.tar.gz

Download URL sqlitemgr-1.2.6.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7da17a836bdd7c17d96fb53d52df1b2075ca7749ec1fb36796e908007b5398d7
BLAKE2b-256 checksum
How to use checksums
bb1d9e454e1ac3d4e7b6ed7f513189f417bd6acf66a2c73fd0a34306dfde1fd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / sqlitemgr-1.2.6-py2.py3-none-any.whl

Download URL sqlitemgr-1.2.6-py2.py3-none-any.whl
Size 10.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0352a38a50932c779f0c32760c05b54c0f4180feb7ac8bb519fa1af4044e76be
BLAKE2b-256 checksum
How to use checksums
d4bdb0b5cf276602312c8db30178f4621effa2973cc4be1aa11d363601f63478
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for sqlitemgr 1.2.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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