diff --git a/dev/contribute.html b/dev/contribute.html index 2d9beee..91ff1dc 100644 --- a/dev/contribute.html +++ b/dev/contribute.html @@ -66,7 +66,7 @@
diff --git a/dev/genindex.html b/dev/genindex.html index bfd48e8..4819b28 100644 --- a/dev/genindex.html +++ b/dev/genindex.html @@ -56,7 +56,7 @@ @@ -120,27 +120,43 @@
DFG |
+ |
Python Module Index
|
- | pystatis
+ | pystatis
| | |
@@ -132,6 +132,16 @@ |
pystatis.http_helper | ||||
+ |
+ pystatis.profile | + | |||
+ |
+ pystatis.table | + |
start_job()
Cube
+Find
+Table
+clear_cache()
logincheck()
setup_credentials()
whoami()
Module provides wrapper for Profile GENESIS REST-API functions.
+Changes Genesis REST-API password and updates local config.
+new_password (str) – New password for the Genesis REST-API
db_name (str) – Database for which the password should be changed (genesis, zensus, regio)
text response from Destatis
+str
+Remove ‘Ergebnistabellen’ from the the permission space ‘area’. +Should only apply for manually saved data, visible in ‘Meine Tabellen’ in the Web Interface.
+name (str) – ‘Ergebnistabelle’ to be removed
area (str) – permission area in which the ‘Ergebnistabelle’ resides
text response from Destatis
+str
+Module contains business logic related to destatis tables.
+Bases: object
A wrapper class holding all relevant data and metadata about a given table.
+name (str) – The unique identifier of this table.
raw_data (str) – The raw tablefile data as returned by the /data/table endpoint.
data (pd.DataFrame) – The parsed data as a pandas data frame.
metadata (dict) – Metadata as returned by the /metadata/table endpoint.
Downloads raw data and metadata from GENESIS-Online.
+Additional keyword arguments are passed on to the GENESIS-Online GET request for tablefile.
+area (str, optional) – Area to search for the object in GENESIS-Online. Defaults to “all”.
prettify (bool, optional) – Reformats the table into a readable format. Defaults to True.
data (DataFrame) –
+DataFrame
+data (DataFrame) –
+DataFrame
+data (DataFrame) –
+DataFrame
+Reformat the data into a more readable table
+data (pd.DataFrame) – A pandas dataframe created from raw_data
db (str) – The name of the database.
Formatted dataframe that omits all unnecessary Code columns +and includes informative columns names
+pd.DataFrame
+pystatis is a Python wrapper for the GENESIS web service interface (API).
+Basic usage:
+`python
+import pystatis as pstat
+print("Version:", pstat.__version__)
+`
Bases: object
A wrapper class holding all relevant data and metadata about a given cube.
+name (str) – The unique identifier of this cube.
raw_data (str) – The raw cubefile data as returned by the /data/cubfile endpoint.
data (pd.DataFrame) – The parsed data as a pandas data frame.
cube (dict) – Metadata as returned by the /data/cubefile endpoint.
metadata (dict) – Metadata as returned by the /metadata/cube endpoint.
Downloads raw data and metadata from GENESIS-Online.
+Additional keyword arguments are passed on to the GENESIS-Online GET request for cubefiles.
+area (str, optional) – Area to search for the object in GENESIS-Online. Defaults to “all”.
+Bases: object
A class representing the find object that includes Result objects for variables, statistics, cubes and tables.
+query (str) –
db_name (str) –
top_n_preview (int) –
The query that is provided to find endpoint.
+str
+The database that is used for the query. +One of “genesis”, “zensus”, “regio”.
+str
+Statistics that match with the query.
+Tables that match with the query.
+Variables that match with the query.
+Cubes that match with the query.
+Queries the API and prints summary.
+Prints summary of all results.
+String that contains summary statistics.
+summary_string
+Bases: object
A wrapper class holding all relevant data and metadata about a given table.
+name (str) – The unique identifier of this table.
raw_data (str) – The raw tablefile data as returned by the /data/table endpoint.
data (pd.DataFrame) – The parsed data as a pandas data frame.
metadata (dict) – Metadata as returned by the /metadata/table endpoint.
Downloads raw data and metadata from GENESIS-Online.
+Additional keyword arguments are passed on to the GENESIS-Online GET request for tablefile.
+area (str, optional) – Area to search for the object in GENESIS-Online. Defaults to “all”.
prettify (bool, optional) – Reformats the table into a readable format. Defaults to True.
data (DataFrame) –
+DataFrame
+data (DataFrame) –
+DataFrame
+data (DataFrame) –
+DataFrame
+Reformat the data into a more readable table
+data (pd.DataFrame) – A pandas dataframe created from raw_data
db (str) – The name of the database.
Formatted dataframe that omits all unnecessary Code columns +and includes informative columns names
+pd.DataFrame
+Clean the data cache completely or just a specified name.
+name (str, optional) – Unique name to be deleted from cached data.
+None
+Wrapper method which constructs a URL for testing the Destatis API +logincheck method, which tests the login credentials (from the config.ini).
+db_name (str) – Name of the database to login to
+text logincheck response from Destatis
+str
+Setup credentials for all supported databases.
+None
+Wrapper method which constructs a URL for testing the Destatis API +whoami method, which returns host name and IP address.
+db_name (str) – Name of the database to test
+text test response from Destatis
+str
+