Skip to main content

Contoh package Python buatan sendiri

Project description

ipchecker

Package Python sederhana untuk memeriksa IP address.

Fitur

  • Cek apakah IP valid
  • Cek apakah IP private
  • Cek apakah IP termasuk dalam subnet
  • Ambil IP publik dari internet

Instalasi

  • pip install ipchecker

Contoh Penggunaan

from ipchecker import is_valid_ip, is_private_ip, is_in_subnet, get_public_ip

print(is_valid_ip("192.168.1.1"))
print(is_private_ip("8.8.8.8"))
print(is_in_subnet("192.168.1.10", "192.168.1.0/24"))
print(get_public_ip())

setup.py

from setuptools import setup, find_packages

setup(
    name='ipchecker',
    version='0.1.0',
    description='Simple IP address checker utility',
    author='Nama Kamu',
    author_email='email@kamu.com',
    packages=find_packages(),
    install_requires=[
        'requests'
    ],
    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
    ],
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipcuykeh-0.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipcuykeh-0.1.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file ipcuykeh-0.1.0.tar.gz.

File metadata

  • Download URL: ipcuykeh-0.1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for ipcuykeh-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5da06f379f096bb975dc6d1af320a58baa1a517c93850cdd49f31c2e665aaab1
MD5 6251e51d436d00dc150de9e657c197d6
BLAKE2b-256 e2863b1452b88ff55babec4e5fecb0897cf72b2ffc4886256472705df1b28160

See more details on using hashes here.

File details

Details for the file ipcuykeh-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ipcuykeh-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for ipcuykeh-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b988133ea0d34346ca4d8b5bcf5bb3d120866b3f727d86f0c13a918cabf57957
MD5 73ed3ecafd2b3ecc8bf090c4c75208dc
BLAKE2b-256 58b176276ce40c581d0293c6f4985bc950ef8d6c24ecf53bd9fd2518cbfd199f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page