pymapd Documentation Release dev3+g4665ea7 Tom Augspurger
|
|
- Kathleen Wiggins
- 5 years ago
- Views:
Transcription
1 pymapd Documentation Release dev3+g4665ea7 Tom Augspurger Sep 07, 2018
2
3 Contents: 1 Install 3 2 Usage Connecting Querying Cursors Loading Data Database Metadata API Reference Exceptions Development Setup 17 5 Thrift Binding 19 6 Indices and tables 21 Python Module Index 23 i
4 ii
5 The pymapd client interface provides a python DB API 2.0-compliant MapD interface. In addition, it provides methods to get results in the Apache Arrow -based GDF format for efficient data interchange. >>> from pymapd import connect >>> con = connect(user="mapd", password="hyperinteractive", host="localhost",... dbname="mapd") >>> query = "SELECT depdelay, arrdelay FROM flights_2008_10k limit 100" >>> df = con.select_ipc_gpu("select depdelay, arrdelay "... "FROM flights_2008_10k "... "LIMIT 100") >>> df.head() depdelay arrdelay Contents: 1
6 2 Contents:
7 CHAPTER 1 Install This describes how to install the python package. To setup a MapD server, see here. pymapd can be installed with conda using conda-forge or pip. # conda conda install -c conda-forge pymapd # pip pip install pymapd This actually installs two packages, pymapd, the pythonic interface to MapD, and mapd, the Apache thrift bindings for MapD. There are several optional dependencies that may be useful. To return results sets into GPU memory as a Gpu- DataFrame, you ll need pygdf. To return results into CPU shared memory, using the Apache Arrow memory layout, you ll need pyarrow and its dependencies. 3
8 4 Chapter 1. Install
9 CHAPTER 2 Usage pymapd follows the python DB API 2.0, so this may already be familiar to you. Note: This assumes you have a MapD server running on localhost:9091 with the default logins and databases, and have loaded the example flights_2008_10k dataset. 2.1 Connecting Create a Connection with >>> from pymapd import connect >>> con = connect(user="mapd", password="hyperinteractive", host="localhost",... dbname="mapd") >>> con Connection(mapd://mapd:***@localhost:9091/mapd?protocol=binary) or by passing in a connection string >>> uri = "mapd://mapd:hyperinteractive@localhost:9091/mapd?protocol=binary" >>> con = connect(uri=uri) Connection(mapd://mapd:***@localhost:9091/mapd?protocol=binary) See the SQLAlchemy documentation on what makes up a connection string. The components are: dialect+driver://username:password@host:port/database For pymapd, the dialect+driver will always be mapd, and we look for a protocol argument in the optional query parameters (everything following the? after database). 5
10 2.2 Querying A few options are available for getting the results of a query into your Python process. 1. Into GPU Memory via pygdf (Connection.select_ipc_gpu()) 2. Into CPU shared memory via Apache Arrow and pandas (Connection.select_ipc()) 3. Into python objects via Apache Thrift (Connection.execute()) The best option depends on the hardware you have available, your connection to the database, and what you plan to do with the returned data. In general, the third method, using Thrift to serialize and deserialize the data, will slower than the GPU or CPU shared memory methods. The shared memory methods require that your MapD database is running on the same machine GPU Select Use Connection.select_ipc_gpu() to select data into a GpuDataFrame, provided by pygdf >>> query = "SELECT depdelay, arrdelay FROM flights_2008_10k limit 100" >>> df = con.select_ipc_gpu(query) >>> df.head() depdelay arrdelay CPU Shared Memory Select Use Connection.select_ipc() to select data into a pandas DataFrame using CPU shared memory to avoid unnecessary intermediate copies. >>> df = con.select_ipc(query) >>> df.head() depdelay arrdelay Cursors A cursor can be created with Connection.cursor() >>> c = con.cursor() >>> c <pymapd.cursor.cursor at 0x110fe6438> Or by using a context manager: 6 Chapter 2. Usage
11 >>> with con as c:... print(c) <pymapd.cursor.cursor object at 0x1041f9630> Arbitrary SQL can be executed using Cursor.execute(). >>> c.execute("select depdelay, arrdelay FROM flights_2008_10k limit 100") <pymapd.cursor.cursor at 0x110fe6438> This will set the rowcount property, with the number of returned rows >>> c.rowcount 100 The description attribute contains a list of Description objects, a namedtuple with the usual attributes required by the spec. There s one entry per returned column, and we fill the name, type_code and null_ok attributes. >>> c.description [Description(name='depdelay', type_code=0, display_size=none, internal_size=none, precision=none, scale=none, null_ok=true), Description(name='arrdelay', type_code=0, display_size=none, internal_size=none, precision=none, scale=none, null_ok=true)] Cursors are iterable, returning a list of tuples of values >>> result = list(c) >>> result[:5] [(38, 28), (0, 8), (-4, 9), (1, -1), (1, 2)] 2.4 Loading Data The fastest way to load data is Connection.load_table_arrow(). Internally, this will use pyarrow and the Apache Arrow format to exchange data with the MapD database. >>> import pyarrow as pa >>> import pandas as pd >>> df = pd.dataframe({"a": [1, 2], "B": ['c', 'd']}) >>> table = pa.table.from_pandas(df) >>> con.load_table_arrow("table_name", table) This accepts either a pyarrow.table, or a pandas.dataframe, which will be converted to a pyarrow. Table before loading. You can also load a pandas.dataframe using Connection.load_table() or Connection. load_table_columnar() methods. >>> df = pd.dataframe({"a": [1, 2], "B": ["c", "d"]}) >>> con.load_table_columnar("table_name", df, preserve_index=false) If you aren t using arrow or pandas you can pass list of tuples to Connection.load_table_rowwise(). >>> data = [(1, "c"), (2, "d")] >>> con.load_table_rowwise("table_name", data) 2.4. Loading Data 7
12 The high-level Connection.load_table() method will choose the fastest method available based on the type of data and whether or not pyarrow is installed. lists of tuples are always loaded with Connection.load_table_rowwise() If pyarrow is installed, a pandas.dataframe or pyarrow.table will be loaded using Connection. load_table_arrow() If pyarrow is not installed, a pandas.dataframe will be loaded using Connection. load_table_columnar() 2.5 Database Metadata Some helpful metadata are available on the Connection object. 1. Get a list of tables with Connection.get_tables() >>> con.get_tables() ['flights_2008_10k', 'stocks'] 2. Get column information for a table with Connection.get_table_details() >>> con.get_table_details('stocks') [ColumnDetails(name='date_', type='str', nullable=true, precision=0, scale=0, comp_param=32), ColumnDetails(name='trans', type='str', nullable=true, precision=0, scale=0, comp_param=32),... 8 Chapter 2. Usage
13 CHAPTER 3 API Reference pymapd.connect(uri=none, user=none, password=none, host=none, port=9091, dbname=none, protocol= binary ) Crate a new Connection. Returns uri [str] user [str] password [str] host [str] port [int] dbname [str] protocol [{ binary, http, https }] conn [Connection] Examples You can either pass a string uri or all the individual components >>> connect('mapd://mapd:hyperinteractive@localhost:9091/mapd?'... 'protocol=binary') Connection(mapd://mapd:***@localhost:9091/mapd?protocol=binary) >>> connect(user='mapd', password='hyperinteractive', host='localhost',... port=9091, dbname='mapd') 9
14 class pymapd.connection(uri=none, user=none, password=none, host=none, port=9091, dbname=none, protocol= binary ) Connect to your mapd database. close() Disconnect from the database commit() This is a noop, as mapd does not provide transactions. Implementing to comply with the specification. create_table(table_name, data, preserve_index=false) Create a table from a pandas.dataframe table_name [str] data [DataFrame] preserve_index [bool, default False] Whether to create a column in the table for the DataFrame index cursor() Create a new Cursor object attached to this connection. deallocate_ipc(df, device_id=0) Deallocate a DataFrame using CPU shared memory. device_id [int] GPU which contains TDataFrame deallocate_ipc_gpu(df, device_id=0) Deallocate a DataFrame using GPU memory. device_id [int] GPU which contains TDataFrame execute(operation, parameters=none) Execute a SQL statement operation [str] A SQL statement to exucute Returns c [Cursor] get_table_details(table_name) Get the column names and data types associated with a table. table_name [str] Returns details [List[tuples]] 10 Chapter 3. API Reference
15 Examples >>> con.get_table_details('stocks') [ColumnDetails(name='date_', type='str', nullable=true, precision=0, scale=0, comp_param=32), ColumnDetails(name='trans', type='str', nullable=true, precision=0, scale=0, comp_param=32),... ] get_tables() List all the tables in the database Examples >>> con.get_tables() ['flights_2008_10k', 'stocks'] load_table(table_name, data, method= infer, preserve_index=false, create= infer ) Load data into a table See also: table_name [str] data [pyarrow.table, pandas.dataframe, or iterable of tuples] method [{ infer, columnar, rows }] Method to use for loading the data. Three options are available 1. pyarrow and Apache Arrow loader 2. columnar loader 3. row-wise loader The Arrow loader is typically the fastest, followed by the columnar loader, followed by the row-wise loader. If a DataFrame or pyarrow.table is passed and pyarrow is installed, the Arrow-based loader will be used. If arrow isn t available, the columnar loader is used. Finally, data is an iterable of tuples the row-wise loader is used. preserve_index [bool, default False] Whether to keep the index when loading a pandas DataFrame create [{ infer, True, False}] Whether to issue a CREATE TABLE before inserting the data. infer : check to see if the table already exists, and create a table if it does not True : attempt to create the table, without checking if it exists False : do not attempt to create the table load_table_arrow, load_table_columnar load_table_arrow(table_name, data, preserve_index=false) Load a pandas.dataframe or a pyarrow Table or RecordBatch to the database using Arrow columnar format for interchange 11
16 See also: table_name [str] data [pandas.dataframe, pyarrow.recordbatch, pyarrow.table] preserve_index [bool, default False] Whether to include the index of a pandas DataFrame when writing. load_table, load_table_columnar, load_table_rowwise Examples >>> df = pd.dataframe({"a": [1, 2, 3], "b": ['d', 'e', 'f']}) >>> con.load_table_arrow('foo', df, preserve_index=false) load_table_columnar(table_name, data, preserve_index=false) Load a pandas DataFrame to the database using MapD s Thrift-based columnar format See also: table_name [str] data [DataFrame] preserve_index [bool, default False] Whether to include the index of a pandas DataFrame when writing. load_table, load_table_arrow, load_table_rowwise Examples >>> df = pd.dataframe({"a": [1, 2, 3], "b": ['d', 'e', 'f']}) >>> con.load_table_columnar('foo', df, preserve_index=false) load_table_rowwise(table_name, data) Load data into a table row-wise See also: table_name [str] data [Iterable of tuples] Each element of data should be a row to be inserted load_table, load_table_arrow, load_table_columnar Examples >>> data = [(1, 'a'), (2, 'b'), (3, 'c')] >>> con.load_table('bar', data) render_vega(vega, compression_level=1) Render vega data on the database backend, returning the image as a PNG. 12 Chapter 3. API Reference
17 vega [dict] The vega specification to render. compression_level: int The level of compression for the rendered PNG. Ranges from 0 (low compression, faster) to 9 (high compression, slower). select_ipc(operation, parameters=none, first_n=-1) Execute a SELECT operation using CPU shared memory operation [str] A SQL select statement parameters [dict, optional] to insert for a parametrized query Returns df [pandas.dataframe] Notes This method requires pandas and pyarrow to be installed select_ipc_gpu(operation, parameters=none, device_id=0, first_n=-1) Execute a SELECT operation using GPU memory. operation [str] A SQL statement parameters [dict, optional] to insert into a parametrized query device_id [int] GPU to return results to Returns gdf [pygdf.gpudataframe] Notes This requires the option pygdf and libgdf libraries. An ImportError is raised if those aren t available. class pymapd.cursor(connection, columnar=true) A database cursor. arraysize The number of rows to fetch at a time with fetchmany. Default 1. See also: fetchmany close() Close this cursor. description Read-only sequence describing columns of the result set. Each column is an instance of Description describing name 13
18 type_code display_size internal_size precision scale null_ok We only use name, type_code, and null_ok; The rest are always None execute(operation, parameters=none) Execute a SQL statement. operation [str] A SQL query parameters [dict] to substitute into operation. Returns self [Cursor] Examples >>> c = conn.cursor() >>> c.execute("select symbol, qty from stocks") >>> list(c) [('RHAT', 100.0), ('IBM', ), ('MSFT', ), ('IBM', 500.0)] Passing in parameters: >>> c.execute("select symbol qty from stocks where qty <= :max_qty",... parameters={"max_qty": 500}) [('RHAT', 100.0), ('IBM', 500.0)] executemany(operation, parameters) Execute a SQL statement for many sets of parameters. operation [str] parameters [list of dict] Returns results [list of lists] fetchmany(size=none) Fetch size rows from the results set. fetchone() Fetch a single row from the results set 14 Chapter 3. API Reference
19 3.1 Exceptions Define exceptions as specified by the DB API 2.0 spec. Includes some helper methods for translating thrift exceptions to the ones defined here. exception pymapd.exceptions.error Base class for all pymapd errors. exception pymapd.exceptions.interfaceerror Raised whenever you use pymapd interface incorrectly. exception pymapd.exceptions.databaseerror Raised when the database encounters an error. exception pymapd.exceptions.operationalerror Raised for non-programmer related database errors, e.g. an unexpected disconnect. exception pymapd.exceptions.integrityerror Raised when the relational integrity of the database is affected. exception pymapd.exceptions.internalerror Raised for errors internal to the database, e.g. and invalid cursor. exception pymapd.exceptions.programmingerror Raised for programming errors, e.g. syntax errors, table already exists. exception pymapd.exceptions.notsupportederror Raised when an API not supported by the database is used Exceptions 15
20 16 Chapter 3. API Reference
21 CHAPTER 4 Development Setup TODO 17
22 18 Chapter 4. Development Setup
23 CHAPTER 5 Thrift Binding When the upstream mapd-core project updates its Thrift definition, we have to regenerate the bindings we ship with pymapd. From the root of the pymapd repository, run python scripts/generate_accelerated_bindings.py </path/to/mapd-core>/mapd.thrift The requires that Thrift is installed and on your PATH. Running it will update two files, mapd/mapd.py and mapd/ ttypes.py, which can be committed to the repository. 19
24 20 Chapter 5. Thrift Binding
25 CHAPTER 6 Indices and tables genindex modindex search 21
26 22 Chapter 6. Indices and tables
27 Python Module Index p pymapd, 9 pymapd.exceptions, 15 23
28 24 Python Module Index
29 Index A arraysize (pymapd.cursor attribute), 13 C close() (pymapd.connection method), 10 close() (pymapd.cursor method), 13 commit() (pymapd.connection method), 10 connect() (in module pymapd), 9 Connection (class in pymapd), 9 create_table() (pymapd.connection method), 10 Cursor (class in pymapd), 13 cursor() (pymapd.connection method), 10 D DatabaseError, 15 deallocate_ipc() (pymapd.connection method), 10 deallocate_ipc_gpu() (pymapd.connection method), 10 description (pymapd.cursor attribute), 13 E Error, 15 execute() (pymapd.connection method), 10 execute() (pymapd.cursor method), 14 executemany() (pymapd.cursor method), 14 F fetchmany() (pymapd.cursor method), 14 fetchone() (pymapd.cursor method), 14 G get_table_details() (pymapd.connection method), 10 get_tables() (pymapd.connection method), 11 I IntegrityError, 15 InterfaceError, 15 InternalError, 15 L load_table() (pymapd.connection method), 11 load_table_arrow() (pymapd.connection method), 11 load_table_columnar() (pymapd.connection method), 12 load_table_rowwise() (pymapd.connection method), 12 N NotSupportedError, 15 O OperationalError, 15 P ProgrammingError, 15 pymapd (module), 9 pymapd.exceptions (module), 15 R render_vega() (pymapd.connection method), 12 S select_ipc() (pymapd.connection method), 13 select_ipc_gpu() (pymapd.connection method), 13 25
phoenixdb Release Nov 14, 2017
phoenixdb Release Nov 14, 2017 Contents 1 Installation 3 2 Usage 5 3 Setting up a development environment 7 4 Interactive SQL shell 9 5 Running the test suite 11 6 Known issues 13 7 API Reference 15 7.1
More informationpymonetdb Documentation
pymonetdb Documentation Release 1.0rc Gijs Molenaar June 14, 2016 Contents 1 The MonetDB MAPI and SQL client python API 3 1.1 Introduction............................................... 3 1.2 Installation................................................
More informationTorndb Release 0.3 Aug 30, 2017
Torndb Release 0.3 Aug 30, 2017 Contents 1 Release history 3 1.1 Version 0.3, Jul 25 2014......................................... 3 1.2 Version 0.2, Dec 22 2013........................................
More informationpyfirebirdsql documentation
pyfirebirdsql documentation Release 1.0.0 Hajime Nakagami Dec 15, 2017 Contents 1 Documentation Contents: 3 1.1 pyfirebirdsql Installation Guide..................................... 3 1.2 Quick-start
More informationpython-tds Documentation
python-tds Documentation Release 1.6 Mikhail Denisenko Dec 09, 2017 Contents 1 pytds main module 3 2 pytds.login login with NTLM and SSPI 9 3 pytds.tz timezones 11 4 pytds.extensions Extensions to the
More informationProgrammers Guide. Adaptive Server Enterprise Extension Module for Python 15.7 SP100
Programmers Guide Adaptive Server Enterprise Extension Module for Python 15.7 SP100 DOCUMENT ID: DC01692-01-1570100-01 LAST REVISED: May 2013 Copyright 2013 by Sybase, Inc. All rights reserved. This publication
More informationPYTHON MYSQL DATABASE ACCESS
PYTHON MYSQL DATABASE ACCESS http://www.tuto rialspo int.co m/pytho n/pytho n_database_access.htm Copyrig ht tutorialspoint.com T he Python standard for database interfaces is the Python DB-API. Most Python
More informationPyMySQL Documentation
PyMySQL Documentation Release 0.7.2 Yutaka Matsubara and GitHub contributors Mar 10, 2018 Contents 1 User Guide 1 1.1 Installation................................................ 1 1.2 Examples.................................................
More informationKaivos User Guide Getting a database account 2
Contents Kaivos User Guide 1 1. Getting a database account 2 2. MySQL client programs at CSC 2 2.1 Connecting your database..................................... 2 2.2 Setting default values for MySQL connection..........................
More informationLECTURE 21. Database Interfaces
LECTURE 21 Database Interfaces DATABASES Commonly, Python applications will need to access a database of some sort. As you can imagine, not only is this easy to do in Python but there is a ton of support
More informationPython data pipelines similar to R Documentation
Python data pipelines similar to R Documentation Release 0.1.0 Jan Schulz October 23, 2016 Contents 1 Python data pipelines 3 1.1 Features.................................................. 3 1.2 Documentation..............................................
More informationfastparquet Documentation
fastparquet Documentation Release 0.1.5 Continuum Analytics Jul 12, 2018 Contents 1 Introduction 3 2 Highlights 5 3 Caveats, Known Issues 7 4 Relation to Other Projects 9 5 Index 11 5.1 Installation................................................
More informationprompt Documentation Release Stefan Fischer
prompt Documentation Release 0.4.1 Stefan Fischer Nov 14, 2017 Contents: 1 Examples 1 2 API 3 3 Indices and tables 7 Python Module Index 9 i ii CHAPTER 1 Examples 1. Ask for a floating point number: >>>
More informationpicrawler Documentation
picrawler Documentation Release 0.1.1 Ikuya Yamada October 07, 2013 CONTENTS 1 Installation 3 2 Getting Started 5 2.1 PiCloud Setup.............................................. 5 2.2 Basic Usage...............................................
More informationg-pypi Documentation Release 0.3 Domen Kožar
g-pypi Documentation Release 0.3 Domen Kožar January 20, 2014 Contents i ii Author Domen Kožar Source code Github.com source browser Bug tracker Github.com issues Generated January 20,
More informationMariaDB ColumnStore PySpark API Usage Documentation. Release d1ab30. MariaDB Corporation
MariaDB ColumnStore PySpark API Usage Documentation Release 1.2.3-3d1ab30 MariaDB Corporation Mar 07, 2019 CONTENTS 1 Licensing 1 1.1 Documentation Content......................................... 1 1.2
More informationTraffic violations revisited
Traffic violations revisited November 9, 2017 In this lab, you will once again extract data about traffic violations from a CSV file, but this time you will use SQLite. First, download the following files
More informationIntroduction to pysqlite
Introduction to pysqlite A crash course to accessing SQLite from within your Python programs. Based on pysqlite 2.0. SQLite basics SQLite is embedded, there is no server Each SQLite database is stored
More informationQueries Documentation
Queries Documentation Release 2.0.0 Gavin M. Roy Jan 31, 2018 Contents 1 Installation 3 2 Contents 5 3 Issues 27 4 Source 29 5 Inspiration 31 6 Indices and tables 33 i ii Queries is a BSD licensed opinionated
More informationBanzaiDB Documentation
BanzaiDB Documentation Release 0.3.0 Mitchell Stanton-Cook Jul 19, 2017 Contents 1 BanzaiDB documentation contents 3 2 Indices and tables 11 i ii BanzaiDB is a tool for pairing Microbial Genomics Next
More informationPython Pandas- II Dataframes and Other Operations
Python Pandas- II Dataframes and Other Operations Based on CBSE Curriculum Class -11 By- Neha Tyagi PGT CS KV 5 Jaipur II Shift Jaipur Region Neha Tyagi, KV 5 Jaipur II Shift Introduction In last chapter,
More informationf5-icontrol-rest Documentation
f5-icontrol-rest Documentation Release 1.3.10 F5 Networks Aug 04, 2018 Contents 1 Overview 1 2 Installation 3 2.1 Using Pip................................................. 3 2.2 GitHub..................................................
More informationFIQL Parser. Release 0.15
FIQL Parser Release 0.15 July 02, 2016 Contents 1 What is FIQL? 3 2 How does FIQL work? 5 3 Installing fiql_parser 7 4 Using fiql_parser 9 4.1 Parsing a FIQL formatted string.....................................
More informationFlask Web Development Course Catalog
Flask Web Development Course Catalog Enhance Your Contribution to the Business, Earn Industry-recognized Accreditations, and Develop Skills that Help You Advance in Your Career March 2018 www.iotintercon.com
More informationIMPORTING DATA IN PYTHON I. Introduction to relational databases
IMPORTING DATA IN PYTHON I Introduction to relational databases What is a relational database? Based on relational model of data First described by Edgar Ted Codd Example: Northwind database Orders table
More informationpybtsync Documentation
pybtsync Documentation Release 0.0.1 Tiago Macarios December 04, 2014 Contents 1 Tutorial and Walkthrough 3 1.1 Getting Started.............................................. 3 2 pybtsync module classes
More informationdjango-embed-video Documentation
django-embed-video Documentation Release 1.1.2-stable Juda Kaleta Nov 10, 2017 Contents 1 Installation & Setup 3 1.1 Installation................................................ 3 1.2 Setup...................................................
More informationPlatypus Analytics Documentation
Platypus Analytics Documentation Release 0.1.0 Platypus LLC December 24, 2015 Contents 1 platypus package 3 1.1 Subpackages............................................... 3 1.2 Module contents.............................................
More informationCS108 Lecture 19: The Python DBAPI
CS108 Lecture 19: The Python DBAPI Sqlite3 database Running SQL and reading results in Python Aaron Stevens 6 March 2013 What You ll Learn Today Review: SQL Review: the Python tuple sequence. How does
More informationnptdms Documentation Release Adam Reeve
nptdms Documentation Release 0.11.4 Adam Reeve Dec 01, 2017 Contents 1 Contents 3 1.1 Installation and Quick Start....................................... 3 1.2 Reading TDMS files...........................................
More informationpymssql Documentation
pymssql Documentation Release 2.2.0.dev pymssql developers May 16, 2017 Contents 1 Introduction 1 1.1 Getting started.............................................. 1 1.2 Architecture...............................................
More informationDjango QR Code Documentation
Django QR Code Documentation Release 0.3.3 Philippe Docourt Nov 12, 2017 Contents: 1 Django QR Code 1 1.1 Installation................................................ 1 1.2 Usage...................................................
More informationPypeline Documentation
Pypeline Documentation Release 0.2 Kyle Corbitt May 09, 2014 Contents 1 Contents 3 1.1 Installation................................................ 3 1.2 Quick Start................................................
More informationipython-gremlin Documentation
ipython-gremlin Documentation Release 0.0.4 David M. Brown Mar 16, 2017 Contents 1 Releases 3 2 Requirements 5 3 Dependencies 7 4 Installation 9 5 Getting Started 11 5.1 Contribute................................................
More informationWordEmbeddingLoader Documentation
WordEmbeddingLoader Documentation Release 0.2.0 Yuta Koreeda Aug 14, 2017 Modules 1 Issues with encoding 3 2 Development 5 3 CHANGELOG 7 3.1 v0.2.................................................... 7
More informationpybdg Documentation Release 1.0.dev2 Outernet Inc
pybdg Documentation Release 1.0.dev2 Outernet Inc April 17, 2016 Contents 1 Source code 3 2 License 5 3 Documentation 7 Python Module Index 15 i ii Bitloads, or bit payloads, are compact payloads containing
More informationpyramid_assetmutator Documentation
pyramid_assetmutator Documentation Release 1.0b1 Seth Davis February 22, 2017 Contents 1 Overview 1 2 Installation 3 3 Setup 5 4 Usage 7 5 Mutators 11 6 Settings 13 7 Asset Concatenation (a.k.a Asset
More informationDatabases in Python. MySQL, SQLite. Accessing persistent storage (Relational databases) from Python code
Databases in Python MySQL, SQLite Accessing persistent storage (Relational databases) from Python code Goal Making some data 'persistent' When application restarts When computer restarts Manage big amounts
More informationeoddata-client Documentation
eoddata-client Documentation Release 0.3.3 Aleksey Sep 27, 2017 Table of Contents: 1 Usage 1 2 Client API 3 2.1 Http client................................................ 3 2.2 Errors...................................................
More informationMongoTor Documentation
MongoTor Documentation Release 0.1.0 Marcel Nicolat June 11, 2014 Contents 1 Features 3 2 Contents: 5 2.1 Installation................................................ 5 2.2 Tutorial..................................................
More informationdf2gspread Documentation
df2gspread Documentation Release Eduard Trott Apr 05, 2017 Contents 1 df2gspread 3 1.1 Description................................................ 3 1.2 Status...................................................
More informationPython for Oracle. Oracle Database Great for Data Store. Critical for Business Operations. Performance? Run in laptop? But how do you share it?
Python for Oracle Arup Nanda Longtime Oracle Technologist And Python Explorer Oracle Database Great for Data Store Critical for Business Operations Performance? Run in laptop? But how do you share it?
More informationtolerance Documentation
tolerance Documentation Release Alisue Apr 1, 217 Contents 1 tolerance 1 1.1 Features.................................................. 1 1.2 Installation................................................
More informationPOSTGRESQL - PYTHON INTERFACE
POSTGRESQL - PYTHON INTERFACE http://www.tutorialspoint.com/postgresql/postgresql_python.htm Copyright tutorialspoint.com Installation The PostgreSQL can be integrated with Python using psycopg2 module.
More informationpyblock Documentation
pyblock Documentation Release 0.4 James Spencer Apr 02, 2018 Contents 1 Installation 3 2 pyblock API 5 3 pyblock tutorial 11 4 References 17 5 Indices and tables 19 Bibliography 21 Python Module Index
More informationdjango-redis-cache Documentation
django-redis-cache Documentation Release 1.5.2 Sean Bleier Nov 15, 2018 Contents 1 Intro and Quick Start 3 1.1 Intro................................................... 3 1.2 Quick Start................................................
More informationpython-anyvcs Documentation
python-anyvcs Documentation Release 1.4.0 Scott Duckworth Sep 27, 2017 Contents 1 Getting Started 3 2 Contents 5 2.1 The primary API............................................. 5 2.2 Git-specific functionality.........................................
More informationCase study: accessing financial data
Case study: accessing financial data Prof. Mauro Gaspari: gaspari@cs.unibo.it Methods for accessing databases What methods exist to access financial databases? Basically there are several approaches to
More information15-388/688 - Practical Data Science: Relational Data. J. Zico Kolter Carnegie Mellon University Spring 2018
15-388/688 - Practical Data Science: Relational Data J. Zico Kolter Carnegie Mellon University Spring 2018 1 Announcements Piazza etiquette: Changing organization of threads to be easier to search (starting
More informationProxySQL Tools Documentation
ProxySQL Tools Documentation Release 0.3.12 TwinDB Development Team Dec 29, 2017 Contents 1 ProxySQL Tools 3 1.1 Features.................................................. 3 1.2 Credits..................................................
More informationstarbase Documentation
starbase Documentation Release 0.3 Artur Barseghyan March 10, 2014 Contents i ii HBase Stargate (REST API) client wrapper for Python. Read the official documentation of Stargate
More informationIPython Cypher Documentation
IPython Cypher Documentation Release 1.0.0 Javier de la Rosa December 11, 2016 Contents 1 Releases 3 2 Requirements 5 3 Dependencies 7 4 Installation 9 5 Getting Started 11 6 Configuration 13 7 Contents
More informationNCSS: Databases and SQL
NCSS: Databases and SQL Tim Dawborn Lecture 2, January, 2017 Python/sqlite3 DB Design API JOINs 2 Outline 1 Connecting to an SQLite database using Python 2 What is a good database design? 3 A nice API
More informationyagmail Documentation
yagmail Documentation Release 0.10.189 kootenpv Feb 08, 2018 Contents 1 API Reference 3 1.1 Authentication.............................................. 3 1.2 SMTP Client...............................................
More informationDogeon Documentation. Release Lin Ju
Dogeon Documentation Release 1.0.0 Lin Ju June 07, 2014 Contents 1 Indices and tables 7 Python Module Index 9 i ii DSON (Doge Serialized Object Notation) is a data-interchange format,
More informationimread Documentation Release 0.6 Luis Pedro Coelho
imread Documentation Release 0.6 Luis Pedro Coelho Sep 27, 2017 Contents 1 Citation 3 1.1 INSTALL................................................. 3 1.2 Bug Reports...............................................
More informationweb.py Tutorial Tom Kelliher, CS 317 This tutorial is the tutorial from the web.py web site, with a few revisions for our local environment.
web.py Tutorial Tom Kelliher, CS 317 1 Acknowledgment This tutorial is the tutorial from the web.py web site, with a few revisions for our local environment. 2 Starting So you know Python and want to make
More informationpymssql Documentation
pymssql Documentation Release 2.1.3 pymssql developers Mar 30, 2017 Contents 1 Introduction 1 1.1 Getting started.............................................. 1 1.2 Architecture...............................................
More informationDeveloping Informix Applications in Python
Developing Informix Applications in Python Carsten Haese Unique Systems, Inc. Informix Forum 2006 Washington, DC December 8-9, 2006 Overview Python Features InformixDB Features Installing InformixDB Interactive
More informationDATABASE SYSTEMS. Database programming in a web environment. Database System Course,
DATABASE SYSTEMS Database programming in a web environment Database System Course, 2016-2017 AGENDA FOR TODAY The final project Advanced Mysql Database programming Recap: DB servers in the web Web programming
More informationHOW TO FLASK. And a very short intro to web development and databases
HOW TO FLASK And a very short intro to web development and databases FLASK Flask is a web application framework written in Python. Created by an international Python community called Pocco. Based on 2
More informationredis-lua Documentation
redis-lua Documentation Release 2.0.8 Julien Kauffmann October 12, 2016 Contents 1 Quick start 3 1.1 Step-by-step analysis........................................... 3 2 What s the magic at play here?
More informationjumpssh Documentation
jumpssh Documentation Release 1.0.1 Thibaud Castaing Dec 18, 2017 Contents 1 Introduction 1 2 Api reference 5 3 Changes 15 4 License 17 5 Indices and tables 19 Python Module Index 21 i ii CHAPTER 1 Introduction
More informationPackage reticulate. November 24, 2017
Type Package Title R Interface to Python Version 1.3.1 Package reticulate November 24, 2017 R interface to Python modules, classes, and functions. When calling into Python R data types are automatically
More informationpydrill Documentation
pydrill Documentation Release 0.3.4 Wojciech Nowak Apr 24, 2018 Contents 1 pydrill 3 1.1 Features.................................................. 3 1.2 Installation................................................
More informationagate-sql Documentation
agate-sql Documentation Release 0.5.3 (beta) Christopher Groskopf Aug 10, 2017 Contents 1 Install 3 2 Usage 5 3 API 7 3.1 Authors.................................................. 8 3.2 Changelog................................................
More informationPackage MonetDB.R. March 21, 2016
Version 1.0.1 Title Connect MonetDB to R Package MonetDB.R March 21, 2016 Author Hannes Muehleisen [aut, cre], Anthony Damico [aut], Thomas Lumley [ctb] Maintainer Hannes Muehleisen Imports
More informationrazi Documentation Release 2.0.0b0 Riccardo Vianello
razi Documentation Release 2.0.0b0 Riccardo Vianello Dec 23, 2017 Contents 1 Introduction 3 1.1 Installation................................................ 3 1.2 Documentation..............................................
More informationPyWin32ctypes Documentation
PyWin32ctypes Documentation Release 0.1.3.dev1 David Cournapeau, Ioannis Tziakos Sep 01, 2017 Contents 1 Usage 3 2 Development setup 5 3 Reference 7 3.1 PyWin32 Compatibility Layer......................................
More informationpetfinder-api Documentation
petfinder-api Documentation Release 0.1 Greg Taylor Jun 01, 2017 Contents 1 Assorted Info 3 2 User Guide 5 2.1 Installation................................................ 5 2.1.1 Distribute & Pip.........................................
More informationPyMySQL Documentation
PyMySQL Documentation Release 0.7.2 Yutaka Matsubara and GitHub contributors Mar 22, 2017 Contents 1 User Guide 1 1.1 Installation................................................ 1 1.2 Examples.................................................
More informationSQL: Programming. Introduction to Databases CompSci 316 Fall 2018
SQL: Programming Introduction to Databases CompSci 316 Fall 2018 2 Announcements (Thu., Oct. 11) Dean Khary McGhee, Office of Student Conduct, speaks about the Duke Community Standard Project milestone
More informationCIS 192: Lecture 11 Databases (SQLite3)
CIS 192: Lecture 11 Databases (SQLite3) Lili Dworkin University of Pennsylvania In-Class Quiz app = Flask( main ) @app.route('/') def home():... app.run() 1. type(app.run) 2. type(app.route( / )) Hint:
More informationyarl Documentation Release Andrew Svetlov
yarl Documentation Release 1.2.0- Andrew Svetlov Apr 30, 2018 Contents 1 Introduction 3 2 Installation 5 3 Dependencies 7 4 API documentation 9 5 Comparison with other URL libraries 11 6 Source code 13
More informationClickToCall SkypeTest Documentation
ClickToCall SkypeTest Documentation Release 0.0.1 Andrea Mucci August 04, 2015 Contents 1 Requirements 3 2 Installation 5 3 Database Installation 7 4 Usage 9 5 Contents 11 5.1 REST API................................................
More informationNewt DB Documentation
Newt DB Documentation Release 0.1 Jim Fulton Jun 29, 2017 Contents 1 Newt DB, the amphibious database 3 2 Getting started with Newt DB 5 2.1 Collections................................................
More informationdql Release gadaccee-dirty
dql Release 0.1.0-0-gadaccee-dirty February 05, 2014 Contents i ii A simple, SQL-ish language for DynamoDB Contents 1 2 Contents CHAPTER 1 User Guide 1.1 Getting Started Install DQL with pip: pip install
More informationJUPYTER (IPYTHON) NOTEBOOK CHEATSHEET
JUPYTER (IPYTHON) NOTEBOOK CHEATSHEET About Jupyter Notebooks The Jupyter Notebook is a web application that allows you to create and share documents that contain executable code, equations, visualizations
More informationdjango-embed-video Documentation
django-embed-video Documentation Release 0.7.stable Juda Kaleta December 21, 2013 Contents i ii Django app for easy embeding YouTube and Vimeo videos and music from SoundCloud. Repository is located on
More informationArangoDB Python Driver Documentation
ArangoDB Python Driver Documentation Release 0.1a Max Klymyshyn May 24, 2017 Contents 1 Features support 1 2 Getting started 3 2.1 Installation................................................ 3 2.2 Usage
More informationcertbot-dns-rfc2136 Documentation
certbot-dns-rfc2136 Documentation Release 0 Certbot Project Aug 29, 2018 Contents: 1 Named Arguments 3 2 Credentials 5 2.1 Sample BIND configuration....................................... 6 3 Examples
More informationChapter 13 Introduction to SQL Programming Techniques
Chapter 13 Introduction to SQL Programming Techniques Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 13 Outline Database Programming: Techniques and Issues Embedded
More informationDatabase Application Development
CS 500: Fundamentals of Databases Database Application Development supplementary material: Database Management Systems Sec. 6.2, 6.3 DBUtils.java, Student.java, Registrar.java, RegistrarServlet.java, PgRegistrar.sql
More informationKaiso Documentation. Release 0.1-dev. onefinestay
Kaiso Documentation Release 0.1-dev onefinestay Sep 27, 2017 Contents 1 Neo4j visualization style 3 2 Contents 5 2.1 API Reference.............................................. 5 3 Indices and tables
More informationMyVariant.py Documentation
MyVariant.py Documentation Release v0.3.1 Chunlei Wu Jul 11, 2017 Contents 1 Requirements 3 2 Optional dependencies 5 3 Installation 7 4 Version history 9 5 Tutorial 11 6 API 13 7 Indices and tables 19
More informationDatabases. Course October 23, 2018 Carsten Witt
Databases Course 02807 October 23, 2018 Carsten Witt Databases Database = an organized collection of data, stored and accessed electronically (Wikipedia) Different principles for organization of data:
More informationAvpy Documentation. Release sydh
Avpy Documentation Release 0.1.3 sydh May 01, 2016 Contents 1 Overview 1 2 Getting Help 3 3 Issues 5 4 Changes 7 5 Contributions 9 6 Indices and tables 11 6.1 Examples.................................................
More informationTransbase R PHP Module
Transbase R PHP Module Transaction Software GmbH Willy-Brandt-Allee 2 D-81829 München Germany Phone: +49-89-62709-0 Fax: +49-89-62709-11 Email: info@transaction.de http://www.transaction.de Version 7.1.2.30
More informationDCLI User's Guide. Data Center Command-Line Interface
Data Center Command-Line Interface 2.10.2 You can find the most up-to-date technical documentation on the VMware website at: https://docs.vmware.com/ If you have comments about this documentation, submit
More informationBambu API Documentation
Bambu API Documentation Release 2.0.1 Steadman Sep 27, 2017 Contents 1 About Bambu API 3 2 About Bambu Tools 2.0 5 3 Installation 7 4 Basic usage 9 5 Questions or suggestions? 11 6 Contents 13 6.1 Defining
More informationbzz Documentation Release Rafael Floriano and Bernardo Heynemann
bzz Documentation Release 0.1.0 Rafael Floriano and Bernardo Heynemann Nov 15, 2017 Contents 1 Getting Started 3 2 Flattening routes 5 3 Indices and tables 7 3.1 Model Hive................................................
More informationCopyright 2016 Ramez Elmasri and Shamkant B. Navathe
Chapter 10 Outline Database Programming: Techniques and Issues Embedded SQL, Dynamic SQL, and SQLJ Database Programming with Function Calls: SQL/CLI and JDBC Database Stored Procedures and SQL/PSM Comparing
More informationmaya-cmds-help Documentation
maya-cmds-help Documentation Release Andres Weber May 28, 2017 Contents 1 1.1 Synopsis 3 1.1 1.1.1 Features.............................................. 3 2 1.2 Installation 5 2.1 1.2.1 Windows, etc............................................
More informationCrate Shell. Release
Crate Shell Release Jul 10, 2017 Contents 1 Installation & Usage 3 1.1 Limitations................................................ 5 2 Command Line Arguments 7 2.1 Example Usage..............................................
More informationFlask-SimpleLDAP Documentation
Flask-SimpleLDAP Documentation Release 1.1.2 Alexandre Ferland Sep 14, 2017 Contents 1 Quickstart 3 2 Configuration 5 3 API 7 3.1 Classes.................................................. 7 3.2 History..................................................
More informationUNIVERSITY OF TORONTO SCARBOROUGH. Wnter 2016 EXAMINATIONS. CSC A20H Duration 2 hours 45 mins. No Aids Allowed
Student Number: Last Name: First Name: UNIVERSITY OF TORONTO SCARBOROUGH Wnter 2016 EXAMINATIONS CSC A20H Duration 2 hours 45 mins No Aids Allowed Do not turn this page until you have received the signal
More informationPython-Tempo Documentation
Python-Tempo Documentation Release 0.1.0 Andrew Pashkin October 25, 2015 Contents 1 Links 3 2 Features 5 3 Quick example 7 4 Schedule model 9 4.1 Example.................................................
More informationFrontera Documentation
Frontera Documentation Release 0.7.1 ScrapingHub Sep 04, 2017 Contents 1 Introduction 3 1.1 Frontera at a glance........................................... 3 1.2 Run modes................................................
More information.statement. The Python ODBC Interface. Version 2.1
.statement mxodbc The Python ODBC Interface Version 2.1 Copyright 1999-2000 by IKDS Marc-André Lemburg, Langenfeld Copyright 2000-2006 by egenix.com GmbH, Langenfeld All rights reserved. No part of this
More informationDATABASE SYSTEMS. Database programming in a web environment. Database System Course, 2016
DATABASE SYSTEMS Database programming in a web environment Database System Course, 2016 AGENDA FOR TODAY Advanced Mysql More than just SELECT Creating tables MySQL optimizations: Storage engines, indexing.
More information