Saravanan666/pypi-org huggingface dataset:
Package: world-time-api
World Time WrapperThis package provides an easy interface with theWorld Time APIsite.To install:python3-mpipinstallworld-time-apiThis requires the requests module if you don't already have it installed.UsageTo start, create a client for one of the endpoints (currently they only offer 'ip' and 'timezone' endpoints). The below example returns the time in New York.fromWorldTimeAPIimportservicesasservmyclient=serv.client('timezone')requests={"area":"America","location":"New_York"}# Returns a DateTimeJSON objectresponse=myclient.get(**requests)print(response.datetime)To get a list of regions and locations:# Returns ListJSON : NOTE: this is only valid for the 'timezone' endpointregions=myclient.regions()print(regions.data)
Package: worldtimepy
Worldtimepyv0.1.1Worldtime-py is a Python wrapper for. It is able to search through the endpoints of the API to find the closest location if the exact one could not be found. It reduces the strain and the difficulty of getting the time for the location desired.is a JSON API for obtaining the current time in, and related data about, a timezone. It gives data suh as the UTC offset, whether that timezone is in Daylight Savings Time (DST),offset, etc.InstallingThis library can be installed by usingpip install worldtimepy. Doing so will automatically install all requirements.RequirementsThis library requires you to have,, and. All of those can be installed usingpip.Using the wrapperclassworldtime.WorldTime()This is the main class through which you should interact with the API..locationsHas all existing locations from WorldtimeAPI.returnlist.from_ip(ip: str='') -> TimeInfooptional argument: ipTakes an IP and returns a corresponding TimeInfo object with timezone information for that IP. If no IP is provided, it will use the requesting IP.returnTimeInfo.find_by_name(name: str) -> listTakes a string and returns a list of strings for all locations that contain that name.returnlist.search(name: str) -> strTakes a country name or a city name and tries to find it in the database. It returns a string that can be used byget_location().Warning: This function iterates through different databases to try and locate the query. It may be slow.returnstring.get_location(location: str) -> objectTakes a proper location taken fromsearchorfind_by_nameand returns aTimeInfoobject.returnTimeInfo.refresh()Gathers new data forself.locations.No returnclasstimeinfo.TimeInfo(to_get=0, ip: bool=False)This class takes a location found through one of the other methods and makes an object with information for that timezone.
You can use any location fromworldtime.WorldTime().locationshere.Alternatively, if you setipto True, you may provide an IPv4 address onto_getto get time information for that IP. If ip is set to True and nothing is given toto_get, the machine's IP will be used.Printing or turning this object into a string returns a prettier string containing time information.2021-06-1100:14:14.378300UTC-0700.resultFull json pulled from the API.returndict.week_dayReturns current day of the week.returnint.year_dayReturns current day of the year.returnint.week_numberReturns current number of the week of the year.returnint.datetimeReturns an aware.returndatetime.datetime_strReturns a string version of a datetime object.returnstr.abbreviationReturns a string representing the abbreviated format of the timezone. E.g. 'PST'returnstr.is_dstReturns whether timezone is in daylight savings time.returnbool.dst_offset.dst_from.dst_until.unixtimeReturns a unix like time integer.returnint.utcReturns the UTC time..returnstr.utc_offset.raw_offset
Package: worldview-dl
Download tool for NASA WorldViewInstallation>pipinstallworldview_dlUsageYou may either download using the command line cli:usage:cli.py[-h][--layersLAYERS[LAYERS...]][--image_typeIMAGE_TYPE][--resolutionRESOLUTION][--end-timeEND_TIME]timebboxfor example>python-mworldview_dl.cli"2020-01-28 16:20"10.,-60.,15.,-50.--image_typepngOr with the python packagefromworldview_dlimportdownload_imageimportdatetimeimportpytzt_now=datetime.datetime.now().replace(tzinfo=pytz.utc)t=t_now-datetime.timedelta(hours=2)download_image(fn="GOES_test.png",time=t,bbox=[10.,-60.,15.,-50.],layers=['GOES-East_ABI_Band2_Red_Visible_1km','Reference_Labels'],image_format="png",resolution=0.01,)
Package: worldvision
WorldVisionA simple python package to calculate real world distance, angles, and coordinates between objects. This package uses camera's intrinsic and extrinsic parameters like field of view, camera's altitude, pitch, etc.Checkoutexamples/folder for sample use case.Installationpipx install worldvisionKNOWN ISSUES:get_2d_coords() does not work for special angles (90, -90, etc.)Some negative and positive values are not handled correctly.ZeroDivisionError is not handled in some cases.TODO:Fix known issues.Add support for roll and yaw.Add support for other units.Add support for speed, velocity, acceleration, angular velocity, direction.Add other calibration methods.
Package: worldvocoder
PYTHON WORLD VOCODER:This is a line-by-line implementation of WORLD vocoder (Matlab, C++) in python. It supportspython 3.0and later.INSTALLATIONpip install worldvocoderEXAMPLEimportworldvocoderaswvimportsoundfileassfimportlibrosa# read audioaudio,sample_rate=sf.read("some_file.wav")audio=librosa.to_mono(audio)# initialize vocodervocoder=wv.World()# encode audiodat=vocoder.encode(sample_rate,audio,f0_method='harvest')in which,sample_rateis sampling frequency andaudiois the speech/singing signal.Thedatis a dictionary object that contains pitch, magnitude spectrum, and aperiodicity.We can scale the pitch:dat=vocoder.scale_pitch(dat,1.5)Be careful when you scale the pich because there is upper limit and lower limit.We can make speech faster or slower:dat=vocoder.scale_duration(dat,2)To resynthesize the audio:dat=vocoder.decode(dat)output=dat["out"]To use d4c_requiem analysis and requiem_synthesis in WORLD version 0.2.2, set the variableis_requiem=True:# requiem analysisdat=vocoder.encode(fs,x,f0_method='harvest',is_requiem=True)To extract log-filterbanks, MCEP-40, VAE-12 as described in the paperUsing a Manifold Vocoder for Spectral Voice and Style Conversion, checktest/spectralFeatures.py. You need Keras 2.2.4 and TensorFlow 1.14.0 to extract VAE-12.
Check outspeech samplesNOTE:The vocoder use pitch-synchronous analysis, the size of each window is determined by fundamental frequencyF0. The centers of the windows are equally spaced with the distance offrame_periodms.The Fourier transform size (fft_size) is determined automatically using sampling frequency and the lowest value of F0f0_floor.
When you want to specify your ownfft_size, you have to usef0_floor = 3.0 * fs / fft_size.
If you decreasefft_size, thef0_floorincreases. But, a highf0_floormight be not good for the analysis of male voices.CITATION:Dinh, T., Kain, A., & Tjaden, K. (2019). Using a manifold vocoder for spectral voice and style conversion. Proceedings of the Annual Conference of the International Speech Communication Association, INTERSPEECH, 2019-September, 1388-1392.
Package: world-wall-clock
world-wall-clockworld-wall-clockis a TUI application that provides a multi-timezone
graphical clock in a terminal environment.Installing world-wall-clockYou can install world-wall-clock with the Python packaging toolpip. It is recommended to do so in avirtual environment.From PyPIpython-mpipinstallworld-wall-clockFrom the top level of the source repopython-mpipinstall.Running world-wall-clockIn an environment with world-wall-clock installed, start it from the command
line with:wwclockorpython-mworld_wall_clockUsageworld-wall-clock is a graphical application. By default it shows a live view of
one local clock (the system time) and clocks for several time zones scattered
around the world. By navigating using arrow keys and selecting or deselecting
items from the sidebar of available timezones using theEnterorSpacekey,
you can customize the list of displayed clocks. This is silently stored in the
application configuration directory for the next time you launch
world-wall-clock.Using the "Custom time" radio button, you can switch the application into custom
time mode. Edit the custom time to display by navigating to the numerical
datetime fields next to the custom time button and typing over their current
values (these are edited in "replace" rather than "insert" mode). The reference
timezone for the custom time can be changed by navigating up or down from the
timezone listed at the end of the custom time fields; the list of timezones
you can pick from here is populated from the timezones of your displayed clocks.Dependenciesworld-wall-clock is a Python 3 application that relies onurwidas its terminal widget toolkit,xdg-base-dirsto determine where
to keep the application configuration, andtzdatato provide backup timezone
information if this is not already present on the system.Developmentworld-wall-clock usesPoetryto manage builds and
dependencies. The Python code is formatted usingBlack.With Poetry installed, set up a Poetry environment with all of
world-wall-clock's runtime and dev dependencies; from the top level of the
source repo, run:poetryinstallNow you can modify the source code and run the application with any changes
you've made using thepoetry runcommand:poetryrunwwclockThepoetry runcommand will also allow you to run the suite of chosen dev
tools for static type-checking, code formatting, and linting:poetryrunmypy--strict
poetryrunblack.
poetryrunflake8
Package: worm
WormWhat came first, the worm or thefish?Ever wanted to have animating worms for progress bars in your command-line
script?Inspired by Ludvig Ericson, author offish, I presentworm. Thus
proving that I don’t have better things to do with my time than to write
meaningless ASCII animation programs.worm, the module that makes any program represent its
sluggishness to the console while churning away on some good ‘ole data.Usage? Simple enough:>>> import worm
>>> while churning:
...     churn_churn()
...     worm.animate()There is nothing more to say except:Possibilities are endless here, gentlemen:The only limit is yourself.http://zombo.com/History0.3 fix wrapping; make install work0.2 remove UTF8 usage0.1 first release
Package: wormbase-parasite
wormbase_parasiteThis package is an interface to the WormBase ParaSite REST API. You can use it in your Python programs to retrieve data from the WormBase ParaSite REST API without needing to learn the details of REST API interactions. The function names are intelligent and documentation is provided. This package is targeted toward Wormbase users who want to get data from WormBase faster than using the web site.InstallationInstallation is simple withpip. Simply run>pipinstallwormbase-parasiteto retrieve this package from the PyPI package index.UsageThe WormBase ParaSite REST API is free and open. No credentials, keys, or tokens are needed to access it. This makes PyWormbase easy to use in scripts, too. First, importwormbase_parasite, then instantiate aWormbaseClientobject:>>>importwormbase_parasite>>>api=wormbase_parasite.WormbaseClient()AWormbaseClientobject will have a variety of member functions that provide access to Wormbase API endpoints. You can usedir(api)to see all functions available (or read the associated documentation in the Github wiki).SupportIf you use PyWormbase and are experiencing problems with the package, or if you have a request for an additional feature, please file an issue athttps://github.com/c-anna/PyWormbase/issues.A note:wormbase_parasiteis a wrapper around the WormBase ParaSite REST API. This API is subject to change and so both the content and format of the responses may change without notice. While every effort will be made to keep this package aligned with the output of the REST API, it is still possible for scripts relying on this package to change their execution results even if no code changes were made. If you usewormbase_parasiteand notice a change in a function's execution, please open an issue on Github.Licensewormbase_parasiteis free and open-source, licensed under the GPLv3 license.. .  .  .  . . .
   .                     .                _.-/`/`'-._
   . Thanks for using     .             /_..--''''_-'
    . wormbase_parasite! .             //        \
     . .  .  .     .                  //-.__\_\.-'
                `..'  _\\\//  --.___ // ___.---.._
                  _- /@/@\  \       ||``          `-_
                .'  ,\_\_/   |    \_||_/      ,-._   `.
               ;   { o    /   }     ""        `-._`.   ;
              ;     `-==-'   /                    \_|   ;
             |        |>o<|  }@@@}                       |
             |       <(___<) }@@@@}                      |
             |       <(___<) }@@@@@}                     |
             |        <\___<) \_.?@@}                    |
              ;         V`--V`__./@}                    ;
               \      tx      ooo@}                    /
                \                                     /
                 `.                                 .'
                   `-._                         _.-'
                       ``------'''''''''------``
Package: wormcat-batch
WormCat BatchOverviewWormCat Batchis a command line tool that allows you to batch multiple
runs ofWormCatfrom a Microsoft Excel File or a directory path with WormCat formatted csv files.Note:You can also run WormCat Batch as a docker container. Find more information on running WormCat Batch as a Docker containerhere.PrerequisitesWormCat Batchrequires Python 3.5+ and R 3.4.1+ with a WormCat
package installed.If you are unsure if you have WormCat installed, you can runfind.package("wormcat")from an R command prompt.IfWormCatis not installed, you can follow the directionshereto install WormCat.Note:WormCat can be installed as an R package you;
do NOT need to checkout the source unless you intend to modify WormCat.
The readme file explains how to install WormCat as an R package.Excel spreadsheet Naming ConventionsOnce you have the R package installed, you will create an Excel
Spreadsheet with the required data for batch execution.See the fileExample/Murphy_TS.xslfor details on formating the Excel.Note:The Spreadsheet Name should ONLY be composed of Letters, Numbers and
Underscores (_) and has an extension .xlsx, .xlt, .xlsThe Sheet Names within the spreadsheet should ONLY be composed of
Letters, Numbers, and Underscores (_) other characters may cause the
batch process to fail!Each sheet requires a column name 'Sequence ID' or 'Wormbase ID'
(This column name is case-sensitive)To Run the Batch ProcessTo run the batch process, open a terminal window, change the directory to your
project directory.$pip install wormcat_batch
$wormcat_cli --helpAfter execution, the Output Directory will contain all the WormCat run data and a
summary Excel spreadsheet.Sample OutputLocal development /test hintsSetup to testconda activate <appropriate_env>pip install .Testcd /Users/dan/delme #some working directorywormcat_cli --input-excel ${PROJ_HOME}/Example/Murphy_TS.xlsx --output-path ./outputwormcat_cli --input-csv-path ${PROJ_HOME}/Example/Murphy_TS_CSV--output-path ./outputDeployAdvance the version number in setup.pyconda deactivate # twine is installed in base envincrement setup.py versioncd <project directory>rm -rf ./distrm -rf ./wormcat_batch.egg-infopython setup.py sdisttwine check dist/*twine upload --repository pypi dist/*git add .git commit -m "some comment"git push
Package: wormhole-proxy
Wormholeis a forward proxy without caching. You may use it for:Modifying requests to look like they are originated from the IP address
thatWormholeis running on.Adding an authentication layer to the internet users in your organization.Logging internet activities to your syslog server.DependencyPython >= 3.6uvloop(optional)Docker Image UsageRun without authentication$dockerpullbashell/wormhole$dockerrun-d-p8800:8800bashell/wormholeRun with authenticationCreate an empty directory on your docker hostCreate an authentication file that contains username and password in this
formatusername:passwordLink that directory to the container via option-vand also run wormhole
container with option-a/path/to/authentication_fileExample:$dockerpullbashell/wormhole$mkdir-p/path/to/dir$echo"user1:password1">/path/to/dir/wormhole.passwd$dockerrun-d-v/path/to/dir:/opt/wormhole\-p8800:8800bashell/wormhole\-a/opt/wormhole/wormhole.passwdHow to installStable VersionPlease install thestable versionusingpipcommand:$pipinstallwormhole-proxyDevelopment SnapshotYou can install thedevelopment snapshotusingpipwithmercurial:$pipinstallhg+https://hg.sr.ht/~cwt/wormholeOr install from your local clone:$hgclonehttps://hg.sr.ht/~cwt/wormhole$cdwormhole/$pipinstall-e.You can also install the latesttipsnapshot using the following
command:$pipinstallhttps://hg.sr.ht/~cwt/wormhole/archive/tip.tar.gzHow to useRunwormholecommand$wormholeSet browser’s proxy setting tohost:127.0.0.1port:8800Command help$wormhole--helpLicenseMIT License (included inlicense.py)NoticeThis project is forked and converted to Mercurial fromWARPon GitHub.Authentication file containsusernameandpasswordinplain
text, keep it secret!(I will try to encrypt/encode it soon.)Wormhole may not work in:some ISPssome firewallssome browerssome web sites
Package: wormhole-tx
txEasiest way to send files:Installpipinstallwormhole-txRuntxmyfile.mp4# Then follow the directionsThis will generate amagic-wormholecommand that you can use on the receiving end.Backgroundmagic-wormholeis even more powerful when properly tuned.wormhole-txgives saner defaults and is more secure with a larger key. The command to run on the receiving end will auto-accept the file and wait for it to begin.Additionally, the receiving command is generated at thebeginninginstead of the end of the archive building phase. This makes the command quicker to run since you can immediately connect the client to the sender.Installgit clone .... ./install. ./activate.shTo develop software, run. ./activate.shWindowsThis environment requires you to usegit-bash.LintingRun./lint.shto find linting errors usingpylint,flake8andmypy.Versions1.0.3: Removes new typing system which doesn't work on python < 3.101.0.2: Unknown arguments are passed ontowormhole send. Help now displayswormhole --help.1.0.1: Fixes missingmagic-wormholedependency.
Package: wormhole-ui
Magic Wormhole UIA GUI for theMagic Wormhole. Get things from one computer to another safely.InstallationWindowsDownload theWindows installer.MacOSDownload theMacOS installer.LinuxInstaller coming soon...From SourceThe recommended method to run from the Python source is withpipx:pipxinstallwormhole-uiwormhole-ui(or use pip if you prefer)DevelopmentRequiresPoetry.gitclonehttps://github.com/sneakypete81/wormhole-ui.gitcdwormhole-uipoetryinstallThen you can use the following:poetryrunwormhole-ui# Run the apppoetryrunpytest# Run unit testspoetryrunflake8# Run the linterpoetryrunblack.# Run the code autoformatterpoetryruntox# Run all checks across all supported Python versions
Package: wormimtools
worm-imtoolsInstallationThis package can be installed through pip using:pip install wormimtoolsThis can also be performed using pip within a conda environment if you wish to use conda to install other dependencies.To upgrade the package through pip, run:pip install --upgrade wormimtoolsUsingworm-imtoolsIt is highly recommended that this is performed using a jupyter notebook.ProcessingTo process a directory like the one created above, import and instantiate aProcessorobject. The channel_info should be specified as a list of tuples containing your channel names and their indexes (0-based) within the images. You can use up to 4 channels:fromwormimtoolsimportProcessorchannel_info=[("{channel 0 name}",0),("{channel 1 name}",1)]proc=Processor("{path_to_images}",channel_info)Additional Args:DefaultValues:group_number=1max_value=65535final_len=3500TheProcessorclass contains 3 key-word arguments which have default values.group_numberis used when multiple groups are contained within a single README. This variable specifies the order of the README. If the group in the directory is second in the README, set this to2, etc.max_valueis the value that the images are normalized to. It is arbitrary, but it should be set to the max value of the image format (255 for 8bit, 65535 for 16bit, etc.). When performing downstream analysis, the dataset should be normalized to the max value of the entire dataset.final_lenspecifies the length all arrays will be interpolated to. It should be set to a value close to the average width of the images to minimize the need for interpolation.Generating a DataFrameDataFrame StructureThe generated DataFrame contains the following metadata columns specified in README.txt:date# Date the rep was collectedstrain# C. elegans strain useddiet# Name of the bacterial diettemp# Temperature worms developed atrep# Rep numbername# Relative file namestage# C. elegans developmental stagerating# Rating of quality of wormcomments# Comments given at imagingID# UUIDIt also contains the following data columns for channel i (i = 0,1,2,3):channel{i}_name# Channel i name specified in `channel_info`channel{i}_arr_vals# Normalized and interpolated array valueschannel{i}_arr_vals_ni# Normalized array valueschannel{i}_arr_vals_raw# Raw array valuesIn most cases, the raw array values should be used for downstream analysis.Barcode PlottingTo create barcode plots of the processed arrays, import and instantiate aBarcodePlotterobject:fromwormimtoolsimportBarcodePlotterplotter=BarcodePlotter()Single Channel Plottingdata=[["Single Channel"]]# List of arrays generated by Processorplotter.plot_barcodes_single(data,save={"save_path"})Thesaveargument is optional, defaulting to None.Dual Channel Plottingdata=[[["Channel 0"],["Channel 1"]]]# List of lists of len=2 with arrays for 2 channels of an imageplotter.plot_barcodes_dual(data)Thesaveargument is the same as single channel plotting.
Package: wormpose
Results videos adapted fromOpen Worm Movement DatabaselicenseCC 4.0OverviewThe WormPose package estimates the challenging poses of C. elegans in videos including coils and overlaps.We train a convolutional neural network with synthetic worm images so that there is no need for human annotated labels.Get started quicklyTry the tutorial notebookThis notebook goes over the whole WormPose pipeline with some sample data and an already trained model. You can run it in Google Colab.Read the documentationCheck theDocumentation websitefor detailed instructions.Read the paperWormPose: Image synthesis and convolutional networks for pose estimation in C. elegansHebert L, Ahamed T, Costa AC, Oâ€™Shaughnessy L, Stephens GJ (2021) WormPose: Image synthesis and convolutional networks for pose estimation in C. elegans. PLOS Computational Biology 17(4): e1008914.https://doi.org/10.1371/journal.pcbi.1008914Manuscript dataManuscript data is available here:https://wormpose.unit.oist.jp.