This release is a pre-release and may not be stable for production use.
pyrad 0.9
pyrad is an implementation of a RADIUS client 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:
import pyrad.packet
from pyrad.client import Client
from pyrad.dictionary import Dictionary
srv=Client(server="radius.my.domain", secret="s3cr3t",
dict=Dictionary("dicts/dictionary", "dictionary.acc"))
req=srv.CreateAuthPacket(code=pyrad.packet.AccessRequest,
User_Name="wichert", NAS_Identifier="localhost")
req["User-Password"]=req.PwCrypt("password")
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.0 or later.
Installing is simple; pyrad uses the standard distutils system for installing Python modules:
python setup.py install
Metadata
Release files for pyrad 1.0alpha1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyrad-1.0alpha1.tar.gz | 19.1 kB | Without provenance | Details for pyrad-1.0alpha1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyrad-1.0alpha1-py2.4.egg | Legacy Egg format | - | - | Details for pyrad-1.0alpha1-py2.4.egg |
Total release size: 54.8 kB
Release files / pyrad-1.0alpha1.tar.gz
| Download URL | pyrad-1.0alpha1.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d3a251896e0b08b7f7de6169d5dbebd55ba27b1e1e5d119bdf12b6dc96611629
|
|
BLAKE2b-256 checksum How to use checksums |
90ff3e3f27649837f5472cf26833de6ea0dbdbecd21a2fae9065b295e47e8a74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pyrad-1.0alpha1-py2.4.egg
| Download URL | pyrad-1.0alpha1-py2.4.egg |
|---|---|
| Size | 35.7 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
3c685dc8d68e96736be117f38e00fef1002c1f51346254d19dbb72ea8e0d9190
|
|
BLAKE2b-256 checksum How to use checksums |
337259405586f93878b08dc56dc467900c40193ac47e8bee0b997604e0364c50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyrad 1.0alpha1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.