• Stars
    star
    104
  • Rank 323,609 (Top 7 %)
  • Language
    Python
  • License
    Other
  • Created over 11 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Python 3.3+'s ipaddress for older Python versions

ipaddress

Python 3.3+'s ipaddress for Python 2.6, 2.7, 3.2.

This repository tracks the latest version from cpython, e.g. ipaddress from cpython 3.8 as of writing.

Note that just like in Python 3.3+ you must use character strings and not byte strings for textual IP address representations:

>>> from __future__ import unicode_literals
>>> ipaddress.ip_address('1.2.3.4')
IPv4Address(u'1.2.3.4')

or

>>> ipaddress.ip_address(u'1.2.3.4')
IPv4Address(u'1.2.3.4')

but not:

>>> ipaddress.ip_address(b'1.2.3.4')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "ipaddress.py", line 163, in ip_address
    ' a unicode object?' % address)
ipaddress.AddressValueError: '1.2.3.4' does not appear to be an IPv4 or IPv6 address. Did you pass in a bytes (str in Python 2) instead of a unicode object?

More Repositories

1

pdfform.js

Fill out PDF forms in pure JavaScript
JavaScript
198
star
2

vulnsrv

Educational Exploitable Web Application
Python
23
star
3

bup

Badminton Umpire Panel
JavaScript
18
star
4

bts

Badminton Tournament Software – use the badminton umpire panel at a tournament
JavaScript
14
star
5

rc2http

Rødecaster Duo HTTP server
Go
8
star
6

keysheet

Website to print your public key (for keysigning parties, 100% client-side)
JavaScript
7
star
7

mockmail

An email (SMTP) server that accepts all emails and shows them in a web interface
Python
6
star
8

minusconf

Find services in your LAN, without any configuration
Python
4
star
9

upload

Upload script to synchronize to sftp / tiggerswelt
Python
2
star
10

offmega

Calculate information you'd usually get by googling, offline.
2
star
11

slaying

Slaying productivity project
Python
2
star
12

plotproto

Render protocol or file header diagrams
Python
2
star
13

osxh

Obviously Safe XHTML rendering
JavaScript
2
star
14

d2p

Hybrid DTN/P2P Collaboration (temporary name)
Python
2
star
15

krotoncheck

Check Badminton league results according to NRW regulations
JavaScript
2
star
16

cutvids

Video cutting, merging and uploading script
Python
2
star
17

fix-ebook

Small tools to fix a PDF ebook
Python
1
star
18

pi-bup

Raspberry Pi configuration for the Badminton Umpire Panel
Shell
1
star
19

mockmail-debian-packaging

The debian package for mocksmtp
D
1
star
20

trivialjson

Drop-in JSON decoder for Python 2.5
Python
1
star
21

dplagiat

Metadatenanalyse von docx-Dateien zur Erkennung von Plagiat/Fremdarbeit
Python
1
star
22

bmtmgr

Badminton tournament registration/management
PHP
1
star
23

bs-analysis

Generate an overview of the discussion at http://besser-studieren.nrw.de/
Python
1
star
24

adhocracy-3

Rewrite of Adhocracy
Python
1
star
25

csv-speedtest

Compare node.js/Python CSV parsers
JavaScript
1
star
26

hhucn-worldipv6day

Deutsches Poster für den World IPv6 Launch Day
1
star
27

check_port_free

Python
1
star
28

YSD

A (serverside) python helper for decrypting youtube videos signatures
PHP
1
star
29

etreehtml-py

Copy & Pasteable HTML parser for xml.etree
1
star