This package is intended to operate as a simple intuitive interface for handling laborious elementary set theory calculations.
The goal is to make all operations on sets feel intuitive and number like (similar to MATLAB's handling of matrices)!
*********************Installation*********************
Ensure that Python is installed on your machine then run `pip install SetCalcPy`
Invoke `import SetCalcPy` in your file or console!
Enjoy!
*********************Simple Operations*********************
+ Declare sets like so `A = Set(1,2,3)` and `B = Set(1,2,Set(3,4))
+ Take the union of two sets (find all elements in `A` or `B`): `A + B`
+ Take the intersection of two sets (find all elements in `A` and `B`): `A & B`
+ Take the disjoint of two sets (find all elements in `A` but not `B`): `A - B`
+ Find the powerset of a set (all subsets of `A`): `A.powerSet()`
+ Calculate the cartesian product of two or more sets: `A * B` or `A.cartesianProduct(*sets to multiply by*)`
+ Find the complement of a set (all elements in the universe specified but not in `A`): `A.complement()`
*********************Other Features*********************
- Iterate through sets just like lists
- Access elements just like lists (the first element of `A` is `A[0]`)
- Test set equality: `A == B`
- Convert to a list: `A.__list__()`
- Check for membership: `1 in A` evaluates to True because 1 is an element of `A`
- Check length: `len(A)`
*********************Change Log*********************
- Fixed issue when printing Sets containing tuples with Sets where Sets would not display properly
- Fixed miscalculation bug with the cartesian product
- Fixed issues with Sets containing strings
Raw data
{
"_id": null,
"home_page": "https://github.com/SockRocks/Python-Elementary-Set-Theory-Calculator",
"name": "SetCalcPy",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11.5",
"maintainer_email": null,
"keywords": "calculator, homework-help, set-theory",
"author": "Ethan Gaver",
"author_email": "ethaneggcode@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/16/66/b36a38e9279614e58320214409699f804ef0fc17211cbb010ca760141720/SetCalcPy-1.2.6.tar.gz",
"platform": null,
"description": "This package is intended to operate as a simple intuitive interface for handling laborious elementary set theory calculations.\r\nThe goal is to make all operations on sets feel intuitive and number like (similar to MATLAB's handling of matrices)!\r\n\r\n*********************Installation*********************\r\nEnsure that Python is installed on your machine then run `pip install SetCalcPy`\r\nInvoke `import SetCalcPy` in your file or console!\r\nEnjoy!\r\n\r\n*********************Simple Operations*********************\r\n+ Declare sets like so `A = Set(1,2,3)` and `B = Set(1,2,Set(3,4))\r\n+ Take the union of two sets (find all elements in `A` or `B`): `A + B`\r\n+ Take the intersection of two sets (find all elements in `A` and `B`): `A & B`\r\n+ Take the disjoint of two sets (find all elements in `A` but not `B`): `A - B`\r\n+ Find the powerset of a set (all subsets of `A`): `A.powerSet()`\r\n+ Calculate the cartesian product of two or more sets: `A * B` or `A.cartesianProduct(*sets to multiply by*)`\r\n+ Find the complement of a set (all elements in the universe specified but not in `A`): `A.complement()`\r\n\r\n*********************Other Features*********************\r\n- Iterate through sets just like lists\r\n- Access elements just like lists (the first element of `A` is `A[0]`)\r\n- Test set equality: `A == B`\r\n- Convert to a list: `A.__list__()`\r\n- Check for membership: `1 in A` evaluates to True because 1 is an element of `A`\r\n- Check length: `len(A)`\r\n\r\n*********************Change Log*********************\r\n- Fixed issue when printing Sets containing tuples with Sets where Sets would not display properly\r\n- Fixed miscalculation bug with the cartesian product\r\n- Fixed issues with Sets containing strings\r\n",
"bugtrack_url": null,
"license": "GNU",
"summary": "A library for performing basic set theory operations.",
"version": "1.2.6",
"project_urls": {
"Homepage": "https://github.com/SockRocks/Python-Elementary-Set-Theory-Calculator"
},
"split_keywords": [
"calculator",
" homework-help",
" set-theory"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c5b80ea330ee834273f68883c22fd1e4b44c92ef4cd066d6e3daf8c8ece29a24",
"md5": "0cb69b6740fa29c2b1e4f9aef700928c",
"sha256": "8bc4d2dd7b55ee3cbf4ebdf4404c06a9d000333dc55075ed0132f40183040397"
},
"downloads": -1,
"filename": "SetCalcPy-1.2.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0cb69b6740fa29c2b1e4f9aef700928c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11.5",
"size": 18948,
"upload_time": "2024-03-21T20:31:03",
"upload_time_iso_8601": "2024-03-21T20:31:03.422793Z",
"url": "https://files.pythonhosted.org/packages/c5/b8/0ea330ee834273f68883c22fd1e4b44c92ef4cd066d6e3daf8c8ece29a24/SetCalcPy-1.2.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1666b36a38e9279614e58320214409699f804ef0fc17211cbb010ca760141720",
"md5": "ea3f0b67713ccba595004251accc41fb",
"sha256": "2464021eb1940cfa17554e14c1a495d313adf0ce65006e9669f8648dc8465df5"
},
"downloads": -1,
"filename": "SetCalcPy-1.2.6.tar.gz",
"has_sig": false,
"md5_digest": "ea3f0b67713ccba595004251accc41fb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11.5",
"size": 18346,
"upload_time": "2024-03-21T20:31:04",
"upload_time_iso_8601": "2024-03-21T20:31:04.883879Z",
"url": "https://files.pythonhosted.org/packages/16/66/b36a38e9279614e58320214409699f804ef0fc17211cbb010ca760141720/SetCalcPy-1.2.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-21 20:31:04",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "SockRocks",
"github_project": "Python-Elementary-Set-Theory-Calculator",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "setcalcpy"
}