Jump to content
Not connected, Your IP: 44.211.58.249

Search the Community

Showing results for tags 'pythonic'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • AirVPN
    • News and Announcement
    • How-To
    • Databases
  • Community
    • General & Suggestions
    • Troubleshooting and Problems
    • Blocked websites warning
    • Eddie - AirVPN Client
    • DNS Lists
    • Reviews
    • Other VPN competitors or features
    • Nonprofit
    • Off-Topic
  • Other Projects
    • IP Leak
    • XMPP

Product Groups

  • AirVPN Access
  • Coupons
  • Misc

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Mastodon


AIM


MSN


ICQ


Yahoo


XMPP / Jabber


Skype


Location


Interests

Found 1 result

  1. For anyone who likes programming with Python, I started a project called AirPy on Github, https://github.com/Delphae/AirVPN AirPy is a Python wrapper around the AirVPN API which everybody can use, which some of you already heard of. The API is very useful to determine your connection, your server connected to and your user info Take a look at https://airvpn.org/api/ to learn more about the free to use API of AirVPN. But the output is in JSON, XML and so on. To use the output in a Python program, in a Python console or in Jupyter I have created the AirPy module. I started it, just for fun. And to get familiar with Python and Object Oriented Programming (I learned programming the old school way: procedures and functions :-)) On Github you will find the AirPy code as well as an example, in Python, how to use the AirPy module. Import the AirPy module with your personal API key and set the default country from AirPy import Airvpn APIKEY = "7de2aa122b7a42b9882d2f5b1e8ff30168ca6468" air = Airvpn(APIKEY,'nl') # when you are located in the Netherlands air = Airvpn(APIKEY,'gb') # when you are located in the UK, and so on Examples print (air.user) print (air.user.connected) print (air.user.login) print (air.connection) print (air.connection.server_name) print (air.sessions[0]) servers = air.servers() for server in servers: print (server) print (air.best()) print (air.rand()) So, if you think it is useful, use it. If you want to contribute, please do. If you have suggestions and improvements, do not hesitate to write them in this post.
×
×
  • Create New...