{ "info": { "author": "Moduland Co", "author_email": "info@moduland.ir", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: Unix", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Scientific/Engineering" ], "description": "
\n\n\n
\n\"DOI\"\n\n\n\n\n
\n\n----------\n\n## Table of contents\t\t\t\t\t\n * [Overview](https://github.com/Moduland/Orangetool#overview)\n * [Installation](https://github.com/Moduland/Orangetool#installation)\n * [Usage](https://github.com/Moduland/Orangetool#usage)\n \t\t* [IP Functions](https://github.com/Moduland/Orangetool#ip-functions)\n \t\t* [RAM Functions](https://github.com/Moduland/Orangetool#ram-functions)\n \t\t* [Storage Functions](https://github.com/Moduland/Orangetool#storage-functions)\t\n \t\t* [Display Functions](https://github.com/Moduland/Orangetool#display-functions)\n \t\t* [System Functions](https://github.com/Moduland/Orangetool#system-functions)\n * [Issues & Bug Reports](https://github.com/Moduland/Orangetool#issues--bug-reports)\n * [Supported Device List](https://github.com/Moduland/Orangetool/blob/master/Supported_Device_List.md)\n * [Dependencies](https://github.com/Moduland/Orangetool#dependencies)\n * [Contribution](https://github.com/Moduland/Orangetool/blob/master/.github/CONTRIBUTING.md)\n * [Cite](https://github.com/Moduland/Orangetool#cite)\n * [Authors](https://github.com/Moduland/Orangetool/blob/master/AUTHORS.md)\n * [License](https://github.com/Moduland/Orangetool/blob/master/LICENSE)\n * [Donate](https://github.com/Moduland/Orangetool#donate-to-our-project)\n * [Changelog](https://github.com/Moduland/Orangetool/blob/master/CHANGELOG.md)\n * [Code of Conduct](https://github.com/Moduland/Orangetool/blob/master/.github/CODE_OF_CONDUCT.md)\n\n## Overview\n\t\nControl functions for Single-Board computers\t\t\t\t\n\nTested on [Lubuntu](http://lubuntu.me/)\n\n\n\t \n\t\t\n\t\t\t\n\t\n\t\n\t\t\n\t\t\n\t\n\t\n\t\t\n\t\t\n\t\n
Open Hub
PyPI Counter
Github Stars
\n\n\n\n\n\t \n\t\t\n\t\t\t\n\t\t\t\n\t\n\t\n\t\t\n\t\t\n\t\t\n\t\n
Branchmasterdev
Travis
\n\n\n\n\t \n\t\t\n\t\t\t\n\t\t\t\t\n\t\n
Code Quality\"CodeFactor\"
\n\n----------\n\t\nBy [Moduland Co](http://www.moduland.ir)\t\t\n\n\n## Installation\n### Source Code\n- Download [Version 0.35](https://github.com/moduland/Orangetool/archive/v0.35.zip) or [Latest Source ](https://github.com/Moduland/Orangetool/archive/dev.zip)\n- `pip3 install -r requirements.txt` or `pip install -r requirements.txt` (Need root access)\t\n- `python3 setup.py install` or `python setup.py install`\n### PyPI\n\n- Check [Python Packaging User Guide](https://packaging.python.org/installing/) \n- `pip3 install orangetool==0.35` or `pip install orangetool==0.35` (Need root access)\t\n
\n\n
\n\n### Conda\n\n- Check [Conda Managing Package](https://conda.io/docs/user-guide/tasks/manage-pkgs.html#installing-packages-from-anaconda-org)\n- `conda install -c sepandhaghighi orangetool` (Need root access)\n\n### Easy install\n\n- Run `easy_install --upgrade orangetool` (Need root access)\n\n## Usage\n\t\t\t\t\t\t\t\t\t\t\t\t\n### IP Functions\n\n```python\nimport orangetool\n\n#1- local_ip\n\nlocal_ip=orangetool.local_ip() # this function return local ip of board as string\n\n#2- global_ip\n\nglobal_ip=orangetool.global_ip() # this function return global ip of board as string\n\n#3- internet \n\nstatus=orangetool.internet() #this function check internet connection and return True if internet connection is stable\n\n#4- ping\n\nip_status=orangetool.ping(ip_address) #this function check ip and return True if this ip is available in network and False otherwise\n\n#5- set_ip\n\nset_ip(\"192.168.1.46\",\"eth0\") #this function set static ip for system\n\n#6- mac\n\nmac_dic=orangetool.mac() # return dict of all system net devices mac addresses\n\n\n\n```\n\n### RAM Functions\t\t\n\n```python\n \n#1- total ram\n\nram=orangetool.ram_total() #this function return total ram of the board\n\n#2- free ram\n\nram=orangetool.ram_free() # this function return how much ram is available in the board\n\n#3- ram percentage\n\nram=orangetool.ram_percent() # this function return used ram percentage\n\n#4- used percentage\n\nram=orangetool.ram_used() # this function return used ram \n\n#5- freeup\n\norangetool.freeup() # To free pagecache, dentries and inodes and return freeuped amount\n\n```\n\n### Storage Functions\t\t\t\t\n\n```python\n#1- mount_status\n\nmount_details=orangetool.mount_status(\"sda1\") # This function return mount addresses of input device\n\n#2- storage_status\n\nmount_details=orangetool.storage_status() # This function return all of the inserted storage and their status\n\n#3- unmount\n\norangetool.unmount(\"/mnt/usb1\") # This function unmount input device\n\n#4- unmount_all\n\n\norangetool.unmount_all() #This function unmount all of the mounted devices\n\n#5- mount\n\norangetool.mount(\"sda1\",\"/mnt/usb1\") # This function mount input device in input addresses\n\n```\n\n### Display Functions\t\t\t\t\n\n```python\n#1- hdmi_on\n\norangetool.hdmi_on() # turn on hdmi port\n\n#2- hdmi_off\n\norangetool.hdmi_off() # turn off hdmi port\n\n#3- hdmi_size\n\norangetool.hdmi_size(1280,720) # this function change hdmi display resolution\n\n```\n\n### System Functions\t\t\t\t\n\n```python\n#1- sleep\n\norangetool.sleep() # put system in sleep mode\n\n#2- halt\n\norangetool.halt() # poweroff system\n\n#3- restart\n\norangetool.restart() # restart system\n\n#4- wakeup\n\norangetool.wakeup(day=1,hour=0,minute=1) # set rtc wakeuptime\n\n#5- get_temp\n\ntemp=orangetool.get_temp() # this function return cpu temperature as string\n\n#6- uptime\n\ntime=orangetool.uptime() # this function return uptime of system\n\n#7- idletime\n\ntime=orangetool.idletime() # this function return idle of system ( all cores)\n\n\n#8- version\n\norangetool.version() # return orangetool version for test\n\n#9- check_update\n\norangetool.check_update # Return True if new version is available\n\n```\n\n\n\n- All of the functions in error state return `Error` String\n- `local_ip` and `global_ip` originally are available in ipz package [Link](http://github.com/sepandhaghighi/ipz)\n- RAM functions in this version need psutil package\n- Running `set_ip` function remotely will freeze your terminal so it's better to set `restart` parameter to True\n- Running `halt`,`restart` & `sleep` functions remotely will freeze your terminal\n- Some of funtions need root access so it's better to run ```sudo -s``` before use this tool\n\n\n\n## Issues & Bug Reports\t\t\t\n\nJust fill an issue and describe it. We'll check it ASAP!\t\t\t\t\t\t\t\nor send an email to [info@moduland.ir](mailto:info@moduland.ir \"info@moduland.ir\"). \n\n## Dependencies\n\n\n\t \n\t\t\t\n\t\t\t\n\t\n\t\n\t\t\n\t\t\n\t\n
masterdev
\n\n\t\t\n## Cite\nIf you use orangetool in your research , please cite this ;-)\n\n
\n

Sepand Haghighi. 2017. Moduland/Orangetool: Version 0.23. (July 2017). DOI:http://dx.doi.org/10.5281/zenodo.829797

\n
\t\t\t\n\n\t\t\t\t\t\t\n\t\t\t\t\t\n## Donate to our project\t\t\t\t\t\t\t\t\t\n\nIf you feel like our project is important can you please support us?\t\t\t\nOur project is not and is never going to be working for profit. We need the money just so we can continue doing what we do.\n\n

Bitcoin :

\t\t\t\t\t\n\n```1XGr9qbZjBpUQJJSB6WtgBQbDTgrhPLPA```\n\t\t\t\t\n\n

Payping (For Iranian citizens) :

\n\n\n\n## License\n
\n\n
\n\"Moduland\n\n
\n\n\n\n\t\t\t\n\n\n# Changelog\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)\nand this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).\n\n## [Unreleased]\n## [0.35] - 2019-06-01\n### Added\n- `version_check.py`\n- `CODE_OF_CONDUCT.md`\n- `ISSUE_TEMPLATE.md`\n- `PULL_REQUEST_TEMPLATE.md`\n- `CONTRIBUTING.md`\n- `test.sh`\n- `autopep8.bat`\n- `dev-requirements.txt`\n- `CHANGELOG.md`\n- `MANIFEST.in`\n\n### Changed\n- `README.md` modified\n- Test system modified\n- `restart`, `halt` and `sleep` functions modified\n- `hdmi_on` and `hdmi_off` functions modified\n- `version` function modified\n- `requirements.txt` modified\n- `DEVICE` parameter renamed to `device` in `set_ip` function\n- `restart` parameter added to `set_ip` function\n\n## [0.25] - 2017-09-14\n### Changed\n- Minor bug in PyPi dependencies fixed\n\n## [0.24] - 2017-07-21\n### Changed\n- Minor bugs fixed\n\n## [0.23] - 2017-07-15\n### Added\n- `Check_update` function\n\n\n### Changed\n- Minor bugs fixed\n\n## [0.22] - 2017-03-30\n### Added\n- `Version` function\n- `Supported_Device_List.md`\n\n### Changed\n- Minor bugs fixed\n\n## [0.2] - 2017-03-06\n### Added\n- `idletime` function\n- `mount`,`unmount` functions\n\n### Changed\n - Some bugs fixed\n\n## [0.1] - 2017-02-15\n### Added\n- Some useful scripts for Orangepi/Raspberrypi boards\n\n[Unreleased]: https://github.com/Moduland/Orangetool/compare/v0.35...dev\n[0.35]: https://github.com/Moduland/Orangetool/compare/v0.25...v0.35\n[0.25]: https://github.com/Moduland/Orangetool/compare/v0.24...v0.25\n[0.24]: https://github.com/Moduland/Orangetool/compare/v0.23...v0.24\n[0.23]: https://github.com/Moduland/Orangetool/compare/v0.22...v0.23\n[0.22]: https://github.com/Moduland/Orangetool/compare/v0.2...v0.22\n[0.2]: https://github.com/Moduland/Orangetool/compare/v0.1...v0.2\n[0.1]: https://github.com/Moduland/Orangetool/compare/1e238cd...v0.1", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/Moduland/Orangetool/tarball/v0.35", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Moduland/Orangetool", "keywords": "orangepi raspberrypi embedded-systems python", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "orangetool", "package_url": "https://pypi.org/project/orangetool/", "platform": "", "project_url": "https://pypi.org/project/orangetool/", "project_urls": { "Download": "https://github.com/Moduland/Orangetool/tarball/v0.35", "Homepage": "https://github.com/Moduland/Orangetool" }, "release_url": "https://pypi.org/project/orangetool/0.35/", "requires_dist": null, "requires_python": "", "summary": "Some useful script for Orangepi/Raspberrypi boards", "version": "0.35" }, "last_serial": 5346531, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "834bf23dba95a2a57338d2967d1106e7", "sha256": "78ad2d0f2357e0316fe8e12f44a93dcee24b9f9fc8bc190b2b31ac5693486586" }, "downloads": -1, "filename": "orangetool-0.1.zip", "has_sig": false, "md5_digest": "834bf23dba95a2a57338d2967d1106e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3143, "upload_time": "2017-02-15T06:40:17", "url": "https://files.pythonhosted.org/packages/26/09/d12dc2b7118220edcf53c33ee07fd9d30bc9a62566027894d47b917daebc/orangetool-0.1.zip" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "31d4d93197aaed53f23a7b92970aed80", "sha256": "c75e072779517510d816c1059ab5d9505c5993dfad6d1cdb07f3b28bb3763af9" }, "downloads": -1, "filename": "orangetool-0.2.zip", "has_sig": false, "md5_digest": "31d4d93197aaed53f23a7b92970aed80", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4103, "upload_time": "2017-03-06T20:17:48", "url": "https://files.pythonhosted.org/packages/f2/57/414463f067c6613607cbef6a511ee09174305092fad88f985fb3a30a7d0b/orangetool-0.2.zip" } ], "0.22": [ { "comment_text": "", "digests": { "md5": "34f63a21adbf93a2d8f4147cc0d607a1", "sha256": "d7bdf0560222be1ac5e6cc6b0a5e96491a9d199e9a0ee656e59380eaa714eacf" }, "downloads": -1, "filename": "orangetool-0.22.zip", "has_sig": false, "md5_digest": "34f63a21adbf93a2d8f4147cc0d607a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7836, "upload_time": "2017-05-30T08:37:01", "url": "https://files.pythonhosted.org/packages/e5/b1/23d7efcb109859d611ffe36804df8d8bad2f1f5f9b5dc49c77d7b82b711e/orangetool-0.22.zip" } ], "0.23": [ { "comment_text": "", "digests": { "md5": "f4312c9ca04a7384354408ddc1ce7667", "sha256": "bc23cb9edd5432b3fa660c360c6b114ef15ada4477620b49bb6a2ffa336000e4" }, "downloads": -1, "filename": "orangetool-0.23.tar.gz", "has_sig": false, "md5_digest": "f4312c9ca04a7384354408ddc1ce7667", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5811, "upload_time": "2017-07-15T12:56:41", "url": "https://files.pythonhosted.org/packages/e4/9a/66db35d3458dbeb2eeadb5ac35f02fa9b8934f7039bfb535a097cb690a5e/orangetool-0.23.tar.gz" } ], "0.25": [ { "comment_text": "", "digests": { "md5": "190beb81b473d9a1860ff3dc21ddace6", "sha256": "95c6d06f7acaff6f8c6e77f0b1858c13f8b98c1dd5f107e9a545991801f4341c" }, "downloads": -1, "filename": "orangetool-0.25.tar.gz", "has_sig": false, "md5_digest": "190beb81b473d9a1860ff3dc21ddace6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5889, "upload_time": "2017-09-14T08:55:20", "url": "https://files.pythonhosted.org/packages/6a/a8/3152da0d3fc29651a424e4224576b2361e2af30cbad4eaa516c58535bfcd/orangetool-0.25.tar.gz" } ], "0.35": [ { "comment_text": "", "digests": { "md5": "73d448d1ebfc07430c88cf32cd486478", "sha256": "0f5a340efc389b4f7baa6b06422170be447c96c57e8b25525d256a0a99190306" }, "downloads": -1, "filename": "orangetool-0.35-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "73d448d1ebfc07430c88cf32cd486478", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12439, "upload_time": "2019-06-01T13:57:42", "url": "https://files.pythonhosted.org/packages/57/f7/ee4963c57304c70d74d77bea1867219d45c8bc6d274b8253623680963e8f/orangetool-0.35-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3247ae148510adeaabec85b440fe59bc", "sha256": "6f0070a9dffa30b68578420ee51d316719f4cf1e18622db2876eba2d2c8fa31f" }, "downloads": -1, "filename": "orangetool-0.35.tar.gz", "has_sig": false, "md5_digest": "3247ae148510adeaabec85b440fe59bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16280, "upload_time": "2019-06-01T13:57:22", "url": "https://files.pythonhosted.org/packages/2e/81/30142e0173d8f8117a7a6ef96d1a1069c1582905e9cf456227f6464012b1/orangetool-0.35.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "73d448d1ebfc07430c88cf32cd486478", "sha256": "0f5a340efc389b4f7baa6b06422170be447c96c57e8b25525d256a0a99190306" }, "downloads": -1, "filename": "orangetool-0.35-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "73d448d1ebfc07430c88cf32cd486478", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12439, "upload_time": "2019-06-01T13:57:42", "url": "https://files.pythonhosted.org/packages/57/f7/ee4963c57304c70d74d77bea1867219d45c8bc6d274b8253623680963e8f/orangetool-0.35-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3247ae148510adeaabec85b440fe59bc", "sha256": "6f0070a9dffa30b68578420ee51d316719f4cf1e18622db2876eba2d2c8fa31f" }, "downloads": -1, "filename": "orangetool-0.35.tar.gz", "has_sig": false, "md5_digest": "3247ae148510adeaabec85b440fe59bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16280, "upload_time": "2019-06-01T13:57:22", "url": "https://files.pythonhosted.org/packages/2e/81/30142e0173d8f8117a7a6ef96d1a1069c1582905e9cf456227f6464012b1/orangetool-0.35.tar.gz" } ] }