{ "info": { "author": "Bytes & Brains", "author_email": "valentin@bytesandbrains.com, zacharias@bytesandbrains.com", "bugtrack_url": null, "classifiers": [], "description": "# Statbank\n\n## Installation\nThe statbank library can be installed using pip:\n\n $ pip install statbank\n\n## Usage\nImport the statbank package\n\n import statbank\n\n## API reference\n\n### `statbank.data(tableid, variables=dict(), stream=False, descending=False, lang='da')`\nPulls data from a table and generates rows. Variables is a dictionary mapping variable codes to values. Streaming: Values must be chosen for all variables when streaming\n\n### `statbank.subjects(subjects=None, recursive=False, include_tables=False, lang='da')`\nList subjects from the subject hierarchy. If subjects is not given, the root subjects will be used.\n\n### `statbank.tableinfo(tableid, lang='da')`\nFetch metadata for statbank table. Metadata includes information about variables, which can be used when extracting data.\n\n### `statbank.tables(subjects=None, pastDays=None, include_inactive=False, lang='da'):`\nFind tables placed under given subjects.\n\n### Data objects\nData instances have the following attributes:\n\n* `Data.value`\n* `Data.time`\n* `Data.variables`\n\n### Subject objects\nSubject instances have the following attributes:\n\n* `Subject.id`\n* `Subject.description`\n* `Subject.subjects`\n* `Subject.tables`\n\n### Table objects\nTable instances have the following attributes:\n\n* `Table.id`\n* `Table.text`\n* `Table.unit`\n* `Table.firstPeriod`\n* `Table.latestPeriod`\n* `Table.active`\n* `Table.variables`\n* `Table.updated`\n\n### Tableinfo objects\nTableinfo instances have the following attributes:\n\n* `Tableinfo.id`\n* `Tableinfo.updated`\n* `Tableinfo.unit`\n* `Tableinfo.variables`\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bytesandbrains/statbank-python", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "statbank", "package_url": "https://pypi.org/project/statbank/", "platform": "", "project_url": "https://pypi.org/project/statbank/", "project_urls": { "Homepage": "https://github.com/bytesandbrains/statbank-python" }, "release_url": "https://pypi.org/project/statbank/1.0.0/", "requires_dist": [ "python-dateutil" ], "requires_python": "", "summary": "Statbank API client library", "version": "1.0.0" }, "last_serial": 4669281, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "773cefee2d8ccce6b82f134f450e7f02", "sha256": "282e66b9e03c2b165b69bae416a83cba10f64c73fd7d72792ebceea7f3e43fb4" }, "downloads": -1, "filename": "statbank-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "773cefee2d8ccce6b82f134f450e7f02", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9538, "upload_time": "2019-01-07T16:05:14", "url": "https://files.pythonhosted.org/packages/51/4b/2021d1d0f173860e4aa5db56963ab2a834c445d81a7f5e68a86b779033e2/statbank-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2b4774567b357a210cdcb0a8d4ffe303", "sha256": "e8724a658bf94ef0b59a3e8783955a3a8eb528f83a06725c6034397b27c5472c" }, "downloads": -1, "filename": "statbank-1.0.0.tar.gz", "has_sig": false, "md5_digest": "2b4774567b357a210cdcb0a8d4ffe303", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6234, "upload_time": "2019-01-07T16:05:17", "url": "https://files.pythonhosted.org/packages/4d/65/ecfb2a705eab6e27f8966ef5641d3f6e8c9b394db4e431915ea6e1281c9f/statbank-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "773cefee2d8ccce6b82f134f450e7f02", "sha256": "282e66b9e03c2b165b69bae416a83cba10f64c73fd7d72792ebceea7f3e43fb4" }, "downloads": -1, "filename": "statbank-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "773cefee2d8ccce6b82f134f450e7f02", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9538, "upload_time": "2019-01-07T16:05:14", "url": "https://files.pythonhosted.org/packages/51/4b/2021d1d0f173860e4aa5db56963ab2a834c445d81a7f5e68a86b779033e2/statbank-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2b4774567b357a210cdcb0a8d4ffe303", "sha256": "e8724a658bf94ef0b59a3e8783955a3a8eb528f83a06725c6034397b27c5472c" }, "downloads": -1, "filename": "statbank-1.0.0.tar.gz", "has_sig": false, "md5_digest": "2b4774567b357a210cdcb0a8d4ffe303", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6234, "upload_time": "2019-01-07T16:05:17", "url": "https://files.pythonhosted.org/packages/4d/65/ecfb2a705eab6e27f8966ef5641d3f6e8c9b394db4e431915ea6e1281c9f/statbank-1.0.0.tar.gz" } ] }