{ "info": { "author": "Erathos", "author_email": "heron@erathos.com", "bugtrack_url": null, "classifiers": [], "description": "# Lahap\nLahap is a utility package for AWS Athena and AWS Glue.\n\n\"Code\n\n## Usage\nIn order to run Lahap functions you must instantiate a Lahap session, a `boto3.Session` wrapper to manage boto3 calls. Use can provide any valid `boto3.Session` parameter to it.\n```python\nfrom lahap import create_session\n\nlahap = create_session(region_name=\"us-east-1\", profile_name=\"profile\") # using profile\nlahap = create_session(region_name=\"us-east-1\", aws_access_key_id=\"access-key\", \n aws_secret_access_key=\"secret-key\") # using explicit key credentials\n```\n\n### Truncate table\nDeletes all S3 files located in a Glue Table's S3 location. Be careful.\n```python\nlahap.truncate_table(database=\"catalog-database\", table=\"catalog-table\")\n```\n\n### Convert table to Parquet\nCopies a table storing it as Parquet files through CTA.\nhttps://docs.aws.amazon.com/athena/latest/ug/create-table-as.html\n```python\nlahap.convert_table_to_parquet(\n query_database=\"source-database\",\n query_table=\"source-table\",\n compression=\"Parquet Compression\", # \"UNCOMPRESSED\", \"SNAPPY\", \"LZO\", \"GZIP\"\n result_database=\"result-database\",\n result_table=\"result-table-parquet\",\n external_location=\"s3://my-bucket/path\",\n)\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/erathoslabs/lahap", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "Lahap", "package_url": "https://pypi.org/project/Lahap/", "platform": "", "project_url": "https://pypi.org/project/Lahap/", "project_urls": { "Homepage": "https://github.com/erathoslabs/lahap" }, "release_url": "https://pypi.org/project/Lahap/0.0.2/", "requires_dist": [ "boto3" ], "requires_python": "", "summary": "Utility package to AWS Athena and AWS Glue.", "version": "0.0.2" }, "last_serial": 5996849, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "e01df019c846cea3393c91a8e6677276", "sha256": "77cffa117ac47ae99bf1aba1d51963e011bfc7c29f7385b16246ca62c524136b" }, "downloads": -1, "filename": "Lahap-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "e01df019c846cea3393c91a8e6677276", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5563, "upload_time": "2019-10-18T17:46:22", "url": "https://files.pythonhosted.org/packages/b8/dd/511bf9a3107fec721bcd8ea6af50cd972371bc39f5ff82a64d92afd61d42/Lahap-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "db26062fbe40944dce48b362d592037a", "sha256": "bbc274800f38e22995bccb9ce17136562f9781ba36739eb816a2805db907770e" }, "downloads": -1, "filename": "Lahap-0.0.2.tar.gz", "has_sig": false, "md5_digest": "db26062fbe40944dce48b362d592037a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3361, "upload_time": "2019-10-18T17:46:25", "url": "https://files.pythonhosted.org/packages/02/fb/45e3b56842d501b485772df0dc2e921a6b744270df4ab2953263a96693cd/Lahap-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e01df019c846cea3393c91a8e6677276", "sha256": "77cffa117ac47ae99bf1aba1d51963e011bfc7c29f7385b16246ca62c524136b" }, "downloads": -1, "filename": "Lahap-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "e01df019c846cea3393c91a8e6677276", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5563, "upload_time": "2019-10-18T17:46:22", "url": "https://files.pythonhosted.org/packages/b8/dd/511bf9a3107fec721bcd8ea6af50cd972371bc39f5ff82a64d92afd61d42/Lahap-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "db26062fbe40944dce48b362d592037a", "sha256": "bbc274800f38e22995bccb9ce17136562f9781ba36739eb816a2805db907770e" }, "downloads": -1, "filename": "Lahap-0.0.2.tar.gz", "has_sig": false, "md5_digest": "db26062fbe40944dce48b362d592037a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3361, "upload_time": "2019-10-18T17:46:25", "url": "https://files.pythonhosted.org/packages/02/fb/45e3b56842d501b485772df0dc2e921a6b744270df4ab2953263a96693cd/Lahap-0.0.2.tar.gz" } ] }