Saravanan666/pypi-org huggingface dataset:
Package: python-iArt
iArt: Imputation-Assisted Randomization TestsAuthorsJiawei Zhang*, Siyu Heng*, and Yang Feng (* indicates equal contribution)MaintainersJiawei Zhang (Email:jz4721@nyu.edu), Siyu Heng (Email:siyuheng@nyu.edu), and Yang Feng (Email:yang.feng@nyu.edu)DescriptioniArt (Imputation-Assisted Randomization Tests) is a Python package designed for conducting finite-population-exact randomization tests in design-based causal studies with missing outcomes. It offers a robust solution to handle missing data in causal inference, leveraging the potential outcomes framework and integrating various outcome imputation algorithms.InstallationTo installiArt, run the following command:pipinstallpython-iArtUsageHere is a basic example of how to use iArt:importnumpyasnpimportiArtZ=[1,1,1,1,0,0,0,0]X=[[5.1,3.5],[4.9,np.nan],[4.7,3.2],[4.5,np.nan],[7.2,2.3],[8.6,3.1],[6.0,3.6],[8.4,3.9]]Y=[[4.4,0.5],[4.3,0.7],[4.1,np.nan],[5.0,0.4],[1.7,0.1],[np.nan,0.2],[1.4,np.nan],[1.7,0.4]]result=iArt.test(Z=Z,X=X,Y=Y,L=1000,verbose=True)print(result)Detailed usage can be found hereReadDocFeaturesConducts finite-population-exact randomization tests.Handles missing data in causal inference studies.Supports various outcome imputation algorithms.Offers covariate adjustment in exact randomization tests.ContributingYour contributions to iArt are highly appreciated! If you're looking to contribute, we encourage you to open issues for any bugs or feature suggestions, or submit pull requests with your proposed changes.Setting Up a Development EnvironmentTo set up a development environment for contributing to iArt, follow these steps:python-mvenvvenvsourcevenv/bin/activatepipinstall-rrequirements.txt
pythonsetup.pyinstallThis creates a virtual environment (venv) for Python and activates it, allowing you to work on the package without affecting your global Python environment.LicenseThis project is licensed under the MIT LicenseCitationIf you use iArt in your research, please consider citing it:@misc{heng2023designbased,
      title={Design-Based Causal Inference with Missing Outcomes: Missingness Mechanisms, Imputation-Assisted Randomization Tests, and Covariate Adjustment}, 
      author={Siyu Heng and Jiawei Zhang and Yang Feng},
      year={2023},
      eprint={2310.18556},
      archivePrefix={arXiv},
      primaryClass={stat.ME}
}
Package: python-ibc
python-ibcA library used to condense down-chain queries in an easy-to-use way.Includes:-Coingeckotokenpricequery
-chain_apis(rest,rpc,denom,logopng,twitter,explorers,staking&govpages,coingecko_id,&chain_registery)Used byUsed in / for:https://github.com/Reecepbcups/cosmos-validator-income-tracker(prices, queries, etc.)https://github.com/Reecepbcups/cosmos-governance-bothttps://github.com/Reecepbcups/cosmos-balance-botExample usagefrompyibc_apiimportget_chain,ChainInfoinfo:ChainInfoinfo=get_chain("juno")print(info)# gets chain data# Returns:# class ChainInfo:#     '''Object to track important data about a chain'''#     name: str#     denom: str#     coingecko_id: str#     bech32_prefix: str#     rest_root: str#     rpc_root: str#     twitter: str#     logo: str#     chain_registry: str#     explorers: dictfrompyibc_chain.validatorsimportget_latest_validator_set_sortedforidx,op_addrinenumerate(get_latest_validator_set_sorted(info.rest_root,bondedOnly=True),1):print(idx,op_addr,vals[op_addr])ifidx>10:breakfromcosmpy_priceimportget_priceprint(get_price(['juno-network',"cmdx"]))# print(get_price('juno-network')) # also works
Package: python-ibmcclient
python-ibmcclient is a Python library to communicate with HUAWEIiBMCbased systems.The goal of the library is to be extremely simple, small, have as few
dependencies as possible and be very conservative when dealing with BMCs
by access HTTP REST API provided by HUAWEIiBMCbased systems.Currently, the scope of the library has been limited to supportingOpenStack Ironic ibmc driverRequirementsPython 2.7 and 3.4+InstallationFrom PyPi:$pipinstallpython-ibmcclientor$easy_installpython-ibmcclientOr from source:$pythonsetup.pyinstallGetting StartedPlease follow theInstallationand then run the following:from__future__importprint_functionfrompprintimportpprintimportibmc_clientfromibmc_clientimportconstants# ibmc serveraddress="https://example.ibmc.com"# credentialusername="username"password="password"# disable certification verifyverify=Falsewithibmc_client.connect(address,username,password,verify)asclient:# get systemsystem=client.system.get()print('Power State: ')pprint(system.power_state)print('Boot Sequence: ')pprint(system.boot_sequence)print('Boot Source Override:')pprint(system.boot_source_override)# reset systemclient.system.reset(constants.RESET_FORCE_RESTART)# set boot source overrideclient.system.set_boot_source(constants.BOOT_SOURCE_TARGET_PXE,constants.BOOT_SOURCE_MODE_BIOS,constants.BOOT_SOURCE_ENABLED_ONCE)
Package: python-icat
python-icat – Python interface to ICAT and IDSThis package provides a collection of modules for writing Python
programs that access anICATservice using the SOAP interface.  It
is based on Suds and extends it with ICAT specific features.DownloadThe latest release version can be found in thePython Package Index (PyPI).DocumentationSee theonline documentation.Example scripts can be found in doc/examples.  This is mostly an
unsorted collection of test scripts that I initially wrote for myself
to try things out.Almost all scripts use example_data.yaml as input for test data.  Of
course for real production, the input will come from different
sources, out of some workflow from the site.  But this would be
dynamic and site specific and thus not suitable, neither for testing
nor for the inclusion into example scripts.  So its easier to have
just one blob of dummy input data in one single file.  That is also
the reason why the example scripts require PyYAML.Copyright and LicenseCopyright 2013–2023
Helmholtz-Zentrum Berlin für Materialien und Energie GmbHLicensed under theApache License, Version 2.0 (the “License”); you
may not use this file except in compliance with the License.Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.  See the License for the specific language governing
permissions and limitations under the License.
Package: pythonic-bst
PYTHONIC BSTA minimalistic, unbalanced Binary Search Tree written in pure Python. Originally developed as an example in a Python course.The classBSTworks almost like adictwith sorted keys, and supports slicing and broadcasting. The methods exploitlazy executionwhen possible, all relevant operations are $O(log)$ complexity.BASIC USAGEInstall the latest stable version from PyPi:~$pipinstallpythonic-bstthenfrombstimportBSTCreate an empty BST:foo = BST()Add/update an item:foo[k] = vRemove an existing item:rm foo[k]Count items:len(foo)Check wether key $k$ is present:if k in foo: ...Check if the BST is not empty:if foo: ...Iterate forward:for k, v in foo: ...Iterate backward:for k, v in reversed(foo): ...Generate all the keys:foo.keys()Generate all the values:foo.values()Generate all $(k, v)$ pairs:foo.items()Standard BST-esque visits:foo.visit_in_order(),foo.visit_pre_order(),foo.visit_post_order()INITIALIZATION / CONVERSIONA BST can be initialized from a sequence of $(k, v)$ pairs, like another BST's iterator.Duplicate a BST:bar = BST(foo)Initialize a BST from a generic sequence of pairs:foo = BST([(18, 5), (23, 10)])A dictionary may be used directly to initialize a BST and vice-versa.Initialize from a dictionary:foo = BST(baz)Create a dictionary from a BST:baz = dict(foo)SLICING / BROADCASTINGNotes:Slices are half-open. In[k1:k2], keyk1must be present in the BST, keyk2is never included. Thestepcan be+1(default) forforwardand-1forbackward.Iterate forward on keys $k \in [k_1, k_2[$:for k, v in foo[k1:k2]: ...Iterate backward on keys $k \in ]k_1, k_2]$:for k, v in foo[k2:k1:-1]: ...Update the first three items with keys $k \in [k_1, k_2[$:foo[k1:k2] = [v1, v2, v3]Set all items with keys $k < k_2$ to a specific value:foo[:k2] = vRemove item with key $k_1$ and all subsequent ones:rm foo[k1:]PERFORMANCESTheheight(longest path from the root), thedensity(percentage of internal nodes that have two successors), and theunbalance(relative difference between the longest and the shortest path from the root) may be accessed as properties, although at asignificantcost.foo=BST()forninrange(1_000_000):foo[random.random()]=nprint(foo.height,foo.density,foo.unbalance)# Initializing from known data creates an optimized structurebar=BST(foo)print(bar.height,bar.density,bar.unbalance)may yield something like490.49971430413936560.8775510204081632200.90735036344597520.05TESTINGSome unsystematic unit test has been implemented usingpytestandCoverage.py.LICENSECopyright © 2023 by Giovanni SquilleroDistributed under aZero-Clause BSD License(SPDX:0BSD), which allows unlimited freedom with the software without the requirement to include legal notices. See the full text for details.
Package: pythonic-dbm
PydbmPydbm is a more pythonic way to use dbm.It provides a fast, simple, and convenient facility for your small-scale Python projects that need a database.InstallationPydbm requires Python 3.8+ and can be easily installed using most common Python
packaging tools. We recommend installing the latest stable release from PyPI with pip:$pipinstallpythonic-dbmPydbm is a database management system that uses the dbm standard library from Python to provide interfaces to Unix databases in a pythonic way.
It is designed for small-scale projects and is a light database, meaning it is not as feature-rich or powerful as other types of databases, such as relational databases.Pydbm is particularly useful for applications that need to store and retrieve simple data structures quickly,
and is well-suited for developers working on small-scale projects that do not require the full functionality of a more complex database management system.Pydbm is also an object-relational mapper (ORM), which allows developers to work with their database using objects and classes rather than raw commands.
This can make it easier to manage and interact with the database in their application in a more pythonic way.Here is a quick example;frompydbmimportDbmModel__all__=("UserModel",)classUserModel(DbmModel):name:strsurname:strage:intusername:strclassConfig:unique_together=("username",)defget_fullname(self)->str:returnf"{self.name}{self.surname}"user=UserModel(name="Hakan",surname="Celik",age=26,username="hakancelik")user.save()hakan_user=UserModel.objects.get(id=user.id)asserthakan_user.name=="Hakan"asserthakan_user.surname=="Celik"asserthakan_user.age==26asserthakan_user.username=="hakancelik"
Package: python-icq-bot
🐍 python-icq-botPure Python interface for ICQ Bot API. Bot cookbook for Humans.Table of contentsIntroductionGetting startedInstallingExampleStarting your botGet in touchIntroductionThis library provides complete ICQ Bot API 1.0 interface and compatible with Python 2.7, 3.4, 3.5, 3.6 and 3.7.Getting startedCreate your own bot by sending the /newbot command toMegaBotand follow the instructions.Note a bot can only reply after the user has added it to his contact list, or if the user was the first to start a dialogue.InstallingInstall using pip:pipinstall--upgradepython-icq-botInstall from sources:gitclonehttps://github.com/icq-bot/python-icq-bot.gitcdpython-icq-bot
pythonsetup.pyinstallExampleSee the project example directory.Some ICQ bots you can play with right now:Chat ID Bot[source code]Echo Bot[source code]Giphy Bot[source code]Hash Bot[source code]Meme BotOAuth Bot[source code]Reformat Bot[source code]Stickers BotURL Decode Bot[source code]URL Encode Bot[source code]Vinci BotWolframAlpha Bot[source code]Starting your botWithout Virtualenv:pythonmy_bot.pyUsing Virtualenv:# Initializing Virtualenv.virtualenvvenv# Activating Virtualenv.sourcevenv/bin/activate# Installing python-icq-bot library into local venv directory.pipinstall--upgradepython-icq-bot# Starting your bot.pythonmy_bot.py# Deactivating virtualenv.deactivateGet in touchpython-icq-bot channel
Package: pythonic-spring
pythonic-spring用python实现spring特性, 已集成fastapi, 可以像springboot那样统一管理类的生成和调用, 相比较原先python通过在类声明外面整实例的情况, 防止了写代码时循环调用的风险, 也可以为java中比较常见的多态和继承在python中的实战化做基底当前最新版本 0.0.1.3:两个装饰器:Service: 装饰class, 根据spring.json自动生成bean, 并通过BeanFactory注册Autowired: 装饰__init__方法, 根据bean_modules和bean_ids自动注入注册的bean到类中SpringApplication:构建即使用, 支持输入通配扫描代码并延迟import, 提供了bean_id和type两种找bean的方式spring.json:扫描并反序列, 供BeanFactory读取使用方法安装pip包pip install pythonic-spring创建实例from pythonicspring import SpringApplication
app = SpringApplication()声明需要bean化的类, 使用类装饰器:Service声明类内需要引用的bean, 在__init__方法上使用装饰器:Autowiredfrom pythonicspring import Service
from pythonicspring import Autowired
@Service
class ClassA:

    class_b: ClassB = None
    class_c: ClassC = None
    
    @Autowired(bean_modules={"class_b": ClassB}, bean_ids={"class_c": "ClassCCC"})
    def __init__(self):
        pass
        
    def foo(self):
        result = class_b.spam()
        pass一个例子:test/testApp.py
Package: pythonic-sqlalchemy-query
Thepythonic_sqlalchemy_query moduleprovides concise, Pythonic query syntax for SQLAlchemy. For example, these two queries produce identical results:pythonic_query=session.User['jack'].addresses['jack@google.com']traditional_query=(# Ask for the Address...session.query(Address).# by querying a User named 'jack'...select_from(User).filter(User.name=='jack').# then joining this to the Address 'jack@google.com`.join(Address).filter(Address.email_address=='jack@google.com')Installationpip install pythonic_sqlalchemy_queryUse with SQLAlchemyFor most cases:frompythonic_sqlalchemy_queryimportQueryMakerSession# Construct an engine as usual.engine=create_engine(...)# Create a session aware of this module.Session=sessionmaker(bind=engine,class_=QueryMakerSession)session=Session()# After defining some declarative classes, query away:forresultinsession.User['jack'].addresses:# Do some processing on result...Theexamplesprovide full, working code.Use with Flask-SQLAlchemyFor most cases:frompythonic_sqlalchemy_query.flaskimportSQLAlchemyPythonicQueryapp=Flask(__name__)db=SQLAlchemyPythonicQuery(app)# After defining some declarative classes, query away:forresultinUser['jack'].addresses:# Do some processing on result...Theexamplesprovide full, working code.DocumentationSee thepythonic_sqlalchemy_query module.LicenseThis software is distributed under the terms of theMIT license.
Package: pythonidae
PythonidaePythonidae is Fast, minimalist web framework forPython'Hello, World!' Applicationfrom pythonidae import Pythonidae, Path, HttpResponse

app = Pythonidae()

def helloWorld(req):
		return  HttpResponse(req, '<h1>Hello, World!</h1>', content_type='text/html')

app_routes = [
	Path('/', helloWorld)
]

app.set_routes(app_routes)

# Only Development Not Use Production
from wsgiref.simple_server import make_server	
make_server('localhost', 8000, app).serve_forever()'Simple Rest API' Applicationfrom pythonidae import Pythonidae, Path, JsonResponse

app = Pythonidae()

def helloWorld(req):

return JsonResponse(req, {
	'user':  'thehelkaproject',
	'github':  'https://github.com/thehelkaproject'
})

app_routes = [
	Path('/', helloWorld)
]

app.set_routes(app_routes)

# Only Development Not Use Production
from wsgiref.simple_server import make_server
make_server('localhost', 8000, app).serve_forever()ContributinggithubLicensePython LicensePythonidae License
Package: python-identitykeys
Python Identity KeysThis package allows you to generate public-private key pairs and use them to sign and validate signatures.RequirementsPython 3.4+Installationpip installYou can install the package hosted on PyPi by using pip:pipinstallpython-identitykeysThen import the package:import identitykeysUsage GuideGenerate Keysprivate_key, public_key = identitykeys.generate_key_pair()
print(private_key.to_string(), " - ", public_key.to_string())Sign Messagemessage = b'hello'
signature = private_key.sign(message)
print(signature.to_string())Validate Messageresult = public_key.verify(signature, message)
print(result.to_string())Harmony Connect DocumentationThis package is built to help you use theFactom Signing Standardon the Factom blockchain. To learn how to easily write to the Factom Blockchain, please visit the Harmony Connectdocumentation.You can create a free account atFactom.com.
Package: pythonids
The ‘pythonids‘ package provides the enumeration of Python syntaxes and the
categorization of Python implementations.
This enables the development of fast and easy portable generic code for arbitrary platforms in IT and IoT landscapes
consisting of heterogeneous physical and virtual runtime environments.The current supported syntaxes arePython2.7+andPython3for the Python implementations:CPythonIPython (based on CPython)IronPythonJythonPyPySoon:MicroPythonCircuitPythonThe current supported platforms are:Linux, BSD, Unix, OS-X, Cygwin, and Windowsx86, amd64, arm32/armhf, arm64/aarch64Servers, Workstations, Embedded SystemsDatacenters, public and private Clouds, IoTOnline documentation:https://pythonids.sourceforge.io/Runtime-Repository:PyPI:https://pypi.org/project/pythonids/Install:pip install pythonids, see also section ‘Install’ of the online documentation.Downloads:sourceforge.net:https://sourceforge.net/projects/pythonids/files/bitbucket.org:https://bitbucket.org/acue/pythonidsgithub.com:https://github.com/ArnoCan/pythonids/pypi.org:https://pypi.org/project/pythonids/Project DataPROJECT: ‘pythonids’MISSION: Canonical numeric platform IDs for the core Python environment.VERSION: 00.01RELEASE: 00.01.040STATUS: betaAUTHOR: Arno-Can UestuensoezCOPYRIGHT: Copyright (C) 2016-2019 Arno-Can Uestuensoez @Ingenieurbuero Arno-Can UestuensoezLICENSE: Artistic-License-2.0 + Forced-Fairplay-ConstraintsRuntime EnvironmentFor a comprehensive list refer to the documentation.Python Syntax SupportPython2.7, and Python3Python Implementation SupportCPython, IPython, IronPython, Jython, and PyPyOS on Server, Workstation, Laptops, Virtual Machines, and ContainersLinux: AlpineLinux, ArchLinux, CentOS, Debian, Fedora, Gentoo, OpenSUSE, Raspbian, RHEL, Slackware, SLES, Ubuntu, …BSD: DragonFlyBSD, FreeBSD, NetBSD, OpenBSD, GhostBSD, TrueOS, NomadBSDOS-X: Snow LeopardWindows: Win10, Win8.1, Win7, WinXP, Win2019, Win2016, Win2012, Win2008, Win2000WSL-1.0: Alpine, Debian, KaliLinux, openSUSE, SLES, UbuntuCygwinUNIX: Solaris10, Solaris11Minix: Minix3ReactOSNetwork and SecurityNetwork Devices: OpenWRTSecurity: KaliLinux, pfSense, BlackArch, ParrotOS, PentooOS on Embedded DevicesRaspberryPI: ArchLinux, CentOS, OpenBSD, OpenWRT, RaspbianASUS-TinkerBoard: ArmbianBy special modules e.g. for Adafruit Trinket M0: CircuitPython, MicroPythonCurrent ReleaseMajor Changes:Initial version.ToDo:AIXMicroPython, CircuitPythonStackless Pythontest OpenBSD on rpi3test Windows10IoT-Core
Package: python-iglobal
Python iGlobal# IntroductionThis library provides a python interface for the iGlobalStores API.# Basic Usage```pythonimport iglobalapi = iglobal.Api(store_id="<store_id>", secret_key="<secret_key>")# Fetch all iGlobal international Order Numbersorders = api.all_orders()# Fetch Order Numbers from certain dateorders = api.order_numbers(since_date='20151101')# Fetch Order Details of specific orderorder = api.order_details(order_id='999-99999')# Update an Order with a new Merchant Order IDresponse = api.update_merchant_order_id(order_id="123-1234", merchant_order_id="123456")```Responses are returned as Python namedtuples decoded from JSON. Non-200 responses from the API will raise an iGlobalException.# TestingTo run the unit tests:```python test.py```
Package: python-igraph
Python interface to the igraph high performance graph
library, primarily aimed at complex network research and analysis.This package is deprecated; use the igraph package instead. This package will
be kept in sync with igraph until Sep 1, 2022 and it will not receive any
updates after Sep 1, 2022.Graph plotting functionality is provided by the Cairo library, so make
sure you install the Python bindings of Cairo if you want to generate
publication-quality graph plots. You can try eitherpycairoorcairocffi,cairocffiis recommended because there were bug reports affecting igraph
graph plots in Jupyter notebooks when usingpycairo(but not withcairocffi).
Package: python-image-complete
Thepython-iamge-completepackage allows you to check for various
image types to check whether the image is complete or not. For doing
this, it looks for EOF (end of file) markers in the files or compares
the stored file length against the actual file length.
Can also operate on bytes or BytesIO objects.Supported file formats:BMP (extension: .bmp)GIF (extension: .gif)JPG (extension: .jpg, .jpeg)PNG (extension: .png)WebP (extension: .webp)Changelog0.0.5 (2023-04-17)added support forlenient modeviastrictandcheck_sizeparameters0.0.4 (2023-03-30)added support for determining completeness of bytes or BytesIO objects rather than just file namesaddedis_XYZmethods that determine whether a file/bytes/BytesIO represents file typeXYZ0.0.3 (2023-03-28)added support for: WebP0.0.2 (2020-01-13)added support for: BMP0.0.1 (2019-04-17)initial releasesupport for: GIF, JPG, PNG
Package: pythonImageConverter
PIC - pythonImageConverterA lightweight and easy to use image type converter. Built in Python as a deliverable for my Capstone project.InstallationpipinstallpythonImageConverterUsageFor single pictures:pic[input file name] [output file name]For entire directories:pic[directory name] [output file type]To launch the GUI:picGUIExamplesCLISingle Filespictest.pngtest.jpgDirectoriespic./pngGUIchoosing ZIP archives as a sourceBecause zip archives are treated like single objects do not select directory:Press browse and then select the archive just as you would an individual file:Supported Image typesBMPDIBEPSICNSICOIMJPEGJPEG 2000MSPPCXPNGPPMSVGSGITGAXBM
Package: python-imagemanipulating
Python ImageManipulatingPython ImageManipulating is a Python library to ease dealing with images and manipulating them. It was originally meant for discord.py developers, however I do not advise to use this library, as it is not async, and your bot will freeze if you have many requests. I recommend however, using this library in an API, and then from your bot code, send requests to the API.InstallationUse the package managerpipto install discord.py-images.pipinstallpython-imagemanipulatingUsagefrompython_imagemanipulatingimportEffectsurl='enter your url here'flipped_image_bytes=Effects().flip(url)ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: python-imagesearch
Python-ImageSearchit's a wrapper around pyautogui and opencv2, to allow you to easily add cross-platform image searching capabilities
to your project.See the documentation for examples. If you have any questions feel free to contact me.Documentation :https://brokencode.io/how-to-easily-image-search-with-python/This is the currently maintained package, so if you've come fromhttps://pypi.org/project/python-imagesearch-drov0/you are at the right placeEasy Example:Install:pip install python-imagesearchYou may need to install dependencies depending on your OS:Linux :sudo pip3 install python3-xlib
sudo apt-get install scrot python3-tk python3-dev python3-opencvWindows :No setup should be neededMacOs :brew install opencv
pip3 install -U pyobjc-core
pip3 install -U pyobjcI have not tested myself as I don't own a mac, but it was tested and documented in this issue :https://github.com/drov0/python-imagesearch/issues/5