{"id":37066363,"url":"https://github.com/zazza123/hamana","last_synced_at":"2026-01-14T07:47:14.231Z","repository":{"id":287021007,"uuid":"885242258","full_name":"zazza123/hamana","owner":"zazza123","description":"A python library for seamless data extraction, storage, and SQL-based analysis using pandas and SQLite.","archived":false,"fork":false,"pushed_at":"2025-09-09T16:50:12.000Z","size":3565,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-25T06:54:58.398Z","etag":null,"topics":["analysis","data","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zazza123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-08T08:23:39.000Z","updated_at":"2025-09-09T16:50:15.000Z","dependencies_parsed_at":"2025-05-23T13:02:23.819Z","dependency_job_id":"42b8ef64-c903-4727-ab97-fc9356caf773","html_url":"https://github.com/zazza123/hamana","commit_stats":null,"previous_names":["zazza123/hamana"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zazza123/hamana","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zazza123%2Fhamana","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zazza123%2Fhamana/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zazza123%2Fhamana/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zazza123%2Fhamana/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zazza123","download_url":"https://codeload.github.com/zazza123/hamana/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zazza123%2Fhamana/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analysis","data","python"],"created_at":"2026-01-14T07:47:13.465Z","updated_at":"2026-01-14T07:47:14.217Z","avatar_url":"https://github.com/zazza123.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://zazza123.github.io/hamana\"\u003e\n        \u003cimg src=\"https://raw.githubusercontent.com/zazza123/hamana/main/docs/config/images/hamana-home.png\" alt=\"hamana\" width=\"600px\" class=\"readme\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    Illustrations by \u003ca href=\"https://www.instagram.com/gaiaparte/\"\u003e@gaiaparte\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://pypi.org/project/hamana\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/pypi/pyversions/hamana.svg?color=%2334D058\" alt=\"Supported Python Versions\" height=\"18\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://pypi.org/project/hamana\"\u003e\u003cimg src=\"https://img.shields.io/pypi/v/hamana?color=%2334D058\u0026label=pypi\" alt=\"PyPI version\" height=\"18\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/zazza123/hamana/actions/workflows/execute-tests.yml?query=branch%3Amain+event%3Apush\"\u003e\u003cimg src=\"https://github.com/zazza123/hamana/actions/workflows/execute-tests.yml/badge.svg?branch=main\u0026action=push\" alt=\"Tests\" height=\"18\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://coverage-badge.samuelcolvin.workers.dev/redirect/zazza123/hamana\" target=\"_blank\"\u003e\u003cimg src=\"https://coverage-badge.samuelcolvin.workers.dev/zazza123/hamana.svg\" alt=\"Coverage\" height=\"18\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://pepy.tech/project/hamana\" target=\"_blank\"\u003e\u003cimg src=\"https://static.pepy.tech/badge/hamana/month\" alt=\"Statistics\" height=\"18\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/zazza123/hamana/blob/main/LICENSE\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/github/license/zazza123/hamana.svg\" alt=\"License\" height=\"18\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n\u003cp class=\"readme\"\u003e\n    \u003cb\u003eDocumentation\u003c/b\u003e: \u003ca href=\"https://zazza123.github.io/hamana\"\u003ehttps://zazza123.github.io/hamana\u003c/a\u003e\n\u003c/p\u003e\n\u003chr class=\"readme\"\u003e\n\n**hamana** (*Hamster Analysis*) is a Python library designed to simplify data analysis by combining the practicality of **pandas** and **SQL** in an open-source environment. This library was born from the experience of working in a large company where tools like `SAS` were often used as \"shortcuts\" to perform SQL queries across different data sources, without fully leveraging their potential. With the goal of providing a free and accessible alternative, `hamana` replicates these functionalities in an open-source context.\n\n## Why Choose `hamana`?\n\n\u003cimg align=\"left\" width=\"150\" alt=\"Hamana Explain\" src=\"https://raw.githubusercontent.com/zazza123/hamana/main/docs/config/images/hamana-explain.png\"\u003e\n\n- **Support for Multiple Data Sources**: Connect to various data sources such as relational databases, CSV files, mainframes, and more.\n- **SQLite Integration**: Save data locally in an SQLite database, either as a file or in memory.\n- **SQL + pandas**: Combine the power of `SQL` with the flexibility of `pandas` for advanced analysis.\n- **Open Source**: Available to everyone without licensing costs.\n- **Why \"Hamster\"?**: Because hamsters are awesome!\n\n## Key Features\n\n### 1. Data Extraction\n\nHamana allows you to extract data from a variety of sources:\n\n- Relational databases (SQLite, Oracle, etc.)\n- CSV, Excel, JSON, and other common file formats\n- Legacy sources like mainframes\n\nExtractions are automatically saved as `pandas` **DataFrames**, making data manipulation simple and intuitive.\n\n### 2. SQLite Storage\n\nEach extraction can be saved in an **SQLite** database, enabling you to:\n\n- Store data locally for future use\n- Perform `SQL` queries to combine extractions from different sources\n\n### 3. Data Analysis\n\nWith Hamana, you can:\n\n- Use `pandas` to quickly and flexibly manipulate data\n- Write `SQL` queries directly on datasets stored in SQLite\n- Integrate `SQL` and `pandas` into a single workflow for advanced analysis\n\n## Installation\n\nHamana is available on [PyPI](https://pypi.org/project/hamana/), and you can install it easily with pip:\n\n```bash\npip install hamana\n```\n\n## Usage Example\n\nHere is an example of how to use Hamana to connect to a data source, extract information, and combine it with another table:\n\n```python\nimport hamana as hm\n\n# connect hamana database\nhm.connect()\n\n# connect to Oracle database\noracle_db = hm.connector.db.Oracle.new(\n    host = \"localhost\",\n    port = 1521,\n    user = \"user\",\n    password = \"password\"\n)\n\n# define, execute and store a query\norders = hm.Query(\"SELECT * FROM orders\")\noracle_db.to_sqlite(orders, table_name = \"orders\")\n\n# load a CSV file and store it in SQLite\ncustomers = hm.connector.file.CSV(\"customers.csv\")\ncustomers.to_sqlite(table_name = \"customers\")\n\n# combine the two tables using SQL\ncustomers_orders = hm.execute(\"\"\"\n    SELECT\n          c.customer_name\n        , o.order_date\n        , o.total\n    FROM customers c\n    JOIN orders o ON\n        c.customer_id = o.customer_id\"\"\"\n)\n\n# use `pandas` for further analysis\nprint(customers_orders.result.head())\n\n# close connection\nhm.disconnect()\n```\n\n## How to Contribute\n\nIf you want to contribute to Hamana:\n\n1. Fork the repository.\n2. Create a branch for your changes:\n\n    ```bash\n    git checkout -b feature/your-feature-name\n    ```\n\n3. Submit a pull request describing the changes.\n\nAll contributions are welcome!\n\n## License\n\nThis project is distributed under the **BSD 3-Clause \"New\" or \"Revised\"** license.\n\n## Contact\n\nFor questions or suggestions, you can open an **Issue** on GitHub or contact me directly.\n\n---\nThank you for choosing Hamana!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzazza123%2Fhamana","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzazza123%2Fhamana","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzazza123%2Fhamana/lists"}