pyrad


Namepyrad JSON
Version 2.4 PyPI version JSON
download
home_pagehttps://github.com/pyradius/pyrad
SummaryRADIUS tools
upload_time2020-11-23 23:12:08
maintainer
docs_urlNone
authorIstvan Ruzman, Christian Giese
requires_python
licenseBSD
keywords radius authentication
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://travis-ci.org/pyradius/pyrad.svg?branch=master
    :target: https://travis-ci.org/pyradius/pyrad
.. image:: https://coveralls.io/repos/github/pyradius/pyrad/badge.svg?branch=master
    :target: https://coveralls.io/github/pyradius/pyrad?branch=master
.. image:: https://img.shields.io/pypi/v/pyrad.svg
    :target: https://pypi.python.org/pypi/pyrad
.. image:: https://img.shields.io/pypi/pyversions/pyrad.svg
    :target: https://pypi.python.org/pypi/pyrad
.. image:: https://img.shields.io/pypi/dm/pyrad.svg
    :target: https://pypi.python.org/pypi/pyrad
.. image:: https://readthedocs.org/projects/pyrad/badge/?version=latest
    :target: http://pyrad.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status
.. image:: https://img.shields.io/pypi/l/pyrad.svg
    :target: https://pypi.python.org/pypi/pyrad

Introduction
============

pyrad is an implementation of a RADIUS client/server as described in RFC2865.
It takes care of all the details like building RADIUS packets, sending
them and decoding responses.

Here is an example of doing a authentication request::

    from __future__ import print_function
    from pyrad.client import Client
    from pyrad.dictionary import Dictionary
    import pyrad.packet

    srv = Client(server="localhost", secret=b"Kah3choteereethiejeimaeziecumi",
                 dict=Dictionary("dictionary"))

    # create request
    req = srv.CreateAuthPacket(code=pyrad.packet.AccessRequest,
                               User_Name="wichert", NAS_Identifier="localhost")
    req["User-Password"] = req.PwCrypt("password")

    # send request
    reply = srv.SendPacket(req)

    if reply.code == pyrad.packet.AccessAccept:
        print("access accepted")
    else:
        print("access denied")

    print("Attributes returned by server:")
    for i in reply.keys():
        print("%s: %s" % (i, reply[i]))



Requirements & Installation
===========================

pyrad requires Python 2.7, or Python 3.6 or later

Installing is simple; pyrad uses the standard distutils system for installing
Python modules::

  python setup.py install


Author, Copyright, Availability
===============================

pyrad was written by Wichert Akkerman <wichert@wiggy.net> and is maintained by 
Christian Giese (GIC-de) and Istvan Ruzman (Istvan91). 

This project is licensed under a BSD license.

Copyright and license information can be found in the LICENSE.txt file.

The current version and documentation can be found on pypi:
https://pypi.org/project/pyrad/

Bugs and wishes can be submitted in the pyrad issue tracker on github:
https://github.com/pyradius/pyrad/issues



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pyradius/pyrad",
    "name": "pyrad",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "radius,authentication",
    "author": "Istvan Ruzman, Christian Giese",
    "author_email": "istvan@ruzman.eu, developer@gicnet.de",
    "download_url": "https://files.pythonhosted.org/packages/fc/04/0fe33dca20685b3ced8359f487638bdf03f2776652f7f6812a639cce1b70/pyrad-2.4.tar.gz",
    "platform": "",
    "description": ".. image:: https://travis-ci.org/pyradius/pyrad.svg?branch=master\n    :target: https://travis-ci.org/pyradius/pyrad\n.. image:: https://coveralls.io/repos/github/pyradius/pyrad/badge.svg?branch=master\n    :target: https://coveralls.io/github/pyradius/pyrad?branch=master\n.. image:: https://img.shields.io/pypi/v/pyrad.svg\n    :target: https://pypi.python.org/pypi/pyrad\n.. image:: https://img.shields.io/pypi/pyversions/pyrad.svg\n    :target: https://pypi.python.org/pypi/pyrad\n.. image:: https://img.shields.io/pypi/dm/pyrad.svg\n    :target: https://pypi.python.org/pypi/pyrad\n.. image:: https://readthedocs.org/projects/pyrad/badge/?version=latest\n    :target: http://pyrad.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n.. image:: https://img.shields.io/pypi/l/pyrad.svg\n    :target: https://pypi.python.org/pypi/pyrad\n\nIntroduction\n============\n\npyrad is an implementation of a RADIUS client/server as described in RFC2865.\nIt takes care of all the details like building RADIUS packets, sending\nthem and decoding responses.\n\nHere is an example of doing a authentication request::\n\n    from __future__ import print_function\n    from pyrad.client import Client\n    from pyrad.dictionary import Dictionary\n    import pyrad.packet\n\n    srv = Client(server=\"localhost\", secret=b\"Kah3choteereethiejeimaeziecumi\",\n                 dict=Dictionary(\"dictionary\"))\n\n    # create request\n    req = srv.CreateAuthPacket(code=pyrad.packet.AccessRequest,\n                               User_Name=\"wichert\", NAS_Identifier=\"localhost\")\n    req[\"User-Password\"] = req.PwCrypt(\"password\")\n\n    # send request\n    reply = srv.SendPacket(req)\n\n    if reply.code == pyrad.packet.AccessAccept:\n        print(\"access accepted\")\n    else:\n        print(\"access denied\")\n\n    print(\"Attributes returned by server:\")\n    for i in reply.keys():\n        print(\"%s: %s\" % (i, reply[i]))\n\n\n\nRequirements & Installation\n===========================\n\npyrad requires Python 2.7, or Python 3.6 or later\n\nInstalling is simple; pyrad uses the standard distutils system for installing\nPython modules::\n\n  python setup.py install\n\n\nAuthor, Copyright, Availability\n===============================\n\npyrad was written by Wichert Akkerman <wichert@wiggy.net> and is maintained by \nChristian Giese (GIC-de) and Istvan Ruzman (Istvan91). \n\nThis project is licensed under a BSD license.\n\nCopyright and license information can be found in the LICENSE.txt file.\n\nThe current version and documentation can be found on pypi:\nhttps://pypi.org/project/pyrad/\n\nBugs and wishes can be submitted in the pyrad issue tracker on github:\nhttps://github.com/pyradius/pyrad/issues\n\n\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "RADIUS tools",
    "version": "2.4",
    "project_urls": {
        "Homepage": "https://github.com/pyradius/pyrad"
    },
    "split_keywords": [
        "radius",
        "authentication"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7523483cc51b2ea1ac47dc30093a786190e4a2dfaef892263430c6f99296fabf",
                "md5": "a323f6c98f6badb58b465a9fefbc003e",
                "sha256": "233de3aefa383875c5bddfdecfd4819d1b1fbac41aa43f6bebe4f81e63dca363"
            },
            "downloads": -1,
            "filename": "pyrad-2.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a323f6c98f6badb58b465a9fefbc003e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 32547,
            "upload_time": "2020-11-23T23:12:07",
            "upload_time_iso_8601": "2020-11-23T23:12:07.826188Z",
            "url": "https://files.pythonhosted.org/packages/75/23/483cc51b2ea1ac47dc30093a786190e4a2dfaef892263430c6f99296fabf/pyrad-2.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fc040fe33dca20685b3ced8359f487638bdf03f2776652f7f6812a639cce1b70",
                "md5": "3a34146ef689aad045aac0435e1b28ac",
                "sha256": "057de4b7e89d8da57ba782c1bde45c63ebee720ae2c0b0a69beaff15c47e30d9"
            },
            "downloads": -1,
            "filename": "pyrad-2.4.tar.gz",
            "has_sig": false,
            "md5_digest": "3a34146ef689aad045aac0435e1b28ac",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 27952,
            "upload_time": "2020-11-23T23:12:08",
            "upload_time_iso_8601": "2020-11-23T23:12:08.818771Z",
            "url": "https://files.pythonhosted.org/packages/fc/04/0fe33dca20685b3ced8359f487638bdf03f2776652f7f6812a639cce1b70/pyrad-2.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-11-23 23:12:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pyradius",
    "github_project": "pyrad",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "pyrad"
}
        
Elapsed time: 0.81655s