{ "info": { "author": "Rapha\u00ebl Rey", "author_email": "raphael.rey@epfl.ch", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3" ], "description": "# epflldap\n\n## Installation\n`pip install dist/epflldap--py3-none-any.whl`\n\n## Build new version\n* Makes changes\n* Change the version in `_version.py`\n* `python setup.py bdist_wheel`\n\n## Basic usages\n\n### 1. Get and save locally the data of EPFL Ldap\n```python\nimport epflldap\ndata = epflldap.db()\ndata.to_pickle()\n```\nThis will create locally a `ldap_epfl.pickle` file.\n\nTo load the local data:\n```python\nimport epflldap\ndata = epflldap.db(read_from_pickle=True)\n```\n\n### 2. Get users data only\n```python\nimport epflldap\nusers = epflldap.db(read_from_pickle=True).get_users()\n```\nYou will get a `Users` object.\n\n### 3. Filter users data\n\n#### Filter by group\n```python\nimport epflldap\nusers = epflldap.db(read_from_pickle=True).get_users()\nusers_filtered = users.filter_by_group('webmasters')\n```\nYou will get an other `Users` object with only the filtered data. Available\ngroups are here: https://groups.epfl.ch/\n\n#### Filter by status\n```python\nimport epflldap\nusers = epflldap.db(read_from_pickle=True).get_users()\nusers_filtered = users.filter_by_status(['Personnel'])\n```\nPossible status are:\n* `Personnel`\n* `Etudiant`\n* `H\u00c3\u00b4te`\n* `Hors EPFL`\n\nSeveral entries don't have a status.\n\n#### Filter by unit\n```python\nimport epflldap\nusers = epflldap.db(read_from_pickle=True).get_users()\nusers_filtered = users.filter_by_unit('SISB')\n```\nYou will get all the users from the SISB team.\n\n#### Filter by school\n```python\nimport epflldap\nusers = epflldap.db(read_from_pickle=True).get_users()\nusers_filtered = users.filter_by_school('CDH')\n```\nYou will get all the users from the CDH school.\n\n#### Filter by sciper\n```python\nimport epflldap\nusers = epflldap.db(read_from_pickle=True).get_users()\nusers_filtered = users.filter_by_sciper(['sciper1', 'sciper2'])\n```\nFilter the list of users with the given list of sciper id.\n\nIn order to get information about a specific user you can:\n```python\nimport epflldap\nepflldap.db(read_from_pickle=True)\n .get_users()\n .filter_by_sciper(['sciper1'])\n .data[0]\n .get_info()\n```\nYou will get a Pandas Series with information about the person with the\ngiven sciper.\n\n#### Keep only first accred\n```python\nimport epflldap\nusers = epflldap.db(read_from_pickle=True).get_users()\nusers_filtered = users.filter_by_first_accred()\n```\nYou will get only the main accreditation of each user.\n\n\n### 4. Get all the email addresses of a `Users` object\n```python\nimport epflldap\nusers = epflldap.db(read_from_pickle=True).get_users()\nusers_filtered = users.filter_by_group('webmasters')\nusers_filtered.get_emails()\n```\nYou will get all the email addresses of the group 'webmaster'. If you want a txt\nfile, you can add an argument:\n```python\nusers.get_emails(output='addresses.txt')\n```\n\n### 5. Get Excel file with personal information data\n```python\nimport epflldap\nusers = epflldap.db(read_from_pickle=True).get_users()\nusers_filtered = users.filter_by_group('webmasters')\nusers_filtered.to_excel(webmasters.xlsx)\n```\nThis will create a xlsx file with personal information about the users.\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": "", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "epflldap", "package_url": "https://pypi.org/project/epflldap/", "platform": "", "project_url": "https://pypi.org/project/epflldap/", "project_urls": null, "release_url": "https://pypi.org/project/epflldap/0.4.1/", "requires_dist": [ "pandas", "ldap3" ], "requires_python": "", "summary": "Ce module permet de d'analyser les donn\u00e9es d'LDAP \u00e0 l'EPFL", "version": "0.4.1" }, "last_serial": 5739004, "releases": { "0.2.4": [ { "comment_text": "", "digests": { "md5": "76247d9912662aa4c1cb6372658df1f5", "sha256": "c0567fdecb6f1ad6f1af652f05d690b59d0c6de8d034841755cb29c1af509406" }, "downloads": -1, "filename": "epflldap-0.2.4-py3-none-any.whl", "has_sig": false, "md5_digest": "76247d9912662aa4c1cb6372658df1f5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7893, "upload_time": "2019-05-21T11:05:46", "url": "https://files.pythonhosted.org/packages/09/dd/3611aee7893a4826b4a2e76dfa637493311d1a79835467d4f12d5aa81f20/epflldap-0.2.4-py3-none-any.whl" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "960adab2d8b4feee28bd09d3489321b2", "sha256": "509464e56502a111a58c10dda3966b20096722c20ac388ab1cf0a09864d3bdde" }, "downloads": -1, "filename": "epflldap-0.2.5-py3-none-any.whl", "has_sig": false, "md5_digest": "960adab2d8b4feee28bd09d3489321b2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7836, "upload_time": "2019-05-21T11:17:34", "url": "https://files.pythonhosted.org/packages/21/c1/1c67b33070167cb82c5f81e7eef630b1deaffe1e95169170ba60c73e8203/epflldap-0.2.5-py3-none-any.whl" } ], "0.2.6": [ { "comment_text": "", "digests": { "md5": "9c96a97e2fe312061f002887aa32f4df", "sha256": "195faf907e8e96de0f1fcaea05d09c44eaa455ebb7f6fe4fbc8331eb9bca3461" }, "downloads": -1, "filename": "epflldap-0.2.6-py3-none-any.whl", "has_sig": false, "md5_digest": "9c96a97e2fe312061f002887aa32f4df", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7974, "upload_time": "2019-05-22T09:53:49", "url": "https://files.pythonhosted.org/packages/1e/73/086cb6caa32820590f1cea5706f55c773f688cbd3357af1842ce15bcd036/epflldap-0.2.6-py3-none-any.whl" } ], "0.2.7": [ { "comment_text": "", "digests": { "md5": "e313b481d793963987b7b880aed17d32", "sha256": "854d0a1c3b82580c7c2af9202a88db1625ed288d7c4fb265345bea03546f272c" }, "downloads": -1, "filename": "epflldap-0.2.7-py3-none-any.whl", "has_sig": false, "md5_digest": "e313b481d793963987b7b880aed17d32", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8059, "upload_time": "2019-05-22T12:09:05", "url": "https://files.pythonhosted.org/packages/41/fd/4608b75a9898d7bf14bc43c0398baebab502c86df9bf2d9844378046af95/epflldap-0.2.7-py3-none-any.whl" } ], "0.2.8": [ { "comment_text": "", "digests": { "md5": "ae3522f79fe6a35d110579f5f00cd170", "sha256": "502b2bc27e0005182867aa2bc8fc5fd29dbb0034078b2af2eb9d2a75c59de40e" }, "downloads": -1, "filename": "epflldap-0.2.8-py3-none-any.whl", "has_sig": false, "md5_digest": "ae3522f79fe6a35d110579f5f00cd170", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8052, "upload_time": "2019-05-24T11:04:29", "url": "https://files.pythonhosted.org/packages/56/20/6c89551e51f1dddb336292930a64417fcfb10bfc2e36eafb138823f0b09f/epflldap-0.2.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3310c624b0df662a5592eea9cf1178ca", "sha256": "aeb65d474b2fbb03bc116543f194d1d536dc3bb5874147eda1cbca43755f5669" }, "downloads": -1, "filename": "epflldap-0.2.8.tar.gz", "has_sig": false, "md5_digest": "3310c624b0df662a5592eea9cf1178ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6385, "upload_time": "2019-05-24T11:04:30", "url": "https://files.pythonhosted.org/packages/8f/75/00aa362a29927bc111c58a8747cdc2dfb2a8ed19ee5a7a9b25083ca1335f/epflldap-0.2.8.tar.gz" } ], "0.2.9": [ { "comment_text": "", "digests": { "md5": "18e0c99e992a9089120e9f4f8d41cfde", "sha256": "33147dbcb470a770fa052fc87c7f96c49b4190c080164d891433fc357e74d651" }, "downloads": -1, "filename": "epflldap-0.2.9-py3-none-any.whl", "has_sig": false, "md5_digest": "18e0c99e992a9089120e9f4f8d41cfde", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8051, "upload_time": "2019-05-26T20:27:30", "url": "https://files.pythonhosted.org/packages/2f/c5/d9b93552956cb5ded90efd36db4260a674c0440897550577de08c9242be3/epflldap-0.2.9-py3-none-any.whl" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "e70267445d042b2f372442cadea2454b", "sha256": "e1a13d96e4156a76160951271f7de53aadb6b1d419b1d9e04501780a062b2843" }, "downloads": -1, "filename": "epflldap-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e70267445d042b2f372442cadea2454b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8063, "upload_time": "2019-05-26T20:34:36", "url": "https://files.pythonhosted.org/packages/81/d3/b8b880684c74cb71598252bd65e51339e003dc102585e468f7f57940d8e9/epflldap-0.3.0-py3-none-any.whl" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "e2ac9465f8d1d43a5154446ff37e7fbb", "sha256": "44b65ae2b9eeb2168ea3da6e2f7e44f3584cc9a9f0f11b17cefa075798e7565b" }, "downloads": -1, "filename": "epflldap-0.4.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e2ac9465f8d1d43a5154446ff37e7fbb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8140, "upload_time": "2019-08-26T20:51:37", "url": "https://files.pythonhosted.org/packages/1f/2c/07d0f371b8625ab6a48c7f77bb9e7ec41a68b9bd7990cdabf4c4e26d7d2e/epflldap-0.4.0-py3-none-any.whl" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "e7e2e1ecb9b72b066fc78e9c5d514488", "sha256": "6727c47a03b0585b93301f8d9a098f69679b653cf8481504eb9e7557c7227839" }, "downloads": -1, "filename": "epflldap-0.4.1-py3-none-any.whl", "has_sig": false, "md5_digest": "e7e2e1ecb9b72b066fc78e9c5d514488", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8154, "upload_time": "2019-08-27T18:57:23", "url": "https://files.pythonhosted.org/packages/d5/fd/d61d93d9889cbc1a32b890654146625bef5f4b868b74e0577638ebb1128c/epflldap-0.4.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e0421d466ecb23e84c082ab6a3373320", "sha256": "16a5808f5ce2babfb593228a15aaaaf0b47e2ff10b20bc23790b8ada1be89d09" }, "downloads": -1, "filename": "epflldap-0.4.1.tar.gz", "has_sig": false, "md5_digest": "e0421d466ecb23e84c082ab6a3373320", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6505, "upload_time": "2019-08-27T18:57:25", "url": "https://files.pythonhosted.org/packages/74/64/55a845240b2c1dad0cc30b3eb297f47b9764cefcd372f3db69ab73a6a103/epflldap-0.4.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e7e2e1ecb9b72b066fc78e9c5d514488", "sha256": "6727c47a03b0585b93301f8d9a098f69679b653cf8481504eb9e7557c7227839" }, "downloads": -1, "filename": "epflldap-0.4.1-py3-none-any.whl", "has_sig": false, "md5_digest": "e7e2e1ecb9b72b066fc78e9c5d514488", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8154, "upload_time": "2019-08-27T18:57:23", "url": "https://files.pythonhosted.org/packages/d5/fd/d61d93d9889cbc1a32b890654146625bef5f4b868b74e0577638ebb1128c/epflldap-0.4.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e0421d466ecb23e84c082ab6a3373320", "sha256": "16a5808f5ce2babfb593228a15aaaaf0b47e2ff10b20bc23790b8ada1be89d09" }, "downloads": -1, "filename": "epflldap-0.4.1.tar.gz", "has_sig": false, "md5_digest": "e0421d466ecb23e84c082ab6a3373320", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6505, "upload_time": "2019-08-27T18:57:25", "url": "https://files.pythonhosted.org/packages/74/64/55a845240b2c1dad0cc30b3eb297f47b9764cefcd372f3db69ab73a6a103/epflldap-0.4.1.tar.gz" } ] }