Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python.announce > #933

ANN: pyroute2 (python netlink library) initial public release

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <peet@redhat.com>
X-Original-To python-announce-list@python.org
Delivered-To python-announce-list@mail.python.org
X-Spam-Status OK 0.022
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'url:pypi': 0.03; 'interfaces': 0.04; 'context': 0.07; 'subject:ANN': 0.07; 'arrays': 0.09; 'planned.': 0.09; 'url:github': 0.09; 'api': 0.11; 'python': 0.11; 'changes': 0.15; "'cause": 0.16; 'fetch': 0.16; 'monitors': 0.16; 'old-style': 0.16; 'subject:library': 0.16; 'sync': 0.16; 'to:addr:python-announce-list': 0.16; 'url:issues': 0.16; 'vpn': 0.16; 'w/o': 0.16; 'subject:python': 0.16; 'exception': 0.16; 'skip:= 10': 0.16; 'stack': 0.19; '(in': 0.22; 'header:User-Agent:1': 0.23; 'library,': 0.24; 'subject:release': 0.24; 'supported': 0.26; 'subject:) ': 0.29; 'database,': 0.30; 'code': 0.31; '(maybe': 0.31; 'ctypes': 0.31; 'request,': 0.31; "user's": 0.31; 'allows': 0.31; 'url:python': 0.33; 'subject: (': 0.35; 'skip:u 20': 0.35; 'transaction': 0.35; 'but': 0.35; 'addresses,': 0.36; 'url:org': 0.36; 'list': 0.37; 'received:209': 0.37; 'received:10': 0.37; 'e.g.': 0.38; 'todo': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'even': 0.60; 'easy': 0.60; 'monitoring': 0.61; 'managers': 0.61; 'simple': 0.61; 'skip:n 10': 0.64; 'provide': 0.64; 'more': 0.64; 'different': 0.65; 'charset:windows-1252': 0.65; 'family': 0.73; 'links,': 0.74; 'now:': 0.74; 'goal': 0.75; 'goals': 0.81; '=====': 0.84; 'received:10.34': 0.84; 'samples:': 0.84; 'usage.': 0.84; 'families': 0.91; 'info,': 0.91; 'transport,': 0.91; 'url:ru': 0.98
Date Tue, 07 May 2013 21:46:05 +0200
From "Peter V. Saveliev" <peet@redhat.com>
Organization Red Hat Czech s.r.o.
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4
MIME-Version 1.0
To python-announce-list@python.org
Subject ANN: pyroute2 (python netlink library) initial public release
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 8bit
X-Scanned-By MIMEDefang 2.68 on 10.5.11.24
X-Mailman-Approved-At Tue, 07 May 2013 21:52:47 +0200
X-BeenThere python-announce-list@python.org
X-Mailman-Version 2.1.15
Precedence list
Reply-To python-list@python.org
List-Id Announcement-only list for the Python programming language <python-announce-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-announce-list/>
List-Post <mailto:python-announce-list@python.org>
List-Help <mailto:python-announce-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe>
Approved python-announce-list@python.org
Newsgroups comp.lang.python.announce
Message-ID <mailman.1417.1367956368.3114.python-announce-list@python.org> (permalink)
Lines 50
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1367956368 news.xs4all.nl 15882 [2001:888:2000:d::a6]:52365
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python.announce:933

Show key headers only | View raw


General description
===================

Started as python NETLINK_ROUTE library, pyroute2 provides simple 
netlink encoder/decoder. Families and messages supported by now:

* rtnetlink: addresses, links, neighbors, routes
* taskstats

More netlink families to support are planned.

Features
========

* pure-python, w/o any additional *.so or ctypes
* transactional database for rtnetlink family
   * interfaces as context managers
   * transaction review() / rollback() / commit()
   * automatic transaction rollback() on commit() exception
   * monitors IP stack for changes
* for old-school guys: old-style API ip.link('set', dev, param=…)
* netlink-over-SOCK_STREAM — with TLS/SSL client/server auth

IP stack monitoring allows not to fetch data from the system upon user's 
request, but keep it in sync all the time in the database, and on huge 
arrays of VLANs or VPN nics response even faster than C with ioctl() 
does — and still provide more info, 'cause through ioctl() not any data 
is available.

Goals
=====

The main goal is to provide simple (maybe even simplest) API for netlink 
usage. In the todo list are (beside of support for different netlink 
families) also userspace-to-userspace netlink transport, more auth 
mechanisms, e.g. SASL (in addition to TLS/SSL).

Links
=====

     home: https://github.com/svinota/pyroute2
     bugs: https://github.com/svinota/pyroute2/issues
     pypi: https://pypi.python.org/pypi/pyroute2
     docs: http://peet.spb.ru/pyroute2/

Some easy code samples: http://peet.spb.ru/pyroute2/modules.html

-- 
Peter V. Saveliev

Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread


Thread

ANN: pyroute2 (python netlink library) initial public release "Peter V. Saveliev" <peet@redhat.com> - 2013-05-07 21:46 +0200

csiph-web