{ "info": { "author": "Yuce Tekol", "author_email": "yucetekol@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: POSIX :: BSD :: OpenBSD", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6" ], "description": "# openbsd\n\nPython bindings for some OpenBSD-specific APIs. Currently the following are supported:\n* `pledge`\n* `unveil`\n\n## Change Log\n\n### v0.1.0 (2019-05-03)\n\n * Initial release.\n\n## Installation\n\nOpenbsd is on PyPI. You can install it using pip:\n\n pip install openbsd\n\n### Prerequisites\n\n* OpenBSD 6.4 or better\n* Python 3.6 or better OR Python 2.7\n\n## Usage\n\nImport `openbsd` first:\n```python\nimport openbsd\n```\n\n### pledge\n\n```python\nopenbsd.pledge(\"stdio rpath\")\nprint(open(\"/etc/resolv.conf\"))\n```\n\nTry removing `rpath` permission.\n\n### unveil\n\n```python\nopenbsd.unveil(\"/etc\", \"r\")\nprint(open(\"/etc/resolv.conf\"))\n```\n\nTry opening `/bin/ksh`.\n\n\nUse `openbsd.unveil()` to stop limiting access to directories.\n\n## License\n\n(c) 2019 Yuce Tekol\n\n[BSD](LICENSE)", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/yuce/pyopenbsd", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "OpenBSD", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "openbsd", "package_url": "https://pypi.org/project/openbsd/", "platform": "", "project_url": "https://pypi.org/project/openbsd/", "project_urls": { "Download": "https://github.com/yuce/pyopenbsd" }, "release_url": "https://pypi.org/project/openbsd/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "OpenBSD Library", "version": "0.1.0" }, "last_serial": 5219809, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8d2e64b32920778f265b8e8ec89d24d2", "sha256": "668879f9bba8535b12331136f53d72147e088da97d9e4a8c852b0c82a7415d39" }, "downloads": -1, "filename": "openbsd-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8d2e64b32920778f265b8e8ec89d24d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2315, "upload_time": "2019-05-02T23:40:14", "url": "https://files.pythonhosted.org/packages/9f/4d/3ec8c6a7b0a606d821c637c7c857678836ce55fd68c17a015bbba5f47828/openbsd-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8d2e64b32920778f265b8e8ec89d24d2", "sha256": "668879f9bba8535b12331136f53d72147e088da97d9e4a8c852b0c82a7415d39" }, "downloads": -1, "filename": "openbsd-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8d2e64b32920778f265b8e8ec89d24d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2315, "upload_time": "2019-05-02T23:40:14", "url": "https://files.pythonhosted.org/packages/9f/4d/3ec8c6a7b0a606d821c637c7c857678836ce55fd68c17a015bbba5f47828/openbsd-0.1.0.tar.gz" } ] }