{ "info": { "author": "Kevin Eifinger", "author_email": "k.eifinger@googlemail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "[![Build Status](https://travis-ci.org/flopp/fritz-switch-profiles.svg?branch=master)](https://travis-ci.org/flopp/fritz-switch-profiles)\n![License MIT](https://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat)\n\n# fritz-switch-profiles\nA (Python) script to remotely set device profiles of an AVM Fritz!Box\n\n## Installation\n\n```\ngit clone https://github.com/flopp/fritz-switch-profiles.git\ncd fritz-switch-profiles\nvirtualenv -p python3 env\nsource env/bin/activate\npip install -r requirements.txt\n```\n\n## Usage\n\n```\nusage: fritz-switch-profiles.py [-h] [--url URL] [--user USER] --password\n PASSWORD [--list-devices] [--list-profiles]\n [DEVICE=PROFILE [DEVICE=PROFILE ...]]\n\npositional arguments:\n DEVICE=PROFILE Desired device to profile mapping\n\noptional arguments:\n -h, --help show this help message and exit\n --url URL The URL of your Fritz!Box; default: http://fritz.box\n --user USER Login username; default: empty\n --password PASSWORD Login password\n --list-devices List all known devices\n --list-profiles List all available profiles\n```\n\n1. Determine the ID of the device, whose profile you want to change\n\n```\n./fritz-switch-profiles.py --password YOURPASSWORD --list-devices\n```\n->\n```\nLOGGING IN TO FRITZ!BOX AT http://fritz.box...\nFETCHING AVAILABLE PROFILES...\nFETCHING DEVICES...\nFETCHING DEVICE PROFILES...\n\nDEVICE_ID PROFILE_ID DEVICE_NAME\nlandevice5007 filtprof1 android-1234567890123456 [NOT ACTIVE]\nlandevice6494 filtprof1 my kid's iphone\nlandevice5006 filtprof2 Chromecast\n...\n```\n\n2. Determine the available profiles\n```\n./fritz-switch-profiles.py --password YOURPASSWORD --list-profiles\n```\n->\n```\nLOGGING IN TO FRITZ!BOX AT http://fritz.box...\nFETCHING AVAILABLE PROFILES...\nFETCHING DEVICES...\nFETCHING DEVICE PROFILES...\n\nPROFILE_ID PROFILE_NAME\nfiltprof1 Standard\nfiltprof2 Gast\nfiltprof3 Unbeschr\u00e4nkt\nfiltprof4 Gesperrt\n```\n\n3. Actually change the profiles\n```\n./fritz-switch-profiles.py --password YOURPASSWORD landevice6494=filtprof4\n```\n->\n```\nLOGGING IN TO FRITZ!BOX AT http://fritz.box...\nFETCHING AVAILABLE PROFILES...\nFETCHING DEVICES...\nFETCHING DEVICE PROFILES...\n\nUPDATING DEVICE PROFILES...\n CHANGING PROFILE OF landevice6494/my kid's iphone TO filtprof4/Gesperrt\n```\n\nNote that you may change the profiles of multiple devices at once by supplying multiple `DEVICE=PROFILE` pairs on the command line.\n\n## Usage as a library\n\nFrom [example.py](examples/example.py)\n\n```python\nfrom fritz_switch_profiles import FritzProfileSwitch\n\nurl = 'http://fritz.box'\nuser = ''\npassword = 'mysecurepassword'\n\nfps = FritzProfileSwitch(url, user, password)\ndevices = fps.get_devices()\nprofiles = fps.get_profiles()\n\nfps.print_devices()\nfps.print_profiles()\n\nprofile_for_device = [devices[0]['id1'], profiles[2]['id']]\n\nfps.set_profiles(profile_for_device)\n```\n\n## Known Issues\n\n- Non-uniquely named devices may confuse the script.\n\n## License\n[MIT](https://github.com/flopp/fritz-switch-profiles/blob/master/LICENSE) © 2018 Florian Pigorsch & contributors", "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/eifinger/fritz-switch-profiles", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "fritz-switch-profiles", "package_url": "https://pypi.org/project/fritz-switch-profiles/", "platform": "", "project_url": "https://pypi.org/project/fritz-switch-profiles/", "project_urls": { "Homepage": "https://github.com/eifinger/fritz-switch-profiles" }, "release_url": "https://pypi.org/project/fritz-switch-profiles/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "A (Python) script to remotely set device profiles of an AVM Fritz!Box", "version": "1.0.0" }, "last_serial": 4264844, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "aaead6093d8cfc748bec9003cb145ba6", "sha256": "65d3c4c44744ddbc7631f8b28fdecb4703a3526409f5f73ddaff7aeef8f1696d" }, "downloads": -1, "filename": "fritz-switch-profiles-0.0.1.tar.gz", "has_sig": false, "md5_digest": "aaead6093d8cfc748bec9003cb145ba6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4621, "upload_time": "2018-09-09T16:04:19", "url": "https://files.pythonhosted.org/packages/9f/de/edc84d762ed063d469c97b0c7a77b0eddc81c38ac50c27dae9628a1f3c87/fritz-switch-profiles-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "ae4fc9d3e46c03210a25b76779ed9332", "sha256": "f186699bbf9145892307b45d798c992f45d2ae05876a04756f3d183cf894e297" }, "downloads": -1, "filename": "fritz-switch-profiles-0.0.2.tar.gz", "has_sig": false, "md5_digest": "ae4fc9d3e46c03210a25b76779ed9332", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4831, "upload_time": "2018-09-10T06:47:47", "url": "https://files.pythonhosted.org/packages/55/94/d2c9581a813eecacdf02d203f3f33c17a1ced3db39f310265b8e0fcc6dee/fritz-switch-profiles-0.0.2.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "9ecdc1a3ddc4ec04853f9b8c2448cfd0", "sha256": "234c4c6f12b11a0e3ba6151e64c6ede3905795b11dea8a898c1182a423121147" }, "downloads": -1, "filename": "fritz-switch-profiles-1.0.0.tar.gz", "has_sig": false, "md5_digest": "9ecdc1a3ddc4ec04853f9b8c2448cfd0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4836, "upload_time": "2018-09-12T12:43:16", "url": "https://files.pythonhosted.org/packages/78/19/7a20bcf17549c19e9ebb8d0bd2902f29fee94cdfabccafd965cb3f9b22ae/fritz-switch-profiles-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9ecdc1a3ddc4ec04853f9b8c2448cfd0", "sha256": "234c4c6f12b11a0e3ba6151e64c6ede3905795b11dea8a898c1182a423121147" }, "downloads": -1, "filename": "fritz-switch-profiles-1.0.0.tar.gz", "has_sig": false, "md5_digest": "9ecdc1a3ddc4ec04853f9b8c2448cfd0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4836, "upload_time": "2018-09-12T12:43:16", "url": "https://files.pythonhosted.org/packages/78/19/7a20bcf17549c19e9ebb8d0bd2902f29fee94cdfabccafd965cb3f9b22ae/fritz-switch-profiles-1.0.0.tar.gz" } ] }