Saravanan666/pypi-org huggingface dataset:
Package: ipmike
IPMikeA Python package for geolocating IP addresses using the IPMike API.InstallationTo install the package, run the following command:pipinstallipmikeYou will also need to obtain an API token from the IPMike website in order to use the package. Once you have a token, you can create an instance of theIPMikeclass and use theget_locationmethod to geolocate an IP address.UsageHere's an example of how to use the package to geolocate an IP address:fromipmikeimportIPMike# Create a new instance of the IPMike classipmike=IPMike()# Use the get_location method to geolocate an IP addressresponse=ipmike.get_location("8.8.8.8")# Print the response, which should be a JSON object containing location dataprint(response)The get_location method takes an IP address as a parameter and returns a JSON object containing location data. The API token is automatically included in the request.Contributing
Contributions to this package are welcome! If you would like to contribute, please create a new branch, make your changes, and open a pull request.License
This package is licensed under the MIT license. See the LICENSE file for more information.Inthisexample,weprovideabriefdescriptionofthepackage,instructionsforinstallingthepackage,andanexampleofhowtousethepackagetogeolocateanIPaddress.Wealsoincludesectionsoncontributingtothepackageandlicensinginformation.Thisshouldbeenoughtogetusersstartedwithusingthe`ipmike`package.
Package: ip-model
Ip-ModelA Data Structure for efficiently storing, removing and checking all Ipv4 addresses in O(1) time.Pre-requisitepytestUsageSingle Ip'sIpv4fromip_model.Ipv4importIpv4blacklist=Ipv4()To add an IP:# arg: String# returns: Trueblacklist.add("192.0.0.18")To remove an IP:# arg: String# returns: removed IPblacklist.remove("192.0.0.18")To check if an IP is present/not:# arg: String# returns: boolblacklist.is_present("192.0.0.18")Ipv6fromip_model.Ipv4importIpv6blacklist=Ipv6()To add an IP:# arg: String# returns: Trueblacklist.add("192::18")To remove an IP:# arg: String# returns: removed IPblacklist.remove("192:ffff:e034::23")To check if an IP is present/not:# arg: String# returns: boolblacklist.is_present("::5:4fed")CIDRIpv4:To Add# arg: String# returns: Trueblacklist.add_cidr("192.92.53.0/24")# arg: String# returns: Trueblacklist.add_cidr("192.92.53.0/255.255.255.252")To remove:# arg: String# returns: removed CIDRblacklist.remove_cidr("192.92.53.0/24")Ipv6:To Add# arg: String# returns: Trueblacklist.add_cidr("8653:53fe::/122/24")To remove:# arg: String# returns: removed CIDRblacklist.remove_cidr("8653:53fe::/122")Note:The tradeoff is, the call for how to handle with overlapping CIDR's must be taken by the service using the DS.
The DataStructure only performs the requested operation with the given dataIp Class (From v3.0.0)Handles both Ipv4 and Ipv6fromip_model.IpimportIpblacklist=Ip()To add an IP:# arg: String# returns: Trueblacklist.add("192.0.0.18")blacklist.add("192::18")To remove an IP:# arg: String# returns: removed IPblacklist.remove("192.0.0.18")blacklist.remove("1924::18")Exception HandlingThrowsTypeError: passing Invalid Datatype, incorrect number of argumentsThrowsInvalidIpException: When an invalid Ip is passedfromip_model.ExceptionsimportInvalidIpExceptiontry:blacklist.add("192.455.554.343")exceptInvalidIpException:print("Incorrect Ipv4 Address")# For CIDRtry:blacklist.add("192.12.65.0/16")exceptInvalidIpException:print("Incorrect CIDR")ChangeLogv3.0.0Introducing IP class
Return types for add, remove, add_cidr, remove_cidr have been changedv2.0.1Fix a bug in Ipv6v2.0.0Adding Support for Ipv6 addresses & CIDR for the samev1.1.0Adding Support for Ipv4 CIDR rangesv1.0.0Introducing Ip model with support for single Ipv4 address
Package: ipmsg
AboutAn IP Messenger(http://www.ipmsg.org) alternative for Linux, written in python.RequirementsPython 2.6 or above. Python 3 support is not included for now.DependenciesPyCryptorsaStatusOnly tested under Ubuntu 10.04 / Python 2.6.
Not compatible with IP Messager 3.x yet.InstallationTo install:sudo python setup.py install
Package: ipmt
Иструмент миграций СУБД PostgreSQLВозможнотиВерсионирование схемы БДВетвление в версияхУправление привилегиями с помощью yaml файловДокументацияhttp://ipmt.readthedocs.io/ru/latest/УстановкаДля установки выполните в консоли:$ pip install ipmtИспользованиеВыполните в консоли:# инициализация репозитория
ipmt init
# создание первой версии
ipmt create baseline
# отредактируйте файл миграции разместив SQL в
# первом аргументе db.execute функции up для
# наката миграции и в аналогичном месте функции
# down для отката миграции
vim versions/000001#baseline.py
# накат версии на указанную БД
IPMT_DSN=username@hostname/dbname ipmt up
Package: ipnb
IPython notebook are great for development and visualzing data,
however, in terms of code sharing and reusing they’re quite bad.If you want to reuse your notebook as a program or import functionality
into other modules, you have a problem. Yes, you can move your
code into a separate module but then you loose then notebook interface
and the ability to change it.This package contains several utilities to reuse the code in your
notebook without the need to export/convert it everytime.To import a notebook into another module do the following:import ipnb.importer
import my_notebookmy_notebook.some_cool_method()You can also run a notebook directly from the command line:python -m ipnb.run /path/to/my_notebook.ipynbOptionally specify ‘-s’ to print the source code to stderr before execution
starts and ‘-d’ to debug the notebook. Currently the implementation
will try to use PuDB and fallback to pdb
Package: ipnc
IPNCIndo Phone Number Checker (IPNC). Tools for checking your Indonesia phone number information.Installation & Run the ProgramSo easy.$pip3installipncexamplefromipncimportModelmod=Model()mod.get_info_cli("+6281291718019")Use as packagebesides using it with cli you can also use it as a package, look at the example belowfromipncimportModelmod=Model()foriinmod.get_info("+6281291718019"):print(i)result{
    'number_phone': '+6281351387634', 'international': '+62 813-5138-7634', 'national': '0813-5138-7634', 
    'provider': 'Telkomsel', 
    'type': 'Mobile', 
    'location': 'Indonesia', 
    'timezone': ['Asia/Jakarta']
}CreditThanks toWidhifor making an open source project. ;)
Package: ipnext.site.editablefooter
IPnext - Editable Footer, for Plone 4IntroductionThis product replaces Plone’s standard footer with one that is editable in the
Plone Control Panel, through a WYSIWYG text box, by the Site Administrator.This product is for use cases where you want to give Site Admins the
possibility of easily editing the footer without installing products which
increase the complexity of the user interface, like ContentWellPortlets.InstallationSee docs/INSTALL.txtUsageInstall the product by going to the Add-on products configlet, selecting the
EditableFooter product, and clicking on ‘Activate.Go back to the Plone Control Panel/ Site setup screen and a new entry should be
present in the Add on Configuration section, called ‘Footer settings’.OverviewA new footer viewlet replaces the old, static one. The formatted text is stored
in the Plone Registry.CreditsRigel Di Scala <zedr@ipnext.it>
IPnext - your network evolution <http://www.ipnext.it>Changelog0.1.8Minor fixes0.1.7Fixes a brown bag release (thanks zopyx)Changelog0.1dev (unreleased)Initial release
Package: ipnext.viewlet.blog
IntroductionThis product displays a relevant blog post under your content, by
looking around your site for News items with matching categories.InstallationUse Buildout. See docs/INSTALL.txtUsageInstall the product in the Plone Control Panel. If you already
have News items and Pages that are correctly categorized, you
will begin seeing a relevant blog post under each page, if
available.If the content has a Description, it will be displayed; else,
it will be generated from the Text.ConfigurationSupport for configuration is currently minimal.You can enable and disable Content types, and change the maximum
number of displayed characters for generated descriptions, in
Plone Control Panel -> Registry Configuration.ExamplesCheck out our website for a usage example:http://www.ipnext.itAuthorRigel Di Scala <zedr@ipnext.it>http://www.ipnext.itChangelog
=========0.2dev (unreleased)Initial release
Package: ipnpy
A modern, easy-to-use library for interacting with theIPN, written in Python.Key FeaturesInteraction with theIPNAPI.Creating and managing transactions.InstallingPython 3.9 or higher is requiredTo install the library, use the commandpipinstallipnpyTo install the development version, do the following:gitclonehttps://github.com/IPNTools/ipn-pycdipn-pyQuick ExampleSend transaction:fromipnpy.rpcimportEvmJsonRPCprovider=EvmJsonRPC('https://data-seed-prebsc-1-s2.binance.org:8545/')transaction=provider.send_native_token(private_key='YOUR_PRIVATE_KEY',from_address='0xdB87EE96B5D2D7F5b0e9eC400240D605f870756f',to_address='0xdB87EE96B5D2D7F5b0e9eC400240D605f870756f',amount=23000,)print(transaction)Add, replace and delete address inIPN:fromipnpy.ipnimportIPNToolsipn=IPNTools(secret_key='YOUR_SECRET_KEY')ipn.add_address('address4')ipn.replace_addresses(addresses=['address1','address2','address3'])ipn.delete_address('address3')LinksOfficial IPN siteTelegram channel
Package: ipo
ipo: Infix piping operatorDemofromipoimportipo,opi,head,write,p# Ipo makes data flows much easier to follow.ipo([5,2,3,1,4])|sorted|opi# [1, 2, 3, 4, 5]# Ipo comes with a shorthand for partial application:#   p(head)(3) is equivalent to functools.partial(head, 3)ipo([5,2,3,1,4])|p(head)(3)|list|opi# [5, 2, 3]ipo([5,2,3,1,4])|p(head)(3)|sorted|opi# [2, 3, 5]ipo([5,2,3,1,4])|sorted|p(head)(3)|list|opi# [1, 2, 3]# Much more readable than the original!#   list(itertools.islice(sorted([5, 2, 3, 1, 4]), 3))# You can also pipe to print directly…ipo([5,2,3,1,4])|sorted|p(head)(3)|list|print# [1, 2, 3]# …or to ipo's write, which prints each line of an iterable on its own line.ipo([5,2,3,1,4])|sorted|p(head)(3)|list|write# 1\n2\n3fromitertoolsimportstarmapfromipoimportfrom_csv,skip,to_csv,before,write,p# Ipo is ideally suited for working with CSV data.ipo("""#Voltage,Current12,18,2220,6""".strip().split())|from_csv|p(skip)(1)|\p(starmap)(lambdav,a:(v,a,float(v)*float(a)))|\to_csv|p(before)(["#Voltage,Current,Power"])|write# #Voltage,Current,Power# 12,1,12.0# 8,2,16.0# 220,6,1320.0fromipoimportread,write,p# Most ipo chains that work over iterable data are lazy by default. You can load huge files,# process them and write the results to another file.withopen("bigfile.txt")asf_in,open("processed.txt")asf_out:read(file=f_in)|p(map)(some_preprocessing)|\p(map)(some_advanced_function)|\p(map)(some_formatting)|p(write)(file=f_out)
Package: ip-object-browser
ip_object_browserUsing IPython? Did a REST endpoint return 5 MB of JSON data? Can't bother to save the response to a file?
Browse it with your keyboard straight from the console!UsageIn IPython, press<C-T>to browse the last output object (_).Use vi-likehjklor arrow keys to navigate.Press/to begin a textual search.
Confirm with enter.
Jump to next occurrence withn.Press<C-C>orqto exit.Usage from codefromip_object_browserimportviewview({})Installationpipinstallip-object-browser
cat<<EOF >>~/.ipython/profile_default/ipython_config.pyc = get_config()c.InteractiveShellApp.exec_lines.append("try:\n    %load_ext ip_object_browser\nexcept ImportError: pass")EOFImplementationBased on theurwidlibrary,
adapted from thetreesample example.TODOtextual search functionalityfix jump to previous (N)status line with current path in objectpath-based navigationoutput current path on exit
Package: iPoLNG
iPoLNGThis is an unsupervised model for the integrative analysis of single-cell multiomics data, coded in the deep universal probabilistic programPyro.DependencyThis package relies onPyTorchto run. Please install the correct CUDA version that matches your Operating System onthe official website. The exact version of the dependent packages can be found inrequirements.txt.InstallationPlease install theiPoLNGpackage using the following command in the command line:pip install iPoLNGUsageThe main function in this package isiPoLNG.iPoLNG. The input consists of the following:W: a dictionary with each value beingtorch.tensor. Each value represents the count matrix for one data modality, with rows being cells and columns being features.num_topics: the number of topics or latent factors.alpha_k: The shape parameter for the inverse gamma distribution in the prior. The default value is1.integrated_epochs: The number of epochs to run in the stochastic variational inference algorithm for iPoLNG. The default value is3000.warmup_epochs: The number of epochs to run in the stochastic variational inference algorithm for PoLNG (as a warm-up step). The default value is3000.lr: The learning rate in the stochastic variational inference algorithm. The default value is0.1. You may adjust it according to the characteristics of the data.seed: The random seed used in the iPoLNG model. The default value is42.verbose: A boolean value. Set toTrueif you would like to show the learning progress in the model. The default value isTrue.Here's the example code for a quick start:from iPoLNG import iPoLNG
import torch
torch.set_default_tensor_type("torch.cuda.FloatTensor" if torch.cuda.is_available() else "torch.FloatTensor") # enable GPU acceleration if possible
W = iPoLNG.load_example_data()
model = iPoLNG.iPoLNG(W, num_topics=20, integrated_epochs=300, warmup_epochs=500, seed=42, verbose=True)
result = model.Run()resultis a dictionary consisting of the following keys:L_est: a cell by latent factor matrix, interpreted as the low-dimensional representation of the cells.Ls_est: a dictionary consisting of several cell by latent factor matries, each interpreted as the low-dimensional representation of the cells in the corresponding individual data modality.Thetas_est: a dictionary consisting of several latent factor by feature matries, each interpreted as the feature scores in the corresponding individual data modality.time: the running time for the algorithm (including the warm-up step) in seconds.loss: a dictionary consisting of the loss (i.e. negative ELBO in the stochastic variational inference algorithm) for individual data modality in the warm-up step and integrated data in the iPoLNG model.alpha0s: a dictionary consisting of the hyperparameters that control the levels of noise across different data modalities in the iPoLNG model.Please refer tothe vignettefor the outputs of the example code.ReferenceTo be completed.Bug reportsIf you encounter any problem when using this package, please feel free to open anissue.
Package: ipoly
ipolyIntroductionipoly(Polymorphic inputs) is a Python package aimed at making various data science tasks easier for users. With ipoly, data scientists can perform tasks such as web scraping, creating models with Tensorflow, visualizing data, handling exceptions, managing various file types, and sending emails, notifications, and generating PDF or LaTeX documents all within Python. The package aims to provide a simple and intuitive interface for these tasks, making it easier for data scientists to focus on what really matters: the data.InstallationpipinstallipolySome FeaturesInput polymorphismType checkingDynamic input capturingWeb scrapingModel creation with TensorflowData visualizationException handlingEasy handling of file typesSending emails and notificationsGenerating PDF or LaTeXDocumentationFurther documentation can be foundhere.Requirementsipoly requires Python 3.10 or higher.ContributingWe would like to extend our thanks to the following contributors for helping to make ipoly better:If you'd like to contribute to the development of ipoly, please see thecontributing guidelines.Licenseipoly is licensed under theMIT License.
Package: ipoperate
# 简介完成与ip地址和网段相关的一系列操作# 安装pip install ipoperate# 功能列表## ipoperateIP地址与二进制间转换网段与二进制间转换IP地址与整数间转换网段与地址范围的转换网段合并为网段网段的掩码格式和CIDR格式之间转换将连续的IP地址合并为范围# 工具## iprange将连续的IP地址合并为范围#用法##iprangecat list_file | iprange或者iprange list_file
Package: ipopt
Ipopt(Interior Point OPTimizer, pronounced eye-pea-opt) is a software package
for large-scale nonlinear optimization. Ipopt is available from theCOIN-ORinitiative, under the Eclipse Public License (EPL).cyipoptis a Python wrapper around Ipopt. It enables using Ipopt from the
comfort of the Python programming language.StatusAnacondaPyPIRead the DocsTravis CIAppveyorHistoryThis repository was forked from https://bitbucket.org/amitibo/cyipopt and is
now considered the primary repository.The fork includes a SciPy-style
interface and ability to handle exceptions in the callback functions.InstallationWe recommend using conda to install cyipopt on Linux, Mac, and Windows:conda install -c conda-forge cyipoptOtherinstallation optionsare present in the documentation.Licensecyipopt is open-source code released under theEPLlicense, see theLICENSEfile.ContributingFor bug reports, feature requests, comments, patches use the GitHub issue
tracker and/or pull request system.
Package: ipos
iposDeveloper GuideSetup# create conda environment$mambaenvcreate-fenv.yml# update conda environment$mambaenvupdate-nipos--fileenv.ymlInstallpipinstall-e.# install from pypipipinstalliposnbdev# activate conda environment$condaactivateipos# make sure the ipos package is installed in development mode$pipinstall-e.# make changes under nbs/ directory# ...# compile to have changes apply to the ipos package$nbdev_preparePublishing# publish to pypi$nbdev_pypi# publish to conda$nbdev_conda--build_args'-c conda-forge'UsageInstallationInstall latest from the GitHubrepository:$pipinstallgit+https://github.com/dsm-72/ipos.gitor fromconda$condainstall-cdsm-72iposor frompypi$pipinstalliposDocumentationDocumentation can be found hosted on GitHubrepositorypages. Additionally you can find
package manager specific guidelines oncondaandpypirespectively.
Package: ipp
Intel (R) Integrated Performance Primitives (Intel(R) IPP) provides developers with high-quality, production-ready, low-level building blocks for image processing, signal processing, and data processing (data compression and decompression) applications. This package provides C programming language interfaces. Intel IPP C language interfaces can be called from applications written in either C or C++, as well as in any other language that can reference a C interface. See also:Release notes (https://www.intel.com/content/www/us/en/developer/articles/release-notes/release-notes-for-oneapi-integrated-performance-primitives.html).One of many Intel(R) accelerated Python packages and performance library runtimes available onPyPI, and as part ofIntel(R) Distribution for Python.For latest release updates and security notifications, pleasesubscribeto the Intel(R) Distribution for Python Community forum.Free to use and redistribute pursuant to theIntel Simplified Software License
Package: ippanel
IPPanel SMS api SDKInstallationyou can install this package with either pip:python-mpipinstallippanelor running bellow command after downloading source:pythonsetup.pyinstallExamplesFor using sdk, you have to create a client instance that gives you available methods on APIfromippanelimportClient# you api key that generated from panelapi_key="api-key"# create client instancesms=Client(api_key)...Credit check# return float64 type credit amountcredit=sms.get_credit()Send one to manyFor sending sms, obviously you needoriginatornumber,recipientsandmessage.message_id=sms.send("+9810001",# originator["98912xxxxxxx"],# recipients"ippanel is awesome"# message"description"# is logged)If send is successful, a unique tracking code returned and you can track your message status with that.Get message summerymessage_id="message-tracking-code"message=sms.get_message(message_id)print(message.state)# get message statusprint(message.cost)# get message costprint(message.return_cost)# get message paybackGet message delivery statusesmessage_id="message-tracking-code"statuses,pagination_info=sms.fetch_statuses(message_id,0,10)# you can loop in messages statuses listforstatusinstatuses{print("Recipient:%s, Status:%s"%(status.recipient,status.status))}print("Total: ",pagination_info.total)Inbox fetchfetch inbox messagesmessages,pagination_info=sms.fetch_inbox(0,10)formessageinmessages{print("Received message%sfrom number%sin line%s"%(message.message,message.sender,message.to))}Pattern createFor sending messages with predefined pattern(e.g. verification codes, ...), you hav to create a pattern. a pattern at least have a parameter.pattern_variables={"name":"string","code":"integer",}code=sms.create_pattern(r"%name% is awesome, your code is%code%","description",pattern_variables,"%",False)print(code)Send with patternpattern_values={"name":"IPPANEL",}message_id=sms.send_pattern("t2cfmnyo0c",# pattern code"+9810001",# originator"98912xxxxxxx",# recipientpattern_values,# pattern values)Error checkingfromippanelimportHTTPError,Error,ResponseCodetry:message_id=sms.send("9810001",["98912xxxxx"],"ippanel is awesome")exceptErrorase:# ippanel sms errorprint(f"Error handled => code:{e.code}, message:{e.message}")ife.code==ResponseCode.ErrUnprocessableEntity.value:forfieldine.message:print(f"Field:{field}, Errors:{e.message[field]}")exceptHTTPErrorase:# http error like network error, not found, ...print(f"Error handled => code:{e}")
Package: ipparser
IPParserThe IPParser Python library was created to simplify accepting IP addresses, DNS names, and target / host information in security or network based tooling.User inputs are parsed to provide an iterable list for further action. If called withresolve=True, ipparser will attempt to perform an "A" record lookup and return the first resolved address associated with the host.Inputs:IPParser currently accepts the following user inputs:Single IP (192.168.1.10)IP ranges (192.168.1.1-55)Multiple IP's (192.168.1.3,192.168.1.7,m8sec.dev)CIDR Ranges /8-/32 (192.168.1.0/24)URL's (https://m8sec.dev)IP:Port (192.168.1.1:8080)DNS Names (m8sec.dev)TXT files (Containing any of the items listed)Nmap XML ReportsRead from STDINInstallpip3installipparserORgitclonehttps://github.com/m8sec/ipparsercdipparser
python3setup.pyinstall(Primary) Usage:The IPParser function can be called with the following arguments (shown with their default values):open_ports=False- Return IP:Port notation for all open ports found (Nmap XML only)exit_on_error=True- Exit on error while parsing user input.resolve=False- Resolve any DNS names identified, to IPv4 addresses, and append to output.ns=[]- Define name servers for DNS lookups.ExamplesStandard Usage>>>fromipparserimportipparser>>>ipparser('192.168.1.3-5')['192.168.1.3','192.168.1.4','192.168.1.5']>>>ipparser('yahoo.com',resolve=True)['74.6.143.26']>>>ipparser('192.168.1.1,yahoo.com')['192.168.1.1','yahoo.com']Argparse Integration - Required Positional Argument:fromipparserimportipparserfromargparseimportArgumentParserargs=ArgumentParser(description='ipparser integration with argparse')args.add_argument(dest='positional_host',nargs='+',type=lambdax:ipparser(x,resolve=False),help='Host Input')args=args.parse_args()Namespace(positional_host=[['192.168.1.1']])
Package: ipp-crypto-devel
Intel® Integrated Performance Primitives Cryptography (Intel® IPP) is a secure, fast and lightweight library of building blocks for cryptography, highly-optimized for various Intel® CPUs.
See also:Release notes (https://www.intel.com/content/www/us/en/developer/articles/release-notes/release-notes-for-oneapi-integrated-performance-primitives.html)One of many Intel(R) accelerated Python packages and performance library runtimes available onPyPI, and as part ofIntel(R) Distribution for Python.For latest release updates and security notifications, pleasesubscribeto the Intel(R) Distribution for Python Community forum.Free to use and redistribute pursuant to theIntel Simplified Software License.