{ "info": { "author": "Michael Tartre", "author_email": "michael@enkratic.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3 :: Only", "Topic :: Software Development", "Topic :: Software Development :: Code Generators", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: User Interfaces", "Topic :: System :: Shells", "Topic :: Utilities" ], "description": "\n\n# sqwrl\n### Sqlachemy Query WRapper Library\n\n### Quickstart\n\n```python\nimport pandas as pd\nfrom sqwrl import DB\ndb = DB('sqlite:///:memory:')\ndf = pd.DataFrame({\"x\": [1,2,3,4,5], \"y\": list(\"abcdf\"), \"z\": [1.0, 1.5, 1.5, 1.2, 1.3]}).set_index(\"y\")\nans_df = pd.read_csv(\"tests/anscombe.csv\")\ndb[\"anscombe\"] = ans_df\nans_tbl = db[\"anscombe\"]\nans_tbl\n```\n\nNow you can (mostly) use the sqwrl table object as if it were a pandas dataframe!\n\n```python\nans_tbl[ans_tbl[\"dataset\"].isin([\"I\", \"II\"])][[\"x\", \"y\"]]\n```\n\nUse the `.df` attribute on sqwrl table objects to read their output into pandas DataFrames for any unsupported features.\n\n```python\n>>> (ans_tbl.df == ans_df).all().all()\nTrue\n```\n\nSee [usage](https://nbviewer.jupyter.org/github/enkratic/sqwrl/blob/master/usage.ipynb) for more usage examples.\n\n---\n\n### Basic Features:\n - [x] Smart Pandas like wheres using getitem\n - [x] `.loc` operations\n - [x] Indexing (including reset_index, drops, and appending)\n - [x] Sorting\n - [x] Most arithmetic operations lazily pushed\n - [x] Metadata like length and dtypes\n\n### Advanced Features:\n - Groupby\n - [x] Groupby group iteration\n - [x] Groupby aggregation\n - [ ] Groupby aggregation over multiple columns\n - [ ] Groupby group sizes\n - [ ] Groupby transform and apply\n - Joins\n - [ ] Pandas-style joins (have the basic framework in place for this)\n - Mutation\n - [ ] Adding, deleting, and editing columns\n - [ ] Appending existing tables\n - [ ] Deleting or editing based on conditions\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/enkratic/sqwrl", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "sqwrl", "package_url": "https://pypi.org/project/sqwrl/", "platform": "", "project_url": "https://pypi.org/project/sqwrl/", "project_urls": { "Homepage": "https://github.com/enkratic/sqwrl" }, "release_url": "https://pypi.org/project/sqwrl/0.0.1/", "requires_dist": [ "pandas", "numpy", "sqlalchemy", "sympy", "toolz", "datashape" ], "requires_python": "", "summary": "Sqlachemy Query WRapper Library - pandas-like SQL", "version": "0.0.1" }, "last_serial": 5519370, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "5d13712e2cecc54586dc48b2ee6902cf", "sha256": "3ed284a723ad5ec4b357f9799795ab5ed6fb920d4d5148a429de350a6a9721d9" }, "downloads": -1, "filename": "sqwrl-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "5d13712e2cecc54586dc48b2ee6902cf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3066, "upload_time": "2019-07-11T17:51:39", "url": "https://files.pythonhosted.org/packages/cc/72/5176122000d9b564ff98d696d368bce97e478640174bb73be38c0feab183/sqwrl-0.0.1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5d13712e2cecc54586dc48b2ee6902cf", "sha256": "3ed284a723ad5ec4b357f9799795ab5ed6fb920d4d5148a429de350a6a9721d9" }, "downloads": -1, "filename": "sqwrl-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "5d13712e2cecc54586dc48b2ee6902cf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3066, "upload_time": "2019-07-11T17:51:39", "url": "https://files.pythonhosted.org/packages/cc/72/5176122000d9b564ff98d696d368bce97e478640174bb73be38c0feab183/sqwrl-0.0.1-py3-none-any.whl" } ] }