| 1 |
Metadata-Version: 2.4 |
| 2 |
Name: pyrad |
| 3 |
Version: 2.5.2 |
| 4 |
Summary: RADIUS tools |
| 5 |
Author-email: Istvan Ruzman <[email protected]>, Christian Giese <[email protected]>, Stefan Lieberth <[email protected]> |
| 6 |
License: BSD-3-Clause |
| 7 |
Project-URL: Repository, https://github.com/pyradius/pyrad |
| 8 |
Project-URL: Documentation, https://pyradius-pyrad.readthedocs.io |
| 9 |
Keywords: radius,authentication,AAA,accounting,authorization,RADIUS |
| 10 |
Classifier: Development Status :: 6 - Mature |
| 11 |
Classifier: Intended Audience :: Developers |
| 12 |
Classifier: Programming Language :: Python :: 3 |
| 13 |
Classifier: Programming Language :: Python :: 3.8 |
| 14 |
Classifier: Programming Language :: Python :: 3.9 |
| 15 |
Classifier: Programming Language :: Python :: 3.10 |
| 16 |
Classifier: Programming Language :: Python :: 3.11 |
| 17 |
Classifier: Programming Language :: Python :: 3.12 |
| 18 |
Classifier: Programming Language :: Python :: 3.13 |
| 19 |
Classifier: Programming Language :: Python :: 3.14 |
| 20 |
Classifier: Topic :: Software Development :: Libraries :: Python Modules |
| 21 |
Classifier: Topic :: System :: Systems Administration :: Authentication/Directory |
| 22 |
Requires-Python: >=3.8 |
| 23 |
Description-Content-Type: text/x-rst |
| 24 |
License-File: LICENSE.txt |
| 25 |
Requires-Dist: netaddr>=0.8.0 |
| 26 |
Requires-Dist: six>=1.16.0 |
| 27 |
Provides-Extra: test |
| 28 |
Requires-Dist: pytest>=8; extra == "test" |
| 29 |
Requires-Dist: mock; python_version < "3.10" and extra == "test" |
| 30 |
Provides-Extra: docs |
| 31 |
Requires-Dist: sphinx>=7.0; extra == "docs" |
| 32 |
Requires-Dist: sphinx-autodoc-typehints; extra == "docs" |
| 33 |
Requires-Dist: sphinx-rtd-theme>=2.0; extra == "docs" |
| 34 |
Dynamic: license-file |
| 35 |
|
| 36 |
|
| 37 |
.. image:: https://github.com/pyradius/pyrad/actions/workflows/python-test.yml/badge.svg?branch=master |
| 38 |
:target: https://github.com/pyradius/pyrad/actions/workflows/python-test.yml |
| 39 |
.. image:: https://coveralls.io/repos/github/pyradius/pyrad/badge.svg?branch=master |
| 40 |
:target: https://coveralls.io/github/pyradius/pyrad?branch=master |
| 41 |
.. image:: https://img.shields.io/pypi/v/pyrad.svg |
| 42 |
:target: https://pypi.python.org/pypi/pyrad |
| 43 |
.. image:: https://img.shields.io/pypi/pyversions/pyrad.svg |
| 44 |
:target: https://pypi.python.org/pypi/pyrad |
| 45 |
.. image:: https://img.shields.io/pypi/dm/pyrad.svg |
| 46 |
:target: https://pypi.python.org/pypi/pyrad |
| 47 |
.. image:: https://readthedocs.org/projects/pyradius-pyrad/badge/?version=latest |
| 48 |
:target: https://pyradius-pyrad.readthedocs.io/en/latest/?badge=latest |
| 49 |
:alt: Documentation Status |
| 50 |
.. image:: https://img.shields.io/pypi/l/pyrad.svg |
| 51 |
:target: https://pypi.python.org/pypi/pyrad |
| 52 |
.. image:: https://img.shields.io/badge/Chat-darkgreen |
| 53 |
:target: https://matrix.to/#/#pyradius:matrix.org |
| 54 |
|
| 55 |
Introduction |
| 56 |
============ |
| 57 |
|
| 58 |
pyrad is an implementation of a RADIUS client/server as described in RFC2865. |
| 59 |
It takes care of all the details like building RADIUS packets, sending |
| 60 |
them and decoding responses. |
| 61 |
|
| 62 |
Here is an example of doing a authentication request:: |
| 63 |
|
| 64 |
from pyrad.client import Client |
| 65 |
from pyrad.dictionary import Dictionary |
| 66 |
import pyrad.packet |
| 67 |
|
| 68 |
srv = Client(server="localhost", secret=b"Kah3choteereethiejeimaeziecumi", |
| 69 |
dict=Dictionary("dictionary")) |
| 70 |
|
| 71 |
# create request |
| 72 |
req = srv.CreateAuthPacket(code=pyrad.packet.AccessRequest, |
| 73 |
User_Name="wichert", NAS_Identifier="localhost") |
| 74 |
req["User-Password"] = req.PwCrypt("password") |
| 75 |
|
| 76 |
# send request |
| 77 |
reply = srv.SendPacket(req) |
| 78 |
|
| 79 |
if reply.code == pyrad.packet.AccessAccept: |
| 80 |
print("access accepted") |
| 81 |
else: |
| 82 |
print("access denied") |
| 83 |
|
| 84 |
print("Attributes returned by server:") |
| 85 |
for i in reply.keys(): |
| 86 |
print("%s: %s" % (i, reply[i])) |
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
Requirements & Installation |
| 91 |
=========================== |
| 92 |
|
| 93 |
pyrad requires Python 3.8 or later |
| 94 |
|
| 95 |
Installing is simple; pyrad uses the standard distutils system for installing |
| 96 |
Python modules:: |
| 97 |
|
| 98 |
python setup.py install |
| 99 |
|
| 100 |
|
| 101 |
Author, Copyright, Availability |
| 102 |
=============================== |
| 103 |
|
| 104 |
pyrad was written by Wichert Akkerman <[email protected]> and is maintained by |
| 105 |
Christian Giese (GIC-de), Istvan Ruzman (Istvan91) and Stefan Lieberth (slieberth). |
| 106 |
|
| 107 |
We’re looking for contributors to support the pyrad team! If you’re interested in |
| 108 |
helping with development, testing, documentation, or other areas, please contact |
| 109 |
us directly. |
| 110 |
|
| 111 |
This project is licensed under a BSD license. |
| 112 |
|
| 113 |
Copyright and license information can be found in the LICENSE.txt file. |
| 114 |
|
| 115 |
The current version and documentation can be found on pypi: |
| 116 |
https://pypi.org/project/pyrad/ |
| 117 |
|
| 118 |
Bugs and wishes can be submitted in the pyrad issue tracker on github: |
| 119 |
https://github.com/pyradius/pyrad/issues |
| 120 |
|
| 121 |
Related Projects & Forks |
| 122 |
======================== |
| 123 |
|
| 124 |
**pyrad2:** Noteworthy fork with experimental RadSec (RFC 6614) support. Targets Python 3.12+, |
| 125 |
adds extensive type hints, boosts test coverage, and includes fresh bug fixes. |
| 126 |
https://github.com/nicholasamorim/pyrad2 |
| 127 |
|
| 128 |
**pyrad-server:** Lab-grade RADIUS test server built on top of pyrad. |
| 129 |
https://github.com/slieberth/pyrad-server |