GithubHelp home page GithubHelp logo

roniemartinez / iptocc Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 6.0 18.96 MB

Get country code of IPv4/IPv6 address. Address lookup is done offline.

License: MIT License

Python 96.41% Makefile 3.59%
country-codes ipv4 ipv6 lookup

iptocc's Introduction

I am a software developer from the Philippines.

Philippines ๐Ÿ‡ต๐Ÿ‡ญ โžก๏ธ Germany ๐Ÿ‡ฉ๐Ÿ‡ช โžก๏ธ United Kingdom ๐Ÿ‡ฌ๐Ÿ‡ง

I am now in the UK. ๐Ÿ‡ฌ๐Ÿ‡ง

So what do I do in the world of software engineering?

Sponsors keep me motivated in writing, maintaining projects, help open source and building new things.

Buy Me A Coffee

Use my DigitalOcean referral below.

DigitalOcean Referral Badge

iptocc's People

Contributors

roniemartinez avatar tatemz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

iptocc's Issues

IPv6 cannot search database

I am a bit of a newbie, but while working on a geoip script, I was using this package. Everytime I would try an IPv6 address I would get the same error.

AddressValueError: '2001:200::/35' (len 13 != 16) is not permitted as an IPv6 address. Did you pass in a bytes (str in Python 2) instead of a unicode object?

After tracing back the errors, I found that once determind it is an IPv6 address, it is searching the database for a string, when the IPv6 has already been converted to unicode in the function get_country_code.
iptoccupdate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.