Skip to main content


Project description

Python 3.6.5 (default, Apr 1 2018, 05:46:30)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import amdataset

In [2]: db = amdataset.connect('sqlite:///:memory:')

In [3]: db.insert('users', {'name': 'ammadkhaads'})
Out[3]: 1

In [4]: db.update('users', ['name'], {'name': 'AmmadKhalid'})
Out[4]: 0

In [5]: db.get_first('users')
Out[5]: OrderedDict([('id', 1), ('name', 'ammadkhaads')])

In [6]: db.update('users', ['id'], {'name': 'AmmadKhalid', 'id': 1})
Out[6]: 1

In [9]: db.delete('users', name = 'AmmadKhalid')
Out[9]: True
Author: Ammad Khalid
License: UNKNOWN
Description: UNKNOWN
Keywords: database,dataset,ORM
Platform: UNKNOWN

Project details

Download files

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

Files for amdataset, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size amdataset-0.2.2-py3-none-any.whl (4.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size amdataset-0.2.2.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page