Saravanan666/pypi-org huggingface dataset:
Package: if-optional
if_Optional chaining for PythonInstallationpython setup.py installUsageCallif_()with a Python expression, and chain attribute and item accessors on
the return value, ending with._. If the initial expression evaluates toNone, so will the whole chain; if not, each accessor will run normally but if
it fails the chain will returnNone.In a boolean or equality test you can leave off the._.ExamplesIn [1]: from if_ import if_

In [2]: d = {
   ...:     'a': 123,
   ...:     'c': None,
   ...:     'd': {'this': 456},
   ...:     'l': [1, 2, 3],
   ...:     'f': lambda x: x * 11,
   ...: }

In [3]: if_(None).anything._ is None
Out[3]: True

In [4]: if_(d).anything._ is None
Out[4]: True

In [5]: if_(d)['a']._ == 123
Out[5]: True

In [6]: if_(d)['c']['anything']._ is None
Out[6]: True

In [7]: if_(d)['l'][1]._ == 2
Out[7]: True

In [8]: if_(d)['l'][5]._ is None
Out[8]: True

In [9]: if_(d)['f'](4) == 44
Out[9]: True
Package: iformat
iformatiformat is a simple package that prints basic data structures in an indented and readable way. The mainiprintfunction supports changing the indent size and expansion threshold, as well as all vanillaprintarguments. The includediformatfunction provides more customization, and returns a string that has been indented and formatted. An.iformatmethod (returning a string) can be added to any class for that class to be printed with custom formatting, and classes are otherwise printed with all their methods.Parameters:indentDepth:(iprintandiformat)Specifies how many spaces should be inserted as one indent level. Default4.expansionThreshold:(iprintandiformat)Specifies how long an object must be when printed before it is shown in a muilti-line format. Default0.Ex:iprint([1,2,3],expansionThreshold=10)# [1, 2, 3]iprint([1,2,3],expansionThreshold=0)# [#   1,#   2,#   3# ]excludedAttrs:(iprintandiformat)Specifies class attributes that should not be printed. Should be a list or tuple of strings OR a regex pattern. Defaultr"__.+__"..iformatmethod for classes:You can add a.iformatmethod to any class to show the return value of that method instead of the default iformat output for classes. It must accept positional argumentsindentLevel,indentDepth,expansionThreshold, andexcludedAttrs, which will be passed the same values as those passed to theiformatfunction call that calls the method. It is reccomended that you add whitespace in front of the output corresponding toindentLevel * indentDepth, and that you calliformat, with the same passed args (maybe withindentDepth + 1) on any values that are part of the outputted string.indentLevel:(iformatonly)Specifies the indent level of the returned output string. Default0.https://github.com/FinnE145/iprinthttps://pypi.org/project/iformat
Package: ifournight-django-oss-storage
Django AliCloud OSS Storagedjango-oss-storageprovides a Django AliCloud OSS file storage.FeaturesDjango file storage for AliCloud OSSDjango static file storage for AliCloud OSSWorks in Python 2 & 3InstallationInstall$pipinstalldjango-oss-storageAdd'django_oss_storage'to yourINSTALLED_APPSsettingSet yourDEFAULT_FILE_STORAGEsetting to"django_oss_storage.backends.OssMediaStorage"Set yourSTATICFILES_STORAGEsetting to"django_oss_storage.backends.OssStaticStorage"Configure your AliCloud OSS settings (Refer below).Use the following settings for file storage.STATICFILES_STORAGE='django_oss_storage.backends.OssStaticStorage'DEFAULT_FILE_STORAGE='django_oss_storage.backends.OssMediaStorage'Authentication settingsUse the following settings to authenticate with AliCloud OSS.# AliCloud access key IDOSS_ACCESS_KEY_ID=<YourAccessKeyID># AliCloud access key secretOSS_ACCESS_KEY_SECRET=<YourAccessKeySecret>Storage settingsFor public or public-read buckets, storage urls will be bucket_name.endpoint/key formatFor private buckets, storage urls will be signed url. The expires time can be set by OSS_EXPIRE_TIME as environment variable or as Django settings. The default value for OSS_EXPIRE_TIME is 30 days.OSS_EXPIRE_TIME=<ExpireTimeinSeconds>File storage settingsUse the following settings to configure AliCloud OSS file storage.# The name of the bucket to store files inOSS_BUCKET_NAME=<Yourbucketname># The URL of AliCloud OSS endpoint
# Refer https://www.alibabacloud.com/help/zh/doc-detail/31837.htm for OSS Region & EndpointOSS_ENDPOINT=<Youraccessendpoint># When you configed bucket with CNAME(custom domain), provide OSS_CNAME for signing url
# OSS_ENDPOINT will still be used for puting files
# https://help.aliyun.com/document_detail/31836.htmlOSS_CNAME=<Yourbucketcustomdomain># The default location for your filesMEDIA_URL='/media/'Staticfiles storage settingsAll of the file storage settings are available for the staticfiles storage.# The default location for your static filesSTATIC_URL='/static/'staticfiles provides command ‘collectstatic’. Run following command to collect all sub-folder ‘static’ of each app
and upload to STATIC_URL.$pythonmanage.pycollectstaticTestingFirst set the required AccessKeyId, AccessKeySecret, endpoint and bucket information for the test through environment variables (Do not use the bucket for the production environment).
Take the Linux system for example:$exportOSS_ACCESS_KEY_ID=<AccessKeyId>$exportOSS_ACCESS_KEY_SECRET=<AccessKeySecret>$exportOSS_BUCKET_NAME=<bucket>$exportOSS_ENDPOINT=<endpoint>Support and announcementsDownloads and bug tracking can be found at themain project website.LicenseMIT.
Package: ifparser
Parse ifconfig output collected from local or remote server and retrieve required
interface information.UsageInstall ifconfig-parser:pipinstall-UifparserYou can access inferface information as below :>>>importcommands>>>fromifparserimportIfcfg>>>ifdata=Ifcfg(commands.getoutput('ifconfig -a'))>>>ifdata.interfaces['lo','docker0','eth0']>>>eth0=ifdata.get_interface('eth0')>>>eth0.BROADCASTTrue>>>eth0.hwaddr,eth0.mtu,eth0.ip,eth0.UP('08:00:27:1f:d8:b0','1500','10.0.2.15',True)You can query for intefaces on particular parameter :>>>ifdata.get(itype='Ethernet')[obj-docker0,obj-eth0]>>>ifdata.get(UP=True)[obj-lo,obj-docker0,obj-eth0]Get all interface parameters withget_values. Following dictionary contains all possible values:>>>eth0=ifdata.get_interface('eth0')>>>eth0.get_values(){'BROADCAST':True,'LOOPBACK':False,'MULTICAST':True,'RUNNING':True,'UP':True,'bcast':'10.10.2.255','hwaddr':'FF:FF:27:1f:d8:b0','interface':'eth0','ip':'10.10.2.15','itype':'Ethernet','mask':'255.255.255.0','mtu':'1500','rxbytes':'547873','rxpkts':'628','txbytes':'50826','txpkts':'424'}List of parameters for interface:BROADCAST, LOOPBACK, MULTICAST, RUNNING, UP, DYNAMIC, NOARP, PROMISC, POINTOPOINT, SIMPLEX, SMART, MASTER, SLAVEinterface - Interface name, itype - Interface Typeip - IP, bcast - Broadcast, mask - Maskhwaddr - MAC address, mtu - MTUrxbytes - Received Bytes, rxpkts - Received Packetstxbytes - Sent Bytes, txpkts - Sent Packets
Package: ifpd
iFISH-Probe-DesignPyPi|docsiFISH-Probe-Design(ifpd) is a Python3.7+ package containing tools for selection of complementary oligonucleotides to build iFISH probes. It also includes a web interface, which simplifies the procedure by removing any requirement for programming skills. Read the onlinedocumentationfor more details.RequirementsiFISH-Probe-Designeris fully implemented in Python3.7+, thus you need Python3 to run it. Check outherehow to install Python3.7+ on your machine if you don't have it yet.ifpdhas been tested with Python 3.7, 3.8, and 3.9. We recommend installing it usingpipx(seebelow) to avoid dependency conflicts with other packages. The packages it depends on are listed in ourdependency graph. We usepoetryto handle our dependencies.InstallationWe recommend installingifpdusingpipx. Check how to installpipxhereif you don't have it yet!Once you havepipxready on your system, install the latest stable release ofifpdby running:pipx install ifpd. If you see the stars (✨ 🌟 ✨), then the installation went well!UsageAlliFISH-Probe-Designcommands are accessible via theifpdkeyword on the terminal. For each command, you can access its help page by using the-hoption. More details on how to runifpdare available in the onlinedocumentation.ContributingWe welcome any contributions toifpd. In short, we useblackto standardize code format. Any code change also needs to passmypychecks. For more details, please refer to ourcontribution guidelinesif this is your first time contributing! Also, check out ourcode of conduct.ReferenceGelali, E., Girelli, G., Matsumoto, M., Wernersson, E., Custodio, J., Mota, A., ... & Bienko, M. (2019). iFISH is a publicly available resource enabling versatile DNA FISH to study genome architecture. Nature communications, 10(1), 1-15. (link)LicenseMIT License - Copyright (c) 2016-21 Gabriele Girelli
Package: ifpd2
iFISH Probe Design (II)PyPi|docsifpd2is a Python3.8+ package containing tools for selection of complementary oligonucleotides to build iFISH probes. It is based on our previousifpdpackage, but works with a different and more detailed database format, allowing for more precise control on the probe design process. Read the onlinedocumentationfor more details.Requirementsifpd2is fully implemented in Python3.8+, thus you need the corresponding Python version to run it. Check outherehow to install Python+ on your machine if you don't have it yet.ifpd2has been tested with Python 3.8 and 3.9. We recommend installing it usingpipx(seebelow) to avoid dependency conflicts with other packages. The packages it depends on are listed in ourdependency graph. We usepoetryto handle our dependencies.InstallationWe recommend installingifpd2usingpipx. Check how to installpipxhereif you don't have it yet!Once you havepipxready on your system, install the latest stable release ofifpd2by running:pipx install ifpd2. If you see the stars (✨ 🌟 ✨), then the installation went well!UsageAllifpd2commands are accessible via theifpd2keyword on the terminal. For each command, you can access its help page by using the-hoption. More details on how to runifpd2are available in the onlinedocumentation.ContributingWe welcome any contributions toifpd2. In short, we useblackto standardize code format. Any code change also needs to passmypychecks. For more details, please refer to ourcontribution guidelinesif this is your first time contributing! Also, check out ourcode of conduct.LicenseMIT License - Copyright (c) 2021 Gabriele Girelli
Package: ifpd2q
iFISH Probe Design (II)Zafer's fork from Quentin's fork from Gabriele's implementationPyPi|docsifpd2is a Python3.8+ package containing tools for selection of complementary oligonucleotides to build iFISH probes. It is based on our previousifpdpackage, but works with a different and more detailed database format, allowing for more precise control on the probe design process. Read the onlinedocumentationfor more details.Requirementsifpd2is fully implemented in Python3.8+, thus you need the corresponding Python version to run it. Check outherehow to install Python+ on your machine if you don't have it yet.ifpd2has been tested with Python 3.8 and 3.9. We recommend installing it usingpipx(seebelow) to avoid dependency conflicts with other packages. The packages it depends on are listed in ourdependency graph. We usepoetryto handle our dependencies.InstallationWe recommend installingifpd2usingpipx. Check how to installpipxhereif you don't have it yet!Once you havepipxready on your system, install the latest stable release ofifpd2by running:pipx install ifpd2. If you see the stars (✨ 🌟 ✨), then the installation went well!UsageAllifpd2commands are accessible via theifpd2keyword on the terminal. For each command, you can access its help page by using the-hoption. More details on how to runifpd2are available in the onlinedocumentation.ContributingWe welcome any contributions toifpd2. In short, we useblackto standardize code format. Any code change also needs to passmypychecks. For more details, please refer to ourcontribution guidelinesif this is your first time contributing! Also, check out ourcode of conduct.LicenseMIT License - Copyright (c) 2021 Gabriele Girelli
Package: ifp-parser
IFP_PARSERIMPORTANT NOTE: THIS PROJECT IS INCOMPLETE.A grammar based parser fpr International Flight Plan Messages. Based on Lark.ReferencesFAA Form 7233-4 IFP Appendix Ahttps://www.faa.gov/air_traffic/publications/atpubs/fs_html/appendix_a.htmlhttp://flightatm.com/wp-content/uploads/2015/09/GEN_AFTN_Terminal_User_Manual.pdf
Package: ifq
IFQLibrary to downloadwww.ilfattoquotidiano.itissues in PDF.fromdatetimeimportdatefromifqimportScraperusername=''# your ifq usernamepassword=''# your ifq passwordscraper=Scraper(username,password)path_to_pdf_file=scraper.download_pdf(date.today())Getting StartedThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.PrerequisitesWhat things you need to install the software and how to install themGive examplesInstallingA step by step series of examples that tell you how to get a development env runningSay what the step will beGive the exampleAnd repeatuntil finishedEnd with an example of getting some data out of the system or using it for a little demoRunning the testsExplain how to run the automated tests for this systemBreak down into end to end testsExplain what these tests test and whyGive an exampleAnd coding style testsExplain what these tests test and whyGive an exampleDeploymentAdd additional notes about how to deploy this on a live systemBuilt WithDropwizard- The web framework usedMaven- Dependency ManagementROME- Used to generate RSS FeedsContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions available, see thetags on this repository.AuthorsBillie Thompson-Initial work-PurpleBoothSee also the list ofcontributorswho participated in this project.LicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for detailsAcknowledgmentsHat tip to anyone whose code was usedInspirationetchttps://gist.github.com/PurpleBooth/109311bb0361f32d87a2
Package: iframes
iframesFast detection of iframes in mpegts streamsInstallpip install iframespython3-mpipinstalliframesRunlocal filefirstvideo.tsiframesvideo.tshttpsfirsthttps://example.com/video.tsiframeshttps://example.com/video.tsmulticastfirstudp://@227.5.5.5:1234iframesudp://@227.5.5.5:1234Outputiframe pts14648.09226714648.34251114648.50934414648.759614649.00984414649.260114649.42693314649.660514649.91074414650.16114650.41124414650.661514650.91174414651.16214651.41224414651.662514651.91274414652.16314652.41324414652.663514652.84701114653.09726714653.34751114653.59776714653.84801114654.08157814654.31514414654.56538914654.81564414655.06588914655.31614414655.56638914655.81664414656.06688914656.31714414656.43393314656.68417814656.93443314657.18467814657.434933programmaticallyfromiframesimportIFramerifrmr=IFramer()first_frame=ifrmr.first('a_video.ts')fromiframesimportIFramerifrmr=IFramer(shush=True)# set IFramer.shush=True to suppress printing ptsall_iframes=ifrmr.do('https://example.com/coolvideo.ts')
Package: ifrc-go-py
IFRC GO Database LibraryTheIFRC GOplatform helps manage the global portfolio of work carried out by the nearly 200 national societies that make up the Red Cross Red Crescent Movement. The platform helps manage:Emergency AppealsSurge AlertsDeploymentsNational Society Information...and much more!This python library is intended to help make it easier to interact with the database by offering access to a number of functions and classes to query, organize, and extract the data you need.
Package: ifscApi
ifsc_apiDocumentationIFSC API was build to get details ofBANKand theADDRESS OF THE BANKfrom the IFSC CODE quickly.This library was build specially for Arihant Capital Pvt. Ltd.Installation:pip install git+https://github.com/HarshOza36/ifsc_api.gitORpip install ifscApiUSAGE:IFSC_APITo use the package in User Interface @localhost(with caution), simply do::You can also just use the api without User Interface @ ```localhost/ifsc```  which is a RestFul Api.>>>fromifscApiimportapp>>>app.runServer()To just use it normally(with caution), simply do::>>>fromifscApi.getDetailsimportFetchData>>>parser=FetchData()# Create a parser>>>ifsc='ANY_CODE_HERE'>>>result=parser.getdata(ifsc)>>>print(result)Note : The getdata function has parameter dbFilePath which can be overwritten with your own IFSC code Db which should have Table namedataand three columnsifsc,bank,addressTo just use it As AWS LAMBDA compatible Function(with caution), simply do::>>>fromifscApi.getDetailsLambdaimportFetchData>>>parser=FetchData()# Create a parser>>>ifsc='ANY_CODE_HERE'>>>result=parser.getdata(ifsc)>>>print(result)Note : The getdata function has parameter dbFilePath which can be overwritten with your own IFSC code Db which should have Table namedataand three columnsifsc,bank,address
Package: ifscSearch
IFSC SearchIFSC Search is a Python module that facilitates searching for bank details using the Indian Financial System Code (IFSC). The module fetches data from the Razorpay IFSC API.InstallationYou can install the module using pip:pipinstallifscSearchUsageHere is an example of how to use theifscSearchmodule in your Python script:fromifscSearchimportget_details# Replace "PYTM0123456" with the IFSC code you want to searchifsc_code_to_search="PYTM0123456"result=get_details(ifsc_code_to_search)ifresult:print(f"Details for IFSC code{ifsc_code_to_search}:\n{result}")else:print(f"IFSC code{ifsc_code_to_search}not found in the Razorpay IFSC database.")Replace"PYTM0123456"with the actual IFSC code you want to search. Theget_detailsfunction fetches information from the Razorpay IFSC API, and the result is printed. The expected output will either display the details for the given IFSC code or indicate that the code was not found.ContributingIf you want to contribute to this project, feel free to open issues or submit pull requests. Contributions are welcome!LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.AcknowledgmentsRazorpay for providing the IFSC API data.Happy coding!Feel free to add or modify sections based on your project's requirements. This template includes sections for installation, usage, contributing, license information, and acknowledgments. Adjust it as needed to provide comprehensive information about your module.
Package: ifs-etc
CSST-IFS ETCDescriptionExposure time calculator for CSST-IFS. The Python module is
constructed by modifing the JWST ETC (Pandeia), which would be
easily imported into Python programs.Installationvia pip:pip install ifs_etcUsageCreating a default configuration dictionaray:from ifs_etc.etc1d.config import build_default_calc
config = build_default_calc()Editing the configuration:# changing the spectrum of the source  
config['source']['spectrum']['name'] = 'SFgal_texp_FeH0_tau5_Ew10_AGN1.fits'

# changing the surface brightness of the source
config['source']['normalization']['value'] = 17.7Running the code:from ifs_etc.etc1d.perform_calculation import perform_calculation
report = perform_calculation(calculation)The output results:report.__dict__lists all the information in the resultreport.snrcontains the signal-to-noise ratio generated by the calculationreport.readnoise,report.darknoise,report.sourcenoisecontain
different types of noise.report.mockwave,report.mockflux,report.mockerrorprovide
the mock spectrum of the observationExamplesS/N ratio reached in a exposure time of 900 seconds for
an extended source with sdss g-band surface brightness of 18
mag/arcsec2and AGN spectrumfrom ifs_etc.etc1d.config import build_default_calc
from ifs_etc.etc1d.perform_calculation import perform_calculation

config = build_default_calc()
config['obst'] = 300
config['repn'] = 3
config['source']['normalization']['value'] = 18.0
config['source']['spectrum']['name'] = 'SFgal_texp_FeH0_tau5_Ew10_AGN1.fits'
report = perform_calculation(config)
print(report.snr)Exposure time needed to obtain a S/N ratio of 10 for an elliptical galaxy
with SDSS r-band surface brightness of 18 mag/arcsec2from ifs_etc.etc1d.config import build_default_calc
from ifs_etc.etc1d.perform_calculation import perform_calculation

config = build_default_calc()
config['targetsnr'] = 10
config['obst'] = 300
config['source']['normalization']['value'] = 18.0
config['source']['spectrum']['name'] = 'SFgal_texp_FeH0_tau1_Ewd.fits'
report = perform_calculation(config, calculation_mode='snr2exptime')
print(report.exptime)ReferenceJWST ETC PandeiaHST/STIS spectroscopic ETC
Package: ifstat
Display simple throughput statistics for network interface controllers.
Requires Linux kernel >= 2.6Output can be viewed in terminal. Additionally you’ll find the output in
a file suitable for parsing from within your application. The program
can be executed as daemon to provide you reliable network throughput
numbers at any given time.Example outputeth0 thruput [bytes/s]                      total               1s               5s              15s
Receiving                                 1982418              416              416              412
Transmitting                              4029588             1296             1296             1287InstallationMethod 1: Packaged installation$ # make sure easy_install it there (debian):
$ sudo apt-get install python-setuptools
$ sudo easy_install ifstatMethod 2: Source installation$ git clone https://github.com/prinzdezibel/ifstat
$ cd ifstat
$ python setup.py developRun program$ ifstat --helpFile based program outputStart program as foreground or daemon process. Throughput numbers will
be written to a file periodically:$ cat /var/lib/ifstat/thruput.txtParse this file to retrieve relevant data for your application.
Package: ifstate
IfStateA python tool to configure (linux) host interfaces in a declarative manner.
It is a frontend for the kernel netlink protocol usingpyroute2and aims to be as powerful as the
iproute2/bridge/ethtool/tc/wireguard commands.It was written for interface configuration on lightweight software defined linux
routerswithoutusing any additional network management daemon likeNetwork-Managerorsystemd-networkd.Can be used with deployment and automation tools likeansiblesince it's declarative and
operates idempotent.More...
Package: iftc
IFT CorrectionIFT Correction(Informal Text Correction) is a library of spelling correction for Vietnamese informal text type(informal text is the type of text as daily communication messages)Installationpip install iftcExample UsageOnly spelling correction for acronymsfromiftc.spelling_correctorimportSpellingCorrectorcorrector=SpellingCorrector()corrected_text=corrector.acronym_correction('b ơi, món này giá bn thế')print(corrected_text)This should print:'bạn ơi, món này giá bao nhiêu thế'Spelling correction for detect spelling errorfromiftc.spelling_correctorimportSpellingCorrectorcorrector=SpellingCorrector()text,word_candidates=corrector.detect_spelling_error('b ơi, món này giá bn thế')print(word_candidates)