Skip to content

Commit

Permalink
0.0.1 2015-04-07 ::
Browse files Browse the repository at this point in the history
Basic func.
  • Loading branch information
jcrmatos committed May 2, 2015
0 parents commit dd1e042
Show file tree
Hide file tree
Showing 42 changed files with 3,307 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .gitignore
@@ -0,0 +1,33 @@
#############
## Python
#############

*.py[co]
*.pkl
*.~*

# Packages
*.egg
*.egg-info
dist/
build/
eggs/
parts/
var/
sdist/
develop-eggs/
.installed.cfg
__pycache__/
test/__pycache__

# virtualenv
venv/

# Unit test / coverage reports
.coverage
.tox

# project specific
ipaddresses/__pycache__/
ipaddresses/doc/
ipaddresses/pythonhosted.org/*.zip
11 changes: 11 additions & 0 deletions .travis.yml
@@ -0,0 +1,11 @@
language: python
python:
- "2.7"
- "3.4"
install: pip install --use-mirrors -r requirements.txt
script:
py.test --cov ipaddresses test/
notifications:
email:
on_success: always
on_failure: always
2 changes: 2 additions & 0 deletions AUTHORS.rst
@@ -0,0 +1,2 @@

Joao Carlos Roseta Matos <jcrmatos@gmail.com>
3 changes: 3 additions & 0 deletions ChangeLog.rst
@@ -0,0 +1,3 @@
0.0.1 2015-04-07 ::

Basic func.
301 changes: 301 additions & 0 deletions LICENSE.rst

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions MANIFEST.in
@@ -0,0 +1,7 @@
include *.cmd *.ini *.py *.rst *.txt *.yml
include appveyor/*
include doc/*.rst doc/*.py
include pythonhosted.org/*
include test/*.rst
include ipaddresses/*.txt
recursive-include ipaddresses/doc *
68 changes: 68 additions & 0 deletions README.rst
@@ -0,0 +1,68 @@
ipaddresses
===========

Shows your private and public IP addresses.

Description and features
------------------------

**Description**

Shows your private and public IP addresses.

Although the code is OS independent, I'm only able to test it in console (Windows Cmd) and Windows GUI.

**Features:**

* Shows the private and public IP addresses.

Installation, usage and options
-------------------------------

**Installation**

.. code:: bash
$ pip install ipaddresses
**Usage**

.. code:: bash
$ ipaddresses
**Options**

.. code:: bash
$ ipaddresses -h
usage: ipaddresses [-option]
optional arguments:
-g, --gui start GUI (Graphical User Interface)
-h, --help show help message
-l, --license show license
-p, --pause pause after showing IP addresses
-V, --version show version
No arguments shows private and public IP addresses.
Resources and contributing
--------------------------

**Resources**

* `Repository <https://github.com/jcrmatos/ipaddresses>`_

**Contributing**

1. Fork the `repository`_ on GitHub.
2. Make a branch of master and commit your changes to it.
3. Ensure that your name is added to the end of the AUTHORS.rst file using the format:
``Name <email@domain.com>``
4. Submit a Pull Request to the master branch on GitHub.

.. _repository: https://github.com/jcrmatos/ipaddresses

Copyright 2009-2015 Joao Carlos Roseta Matos. Licensed under the GNU General Public License v2 or later (GPLv2+).
66 changes: 66 additions & 0 deletions appinfo.py
@@ -0,0 +1,66 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright 2009-2015 Joao Carlos Roseta Matos
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

"""Application basic information."""

# Python 3 compatibility
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# sometimes py2exe requires the following import to be commented
from __future__ import unicode_literals

# import builtins # Python 3 compatibility
import datetime as dt
# import future # Python 3 compatibility
# import io # Python 3 compatibility


APP_NAME = 'ipaddresses'
APP_VERSION = '0.0.1'
APP_LICENSE = 'GNU General Public License v2 or later (GPLv2+)'
APP_AUTHOR = 'Joao Carlos Roseta Matos'
APP_EMAIL = 'jcrmatos@gmail.com'
APP_URL = 'https://github.com/jcrmatos/ipaddresses'
APP_KEYWORDS = 'ip address private public'

# change classifiers to be correct for your application/module
CLASSIFIERS = ['Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: MacOS X',
'Environment :: Other Environment',
'Environment :: Win32 (MS Windows)',
'Environment :: X11 Applications',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved ::' + ' ' + APP_LICENSE,
'Natural Language :: English',
'Natural Language :: Portuguese',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Topic :: System :: Networking']

COPYRIGHT = 'Copyright 2009-' + str(dt.date.today().year) + ' ' + APP_AUTHOR

APP_TYPE = 'application' # it can be application or module

README_FILE = 'README.rst'
REQUIREMENTS_FILE = 'requirements.txt'

0 comments on commit dd1e042

Please sign in to comment.