Saravanan666/pypi-org huggingface dataset:
Package: icemac.truncatetext
Nice, intelligent truncation of text.Fork me on:https://github.com/icemac/icemac.truncatetextContentsNicely truncate textWhat can get truncated?What is returned?Where gets the text truncated?I do not want…as ellipsis.Changelog1.1.1 (2018-11-16)1.1 (2018-11-15)1.0.post1 (2017-06-22)1.0 (2017-05-13)0.3 (2012-11-13)0.2.1 (2011-07-28)0.2 (2009-09-26)0.1 (2009-01-31)HackingNicely truncate textIntelligent truncation of text means that truncation does not take
place inside a word but only between words. So the required length is
only an approximation. The result text might be a bit longer than the
required length:>>> from icemac.truncatetext import truncate
>>> 'I was here.'[:3]
'I w'
>>> truncate('I was here.', 3)
'I was ...'What can get truncated?Only instances ofbasestring(stron Python 3) can be truncated:>>> truncate(3, 3)
Traceback (most recent call last):
ValueError: 3 is no instance of basestring or None
>>> print(truncate(u'Lorem ipsum', 5))
Lorem ...Noneis handled nicely:>>> truncate(None, 4)
''What is returned?Always at least one word is returned even when it is longer than the
required length:>>> truncate('Lorem ipsum', 1)
'Lorem ...'If the text contains only of one word which is longer than the desired
length it is returned without an ellipsis:>>> truncate('The-really-long-word', 5)
'The-really-long-word'If the text is shorter than the desired length it is returned without
the ellipsis, too:>>> truncate('Lorem ipsum', 11)
'Lorem ipsum'Where gets the text truncated?Truncation also takes place at tabs and linebreaks:>>> truncate("I was here.\nNow I'm away", 11)
'I was here. ...'
>>> truncate("I was here.\rNow I'm away", 12)
'I was here.\rNow ...'
>>> truncate("I was here.\tNow I'm away", 11)
'I was here. ...'I do not want…as ellipsis.truncatetakes an optional argument which defines the ellipsis string:>>> print(truncate(u'Lorem ipsum', 5, ellipsis=u':::'))
Lorem :::Changelog1.1.1 (2018-11-16)Move repository to Github.1.1 (2018-11-15)Add support for Python 3.7.1.0.post1 (2017-06-22)Fix thedescriptionso PyPI accepts it.1.0 (2017-05-13)Add support for Python 3.4 up to 3.6, PyPy2 and PyPy3.Drop support for Python 2.5 and 2.6.Change license from ZPL to MIT.0.3 (2012-11-13)Moved sources to bitbucket.org.Added Travis-CI.Dropped official support for Python 2.3 and Python 2.4. (Although these
rather old Python versions still might be used with this release.)0.2.1 (2011-07-28)Updated categories: Python 2.7 is supported, too.0.2 (2009-09-26)Added ability pass a string used as ellipsis string.0.1 (2009-01-31)Initial public release.HackingFork me onbitbucket.orgor put your issues to theissue tracker.
Package: ice-moviepy
ice-moviepy []a package for extracting short subtitled clips from movies by subtitle.srt file.InstallationUse the package manager [pip] to install ice-moviepy.pipinstallice-moviepyUsagegiven a movie with a srt file subtitle, cut some parts of subtitle.srt and paste them into another file, such as sub.srt and run the following:importice_moviepyice_moviepy.subtitle2video("Video.mkv",'Sub.srt','logo.png')orice_moviepy.subtitle2video("Video.mkv",'Sub.srt')if you don't want to attach a watermark on it.editing subtitleyou can colorize different parts of subtitle. for example you can use red{...}, blue{...}, yellow{...} and so on, to colorize your subtitle.Place an {end} at the end of the block you want to cut out as a separate clip.9

00:00:48,920 --> 00:00:51,151

There are two

kinds of pain.



10

00:00:51,280 --> 00:00:53,272

The sort of pain

blue{that makes} you strong



11

00:00:53,360 --> 00:00:57,240

red{or useless} yellow{pain}, the purple{sort of}

pain blue{that's} only orange{suffering}. {end}
Package: icenet
icenetThis is the core python library for the IceNet sea-ice forecasting system.ThisREADMEwill be worked on more, but there's plenty of information around
in theicenet-aiorganisations repositories, which demonstrate usage of
this library.Table of contentsOverviewInstallationImplementationPipelineContributing to IceNetCreditsLicenseInstallationWe're still working on clear dependency management using pip, Tensorflow is best through pip but obviously you need NVIDIA dependencies for GPU based training. If you're having trouble with system dependencies some advice about environment setup is given by the examplesunder the pipeline repository.pip install icenetDevelopment installationPlease refer tothe contribution guidelines for more information.ImplementationWhen installed, the library will provide a series of CLI commands. Please use
the--helpswitch for more initial information, or the documentation.DocumentationThedocs/directory has aMakefilethat builds sphinx docs easily enough,
once the requirements in that directory are installed.Usage Pipeline / ExamplesPlease refer tothe icenet-pipeline repositoryorthe icenet-notebook
repositoryfor examples of how to use this library.Contributing to IceNetPlease refer tothe contribution guidelines for more information.CreditsLicenseThis is licensed using theMIT License
Package: icenews
icenewsSimple NLP for Icelandic NewsThis project is aimed at extracting themes / concepts from simple
icelandic news text - headlines and such.  This is used for example
byhelst.isfor processing mainstream Icelandic
news media.How to use$pipinstallicenews
$python-micenewsAnd then when the web server is running -  analyze your text.  For example:$python
>>>importrequests
>>>t='Áformað er að taka upp nýtt greiðslukerfi fyrir Strætó á næstunni.'>>>r=requests.post('http://127.0.0.1:5000/v1/parse',json={'in':t})>>>print(r.json()){'important_words':['greiðslukerfi','strætó','upp','á næstunni','áforma','áformaður','nýr','nýta']}Use with containerIf you prefer you can also load the prebuilt container and run locally:dockerrun-d-p5000:5000--rm--nameicenewssverrirab/icenewsNow with API documentation!If you run the server locally you can view the documentation locally by visitinghttp://localhost:5000/docs- You can viewthe OpenAPI specification here.LicenseThis project is released under theApacheopen source license.
Package: icenlp-bridge
Python bridge for IceNLPSimplify using IceNLP (Icelandic NLP library written in Java)Free software: Apache Software License 2.0Documentation:https://icenlp-bridge.readthedocs.io.FeaturesRun Icelandic NLP from python using a local IceNLP server and this libraryExampleStart the local IceNLP server.  For example using docker:docker run-it--rm-p1234:1234 sverrirab/icenlpInstall locally using:pip install icenlp_bridgeYour code might look like this:>>> from icenlp_bridge import parse
>>> print(parse('Vá hvað þetta var einfalt!'))[InjP Vá au ] {*SUBJ [NP hvað fshen ] } {*SUBJ> [NP þetta fahen ] } [VPb var sfg3eþ ] {*COMP< [AP einfalt lhensf ] } ! !You can also pipe files into icenlp_bridgecat texti.txt | python-micenlp_bridgeFor connection options seepython -m icenlp_bridge –helpandinitdocumentation.CreditsThis package is built on the excellentIceNLPlibrary.  Information on the docker image can be found onDockerHub.This package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2019-09-08)First release on PyPI.
Package: icenter-snake
GitHub PagessnakeInstallingOption 1Install via pippip install icenter_snakeOption 2Clone the GitHub repositorygit clone https://github.com/AmerenICenter/snake.gitUsageOption 1Run the main script from terminalpython snake_main.pyOption 2Run as a module from terminalpython -m snakeNote: this callssrc/__main__.pyOption 3Import the package within a python scriptimportsnakesnake.run()AuthorsArchit Myadam,
David An,
Jash Parekh,
Myles Ream,
Xander Pero,
Jack Aubry,
Ritika Patel
Package: icenter-snake2
GitHub Pagessnake2InstallingOption 1Install via pippip install icenter_snake2Option 2Clone the GitHub repositorygit clone https://github.com/AmerenICenter/snake2.gitUsageOption 1Run the main script from terminalpython snake_main.pyOption 2Run as a module from terminalpython -m snake2Note: this callssrc/__main__.pyOption 3Import the package within a python scriptimportsnake2snake2.run()Authors
Package: icenumerics
Ice NumericsThis is a numerics library for simulations and data processing of colloidal ice. It is very experimental, not very extensivelly tested and unfortunatelly not richly documented. I'll try to improve that over time.Getting StartedYou can see a walktrhoughhere.PrerequisitesYou will need numpy 1.11.3, scipy 0.18.1 and matplotlib 2.0.0. Many things are built to use Jupyter. You might be able to do them in matplotlib, but I haven't tested it.InstallingThere is no pip instaler or anything like that (yet). You need to download the files from the git repository and place them wherever you want to run your script.The library runs many things in Python, but the brownian dynamics is done in a modified version of LAMMPS. I included LAMMPS compiled binaries for serial execution in Windows and Mac. If these don't work, or you want to use another system (for example, most linux distributions) you will need to compile the LAMMPS.ContributingI don't know. Contact me probably.AuthorsAntonio Ortiz-AmbrizLicenseThis project is licensed under the GPL License. In fact, most of the code is licenced under MIT licence, but LAMMPS is GPL.
Package: icepack
icepack - Encrypting File Archivericepack combinesage encryption,SSH signaturesand ZIP files to create
encrypted and verifiable archives. Except for the number of files and their
approximate size, no metadata is visible.InstallationRequirements:Python 3.8age 1.0OpenSSH 8.0Install withpiporpipx:$ pip install icepackIfpigzorpbzip2are installed, they will be used for faster compression.Basic UsageInitialize the keys$ icepack init
Enter passphrase (empty for no passphrase): *****
Enter same passphrase again: *****
The keys have been initialized in /home/username/.config/icepack
Make sure to protect and backup this directory!Create an archive$ icepack create $HOME/Documents/ $HOME/my-documents.zip
Documents/Cat Pictures
Documents/Cat Pictures/awww.jpg
Documents/Cat Pictures/grumpy.jpg
Documents/Cat Pictures/socute.jpg
Documents/world-domination.txt
Enter passphrase: *****OptionDescription--commentArchive comment.--compression,-cCompression type:bz2,gzornone(Default:gz)--modeStore file/directory modes.--mtimeStore file/directory modification times.--recipient,-rAllow another public key/alias to extract.Extract an archive$ icepack extract $HOME/my-documents.zip $HOME/
Enter passphrase for "/home/username/.config/icepack/identity": *****
Documents/Cat Pictures
Documents/Cat Pictures/awww.jpg
Documents/Cat Pictures/grumpy.jpg
Documents/Cat Pictures/socute.jpg
Documents/world-domination.txtOptionDescription--modeRestore file/directory modes.--mtimeRestore file/directory modification times.Check the version and dependencies$ icepack version --dependencies
icepack 1.0.0
✅ age found. (Version: v1.0.0)
✅ age-keygen found.
✅ ssh found. (Version: OpenSSH_8.2p1)
✅ ssh-keygen found.OptionDescription--dependencies,-dCheck the dependencies.Signer ManagementTo extract archives created by other parties, their public keys need to be
added to the list of allowed signers. Thesignercommand supports this.List allowed signers$ icepack signer list
ssh-ed25519 AAAAC3NzaC... (Your Key)
ssh-ed25519 AAAAC3NzaC... (Bob)Add an allowed signer$ icepack signer add "ssh-ed25519 AAAAC3NzaC..." --alias Alice
$ icepack signer list
ssh-ed25519 AAAAC3NzaC... (Your Key)
ssh-ed25519 AAAAC3NzaC... (Bob)
ssh-ed25519 AAAAC3NzaC... (Alice)OptionDescription--alias,-aKey alias.Remove an allowed signer$ icepack signer remove Bob
$ icepack signer list
ssh-ed25519 AAAAC3NzaC... (Your Key)
ssh-ed25519 AAAAC3NzaC... (Alice)When removing a key, you can specify the key or its alias.
Package: icepapcms
IcepapCMS is a graphical configuration and test tool for the Icepap motor
controller, base on icepap library.It allows to configure the electrical parameters, I/O interfaces, encoders,
movement parameters, homing procedures.All changes are saved on a data base which allows to do easy rollbacks,
identified changes and conflicts between the hardware configuration and the
data base configuration.The program includes one graphical console to communicate with raw commands.
Package: icepay-python
Icepay Python ClientPython client for Icepay REST API,https://icepay.com/docs/rest-api/Installpip install icepay-pythonUsagefromicepayimportIcepayClient#init clientclient=IcepayClient(MERCHANT_ID,SECRET_CODE)#get own payment methodspayment_methods=client.GetMyPaymentMethods()#checkoutorder_data=client.Checkout({"Amount":"1","Country":"US","Currency":"EUR","Description":"Test","EndUserIP":"127.0.0.1","PaymentMethod":"PAYPAL","Issuer":"DEFAULT","Language":"EN","OrderID":"10000031","URLCompleted":"https://mywebshop.com/Payment/Success","URLError":"https://mywebshop.com/Payment/Failure"})#get payment info by idpayment=client.GetPayment(1232)#validate postback checksum# request.POST is dict or QueryDict with key:value map of post data# throws AssertionError on failureclient.validate_postback(request.POST)#generate URL for the BASIC payment modeurl=client.getBasicPaymentURL({'IC_OrderID':123,'IC_Amount':100,'IC_Currency':'EUR','IC_Country':'US','IC_URLCompleted':'https://mywebshop.com/Payment/Success','IC_URLError':'https://mywebshop.com/Payment/Failure'})Advanced usage#make an API call for an endpoint that doesnt have a helper in this lib#note that timestamp is auto added if it's not presentvalues={#request data}order=client.call_api('POST','payment/vaultcheckout',values)
Package: icePick
IcePick is a All in one Package library for easy ScrapingConceptLightweight Scraping LibraryAll in one Package library for easy ScrapingRequirementsPython 3.4 or later(not support 2.x)MongoDBDependencies Librariesaiohttpbeautifulsoup4pymongo >= 3.0noseUsageScraping Flow,Your Scraping Order(Order) -> Do Scraping(Picker) -> HTML Parse(Parser) -> Save in Database(Recorder)Exampleget a my repository filenamesimporticePickdb=icePick.get_database('icePick_example','localhost')classGithubRepoParser(icePick.Parser):defserialize(self):result={"files":[],}forvinself.bs.find_all(class_="js-directory-link"):result['files']+=[v.text]returnresultclassGithubRepoRecorder(icePick.Recorder):struct=icePick.Structure(files=list())classMeta:database=dbclassGithubRepoOrder(icePick.Order):recorder=GithubRepoRecorderparser=GithubRepoParserdefmain():document={'url':'https://github.com/teitei-tk/ice-pick/tree/master','ua':'Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko',}print('---download start---')order=GithubRepoOrder(document.get('url'),document.get('ua'))picker=icePick.Picker([order])picker.run()print("---finish---")if__name__=="__main__":main()>>> import icePick
>>> db = icePick.get_database('icePick_example', 'localhost')
>>> class GithubRepoRecorder(icePick.Recorder):
...     struct = icePick.Structure(files=list())
...     class Meta:
...         database = db
...
>>> records = GithubRepoRecorder.find()
>>> records[0].files
['example', 'icePick', 'tests', 'LICENSE', 'README.md', 'circle.yml', 'requirements.txt']
>>>TODOCrawlingDocumentLICENSEMIT
Package: iceportal-apis
iceportal_apisNo longer actively developed in favor of theonboardAPIs(PyPI) project which includes APIs for different providers.DescriptionThis module interacts with the onboard APIs of the Deutsche Bahn ICE trains.It can do various things from reading the trains' velocity to telling you the distance to and the delay at the next station.This is an unofficial project and not supported byDeutsche Bahn AG.Note, that this module will only work correctly while you are on a train and connected to its WiFi-Hotspot.However a basic simulation for offline research is also included in this moduleInstallationAvailable on PyPI$python-mpipinstalliceportal_apisfor the newest (unstable) version install the module from GitHub$python-mpipinstallgit+https://github.com/felix-zenk/iceportal-apis.gitUsageExample code is available in the fileexample.pyand other files insamples.The basic usage consists of requesting new data from the api, then processing it with the modules functions.importiceportal_apisasipatrain=ipa.Train()whileTrue:# Request new data from the apitrain.refresh()# Process dataprint(train.get_train_type().name)next_station=train.get_next_station()...For GUI applications you can also specify automatic api pollingtrain=ipa.Train(auto_refresh=True)LicenseThis software is distributed under the MIT License, please seeLICENSEfor detailed information.API documentation1. Status APIThe Status API is available athttps://iceportal.de/api1/rs/statusA sample response can be found at:iceportal_api.mocking.data.STATIC_STATUS2. Trip APIThe Trip API is available athttps://iceportal.de/api1/rs/tripInfo/tripA sample response can be found at:iceportal_api.mocking.data.STATIC_TRIP3. Connections APIThe Connecting trains API can be found athttps://iceportal.de/api1/rs/tripInfo/connection/{eva_number}A sample response can be found at:iceportal_api.mocking.data.STATIC_CONNECTIONS4. Other APIsThese are other APIs I discovered but didn't investigate in:4.1.https://iceportal.de/api1/rs/pois/map/{lat_s}/{lon_s}/{lat_e}/{lon_e}4.2.https://iceportal.de/api1/rs/configs4.3.https://iceportal.de/api1/rs/configs/cities
Package: iceprod
IceProd is a Python framework for distributed management of batch jobs.
It runs as a layer on top of other batch middleware, such as HTCondor,
and can pool together resources from different batch systems.
The primary purpose is to coordinate and administer many large sets of
jobs at once, keeping a history of the entire job lifecycle.See also: Aartsen, Mark G., et al. “The IceProd framework: Distributed data processing for the IceCube neutrino observatory.” Journal of parallel and distributed computing 75 (2015): 198-211.Note:For IceCube users with CVMFS access, IceProd is already installed.
To load the environment execute:/cvmfs/icecube.wisc.edu/iceprod/latest/env-shell.shor:eval `/cvmfs/icecube.wisc.edu/iceprod/latest/setup.sh`depending on whether you want to get a new shell or load the variables
into the current shell.InstallationPlatforms:IceProd should run on any Unix-like platform, although only
Linux has been extensively tested and can be recommented for production
deployment.Prerequisites:Listed here are any packages outside pip:Python 3.7+MongoDB 3.6+    (for the REST API)nginx           (for ssl offloading and better security)globus          (for data transfer)Installation:From the latest release:Get the tarball link fromhttps://github.com/WIPACrepo/iceprod/releases/latestThen install like:pip install https://github.com/WIPACrepo/iceprod/archive/v2.0.0.tar.gzInstalling from master:If you must install the dev version from master, do:pip install --upgrade git+git://github.com/WIPACrepo/iceprod.git#egg=iceprod
Package: icepy
Welcome to icepyIcepy is a Python package as an automated tool for IDA ICE. It is  programmed in Python and some functions utilized external Pypi packages. Icepy is available publicly as a Pypi
package inhttps://pypi.org/project/icepy/. The latest version as of July 21, 2020 is 0.0.6. Starting from baseline models, users can use icepy to search and modify IDA ICE building energy models.
More specially, here is a list of available functions:Make changes of IDM models in zones, windows and doors.Make changes of windows according to WWR.Automated simulation for a number of models.Generate simulation reports and read dataNow, let's discover icepyGithub repository classificationWe have combined everything related into the github page- icepy. You can find:Source files: .py files and zonestructure folder.Tuturoials folder.Example IDM models: Buildings folder.API update files: API update folder.To submit to Pypi: Pypipackage folder.For a fresh userInstall Pypi package via your terminal: pip install icepyDownload files from Buildings folder and Tutorials foler.The list of useful functions are Icepy function.ipynb.User jupyter notebook to work with Tutorial 1, 2, 3 and 3+.It is optional for a developer to read through the source files.ContactAny problems, please feel free to contact the maintainer: Clong,fuc369702700@gmail.comKindly regards,Clong
Package: icepy4d
Welcome to ICEpy4D4D Image-based Continuos monitoring of glaciers' Evolution with low-cost stereo-cameras and Deep Learning photogrammetry.ICEpy4Dis a under active development.Requirements64-bit Python>= 3.8but< 3.10a NVIDIA graphic card with CUDA capability is strongly reccomended.Installation guideCreate a new Anaconda environmentcondacreate-nicepy4dpython=3.9
condaactivateicepy4dInstall Icepy4D from PyPi repositorypipinstallicepy4dor install it from source by cloning the repository and installing it withpipgitclonehttps://github.com/franioli/icepy4d.gitcdicepy4d
pipinstall-e.In case of any error when installingICEpy4Dfrom PyPi, try to install it from source.Install Metashape Python API for Bundle Adjustment and Dense reconstruction.
Metashape Python API can be downloaded fromhttps://www.agisoft.com/downloads/installer/or usewget(under Linux).wgethttps://s3-eu-west-1.amazonaws.com/download.agisoft.com/Metashape-1.8.5-cp35.cp36.cp37.cp38-abi3-linux_x86_64.whl
pipinstallMetashape-1.8.5-cp35.cp36.cp37.cp38-abi3-linux_x86_64.whlYou need to have a valid Metashape license to use the API and you need to activate it (seehttps://github.com/franioli/metashapefor how to do it)Try to import ICEpy4D packagecondaactivateicepy4d
python-c"import icepy4d"If no error is given, ICEpy4D is successfully installed and it can be imported within your script withimport icepy4dFor contributingInstall additional requirements for development:pipinstall-rrequirements-dev.txt
pre-commitinstall
Package: icerok_server
icerok-serverReceive data from the icerok circuits on the FPGAInstallationpip install -U icerok_serverDevelopersFirst cloneMake sure you create a virtual environmentInstallpython3-venvsudo apt install python3-venvCreate the virtual environmentcd icerok-server-python
python3 -m venv envStart the virtual environment. env/bin/activateInstallflitpip install flitRun all the checkstoxExecuteicerok-serverpython3 app.pyPublish in TestPyPiflit publish --repository pypitestPublish packageIncrease version number inicerok_server/version.pyExecute:flit publishReleaseSteps for Releasing a new versionIncrease the version number inicerok_server/version.pyCreate the release in GithubAutomatically an action will be executed and the package will be published in PypiCreditsThanks toAnton Zhiyanovfor this wonderful article:How to make an awesome Python package in 2021
Package: icesat2SH
icesat2SHThis Python package is for downloading icesat2 pointsInstallationTo install from package manager:pip install icesat2SHUsageAll entries must be stringsphotonConfidence = 'all' or 'noise' or 'buffer' or 'low' or 'medium' or 'high'Date input format: 'yyyy-mm-dd'		example = '2019-02-08'importrequestsimportjsonfromdatetimeimportdatetime,timedeltaATL03(photonConfidence,Start_date,End_date,miny,minx,maxy,maxx)#example = ATL03('medium', '2019-05-12', '2019-05-20',52.43,29.54,52.56,29.67)output : Two files are created in txt formatLicenseMIT licence