Saravanan666/pypi-org huggingface dataset:
Package: voxelwise-tutorials
Welcome to the voxelwise modeling tutorial from theGallantlab.TutorialsThis repository contains tutorials describing how to use the voxelwise modeling
framework.Voxelwise modelingis
a framework to perform functional magnetic resonance imaging (fMRI) data
analysis, fitting encoding models at the voxel level.To explore these tutorials, one can:read the rendered examples in the tutorialswebsite(recommended)run the Python scripts (tutorialsdirectory)run the Jupyter notebooks (tutorials/notebooksdirectory)run the merged notebook inColab.The tutorials are best explored in order, starting with the “Shortclips”
tutorial.Helper Python packageTo run the tutorials, this repository contains a small Python package
calledvoxelwise_tutorials, with useful functions to download the
data sets, load the files, process the data, and visualize the results.InstallationTo install thevoxelwise_tutorialspackage, run:pipinstallvoxelwise_tutorialsTo also download the tutorial scripts and notebooks, clone the repository via:gitclonehttps://github.com/gallantlab/voxelwise_tutorials.gitcdvoxelwise_tutorialspipinstall.Developers can also install the package in editable mode via:pipinstall--editable.RequirementsThe packagevoxelwise_tutorialshas the following dependencies:numpy,scipy,h5py,scikit-learn,matplotlib,networkx,nltk,pycortex,himalaya,pymoten,datalad.Cite asIf you use one of our packages in your work (voxelwise_tutorials[1],himalaya[2],pycortex[3], orpymoten[4]), please cite the
corresponding publications:[1]Dupré La Tour, T., Visconti di Oleggio Castello, M., & Gallant, J. L. (2023).
Voxelwise modeling tutorials: an encoding model approach to functional MRI analysis.In preparation.[2]Dupré La Tour, T., Eickenberg, M., Nunez-Elizalde, A.O., & Gallant, J. L. (2022).
Feature-space selection with banded ridge regression. NeuroImage.https://doi.org/10.1016/j.neuroimage.2022.119728[3]Gao, J. S., Huth, A. G., Lescroart, M. D., & Gallant, J. L. (2015).
Pycortex: an interactive surface visualizer for fMRI. Frontiers in
neuroinformatics, 23.https://doi.org/10.3389/fninf.2015.00023[4]Nunez-Elizalde, A.O., Deniz, F., Dupré la Tour, T., Visconti di Oleggio
Castello, M., and Gallant, J.L. (2021). pymoten: scientific python package
for computing motion energy features from video. Zenodo.https://doi.org/10.5281/zenodo.6349625
Package: voxface
VoxfaceFast voxelation of the face in 3D structural MRI data combining spline downsampling with nearest-neighbor upsampling to
deidentify the face while retaining some signal intensity to guide whole-head registration.InstallationLatest Version2023.7.20.1GitHub InstallationClone this branch to your local system% git clone https://github.com/jmtyszka/voxface.gitInstall to your local Python 3 environment% cd voxface
% [sudo] python3 setup.py installPyPI InstallationInstall the latest Python 3 version ofvoxfacefrom PyPI% [sudo] pip3 install voxfaceTypical PerformanceFace voxelation of a typical 1 mm isotropic T1w image takes 5 - 6 seconds on a 3.2 GHz 6-Core Intel Core i7 Mac Mini.
Package: voximplant-apiclient
PrerequisitesIn order to use the Voximplant Python SDK, you need the following:A developer account. If you don’t have one,sign up here.A private API key. There are 2 options to obtain it:Either generate it in theVoximplant Control panelOr call theCreateKeyHTTP API
method with the
specifiedauthentication parameters. You’ll
receive a response with theresultfield in it. Save theresultvalue in a file (since we don’t store the
keys, save it securely on your side).Python 2.x or 3.x runtime withpipandsetuptools>=18.5 installedHow to useGo to your project folder and install the SDK usingpip:python-mpipinstall--uservoximplant-apiclientThen import the SDK in your scriptfromvoximplant.apiclientimportVoximplantAPINext, specify the path to the JSON service account file either in the constructor or using the environment.constructor:api=VoximplantAPI("/path/to/credentials.json")env:exportVOXIMPLANT_CREDENTIALS=/path/to/credentials.jsonExamplesStart a scenariofromvoximplant.apiclientimportVoximplantAPI,VoximplantExceptionif__name__=="__main__":api=VoximplantAPI("credentials.json")# Start a scenario of the user 1RULE_ID=1SCRIPT_CUSTOM_DATA="mystr"USER_ID=1try:res=api.start_scenarios(RULE_ID,script_custom_data=SCRIPT_CUSTOM_DATA,user_id=USER_ID)print(res)exceptVoximplantExceptionase:print("Error:{}".format(e.message))Send an SMSfromvoximplant.apiclientimportVoximplantAPI,VoximplantExceptionif__name__=="__main__":api=VoximplantAPI("credentials.json")# Send the SMS with the "Test message" text from the phone number 447443332211 to the phone number 447443332212SOURCE="447443332211"DESTINATION="447443332212"SMS_BODY="Test message"try:res=api.send_sms_message(SOURCE,DESTINATION,SMS_BODY)print(res)exceptVoximplantExceptionase:print("Error:{}".format(e.message))Get a call history itemfromvoximplant.apiclientimportVoximplantAPI,VoximplantExceptionimportpytzimportdatetimeif__name__=="__main__":api=VoximplantAPI("credentials.json")# Get the first call session history record from the 2012-01-01 00:00:00 UTC to the 2014-01-01 00:00:00 UTCFROM_DATE=datetime.datetime(2012,1,1,0,0,0,pytz.utc)TO_DATE=datetime.datetime(2014,1,1,0,0,0,pytz.utc)COUNT=1try:res=api.get_call_history(FROM_DATE,TO_DATE,count=COUNT)print(res)exceptVoximplantExceptionase:print("Error:{}".format(e.message))
Package: voxio
Voxio: I/O package for 3D imagesUsageRead images in parallel withsimple_read_images(image_paths); convenience function with findersimple_find_read_images(image_directory, image_format)Read volumes that would require more than system memory in chunks, use reader to perform compute/analysischunk_read_stack_images(image_paths,  image_reader)Remove artifacts from volume with single objectclear_everything_but_largest_object(image_paths, output_directory)Alternative toscipy.ndimage.labelfor situations with insufficient memorylabel_binary_image(image_paths, output_directory)Interpolate along the first dimension (z-axis)morphological_interpolation_max_resolution_spacing(labeled_stack, ceiled_inter_stack_voxel_distance)Installationpipinstallvoxio
Package: voxjar
voxjar=======.. image:: https://readthedocs.org/projects/voxjar/badge/?version=latest:target: http://voxjar.readthedocs.io/en/latest/?badge=latest|Python implementation of the `Voxjar`_ `API`_.*NOTE*: This library is under active development and should not be considered stable... inclusion-marker-do-not-removeinstallation------------.. code:: bash$ pip install voxjardocumentation-------------https://voxjar.readthedocs.io.. _Voxjar: https://voxjar.com/.. _API: https://api.voxjar.com:9000/graphiql
Package: voxscribe
voxscribeExtract text from .wav and .mp3 files.Install with:pip install voxscribeFFmpeg also needs to be installed and in your PATH.It can be obtained here:https://ffmpeg.org/Usage:from voxscribe import get_text_from_url, get_text_from_WAV, get_text_from_MP3
# For web hosted audio (mp3 or wav needs to be specified in the second argument)
text = get_text_from_url("https://github.com/matt-manes/voxscribeTestAudio/blob/main/testaudio.mp3?raw=true", '.mp3')
#For local files
text = get_text_from_MP3('some/filePath/someAudio.mp3')
#or
text = get_text_from_WAV('some/other/filePath/someOtherAudio.wav')
Package: voxtool
VoxTool 2.0SetupTo install VoxTool, simply do:pip install voxtoolWe recommend using voxtool within a virtual environment. If you have anaconda installed, you can do:conda create -n vtThis creates an environment namedvtin which to run voxTool. You can then install VoxTool within that environment by doing:conda activate vt
pip install voxtoolRunningInside the environment where VoxTool is installed, type in the terminal:voxtoolThis will bring up the main VoxTool window.UsageLoad a CT file, adjusting the threshold as necessary. To adjust the
threshold, change the number in the bar at the top of the window
markedCT Threshold, then press theUpdatebutton next to it.If continuing a previous localization: load the existing coordinates
from a JSON coordinate file using theLoad Coordinatesbutton.PressDefine leadsto set the names, shapes, types, and microcontacts
for each implanted lead. Shapes are rows x columns.Select the lead you wish to localize in the dropdown menu labeledLabelin the upper left cornerClick on the CT to highlight the next contact on that lead, then pressSubmitto mark its locationAlternatively, press theSeedingbutton to turn on seeding. VoxTool
will attempt to extrapolate the locations of the remaing contacts
as you select them, incrementing the contact number. Be sure to double-check that
the results make sense, as occasionally two contacts
will be given the same locationAlternatively, add the ends of a strip or depth
or the corners of the grid with theSubmitbutton, then press
theInterpolatebutton. VoxTool will attempt to fill in the lead.
It may not be completely successful. PressingInterpolateagain
may interpolate additional contacts.PressAdd Micro-Contactsto add micro-contacts to any macro/micro leads.Press theSave asbutton to save the list of localized contacts.
If the checkbox labelledInclude Bipolar Pairsis checked, locations
will also be saved for the midpoint of each pair of neighboring contacts.Keyboard Shortcuts:ButtonKey SequenceLoad ScanCtrl-ODefine LeadsCtrl-DSave AsCtrl-SSubmit (contact panel)SSubmit (lead definition window)SDelete (contact panel)DeleteDelete (lead definition window)DeleteConfirm (lead definition window)EnterOther NotesThe list of contact names is sorted by lead name, and within each
lead by contact number. TheInterpolatebutton does not always assign
contact numbers in the expected order, so be sure to double-check
that the numbers it has assigned are the ones that you want after using
it.
Package: voxx-cli
Project Voxx CLIThis is a command line interface client for Voxx.Installationpip install voxx-cliUsageUsage: voxx-cli [options] <arg>

-h   --help                      show this help message and exit
-a   --address ADDRESS           voxx server address
-u   --user USERNAME             username to register as
-v   --version                   show program's version number and exitCurrently, there is a Voxx server instance running atrepo.cyr1en.com:8008.
To connect to this Voxx server, you can run:voxx-cli -a repo.cyr1en.com:8008 -u <username>
Package: voxypy
VoxyPyA data structure for Voxel operations.UsesNumPyfor speed and efficiency.Uses a modified version ofnumpy-vox-iofor IO operations.Quickstartfromvoxypy.modelsimportEntity,Voxeldense=np.zeros((10,10,10),dtype=int)entity=Entity(data=dense)entity.set(x=1,y=2,z=3,42)voxel=entity.get(1,2,3)# Voxel object with value 42voxel.add(1)# Voxel object with value 43new_voxel=Voxel(255)new_voxel.add(1)# Returns Voxel object with value 1entity.set(5,5,5,new_voxel)entity.set(5,5,5,69)entity=Entity().from_file('old_entity.vox')# optionalentity.set_palette_from_file('palette.png')entity.save('new_entity.vox')Full documentation can be foundhereHelpful LinksVoxyPy Full DocumentationVoxyPy GitLab repoClaytone's blog for development commentaryNumPyMagicaVoxel voxel editor
Package: voyager
Voyageris a library for performing fast approximate nearest-neighbor searches on an in-memory collection of vectors.Voyager features bindings to both Python and Java, with feature parity and index compatibility between both languages. It uses the HNSW algorithm, based onthe open-sourcehnswlibpackage, with numerous features added for convenience and speed. Voyager is used extensively in production at Spotify, and is queried hundreds of millions of times per day to power numerous user-facing features.Think of Voyager likeSparkey, but for vector/embedding data; or likeAnnoy, but withmuch higher recall. It got its name because it searches through (embedding) space(s), much likethe Voyager interstellar probeslaunched by NASA in 1977.InstallationPythonpipinstallvoyagerJavaAdd the following artifact to yourpom.xml:<dependency><groupId>com.spotify</groupId><artifactId>voyager</artifactId><version>2.0.0</version></dependency>You can find the latest version onVoyager's Releases page.ScalaAdd the following artifact to yourbuild.sbt:"com.spotify" % "voyager" % "2.0.0"You can find the latest version onVoyager's Releases page.CompatibilityOSLanguageVersionx86_64 (Intel)arm64 (ARM)LinuxPython3.7✅✅LinuxPython3.8✅✅LinuxPython3.9✅✅LinuxPython3.10✅✅LinuxPython3.11✅✅LinuxPython3.12✅✅LinuxJava8-16+✅✅macOSPython3.7✅✅macOSPython3.8✅✅macOSPython3.9✅✅macOSPython3.10✅✅macOSPython3.11✅✅macOSPython3.12✅✅macOSJava8-16+✅✅WindowsPython3.7✅❌WindowsPython3.8✅❌WindowsPython3.9✅❌WindowsPython3.10✅❌WindowsPython3.11✅❌WindowsPython3.12✅❌WindowsJava8-16+✅❌ContributingContributions tovoyagerare welcomed!
SeeCONTRIBUTING.mdfor details.LicenseVoyager is copyright 2022-2023 Spotify AB.Voyager is licensed under theApache 2 License.
Package: voyager-cpu
Voyager CPUVoyager is a (very) experimental Python emulator of a 32-bit RISC-V core. It's built for research and education with simplicity in mind.FeaturesSupports the RV32I ISA using a non-pipelined CPU with a single-cycle instruction fetch, decode, and execution stage.A simple virtual RAM into which test programs (ELF binaries) are loaded.Theofficial RISC-V ISA testscan be used for this purpose (see below).A basic REPL for viewing register and RAM contents, and executing the next N cycles.MIT license.Build and Run(Optional) Clone the pre-built RV32UI tests using:git submodule init
git submodule updateThe binaries will be placed undertests/riscv-tests-prebuilt-binaries/. Alternatively, you can build thetest suites from the official repo.See the example insrc/voyagercpu/example.py. You may run this directly usingpython src/voyagercpu/example.py.Enjoy!(Optional) Run the Voyager unit tests usingpytestTodoAdd more tests, particularly at the execution stage.Implement some ISA extensions, e.g. the M and C specifications.Add pipelining and privileged mode.Improve pretty printing.Etc.Please contribute!
Package: voyager-dev
✨ Coding Assistant ✨This project aims to develop a usable coding agent, which will work iteratively in collaboration with a developer.At the current time, BabyAgi/AutoGPT approaches are too unstable to be of very much assistance. However, there is every reason to develop an agent that learns from its environment, from its mistakes, and from your chat history. In the future we hope to allow it to develop LangChain tools as needed (Voyager).UsageAfter installation, you can runvoyager_devfrom anywhere on the command line. You may optionally provide a prompt,voyager_dev what is the weather today?, or you can just hit enter and it will ask you for a prompt.For more complex prompts, place them in a file and provide the filename as the prompt. For example,voyager_dev myprompt.txt. This enables multiline prompts more easily.InstallationYou can install this fromPyPiwithpip install voyager_dev.Alternatively, you can clone this repository. Then to install this repository as a global Python CLI tool, runpip install -e .Either way, you should also put your OpenAI and Google Search API keys in your .bashrc or .zshrc file, like this:export OPENAI_API_KEY=yourkeyhere
export GOOGLE_API_KEY=yourkeyhere
export GOOGLE_CSE_ID=yourkeyhereYou can get the latter two by creating the GOOGLE_API_KEY in theGoogle Cloud credential consoleand a GOOGLE_CSE_ID using theProgrammable Search Engine. Examine the output carefully the first time you run it, Google may return a detailed error telling you how to fix it.Finally, install and run redis (for the memory store) withbrew install redisandbrew services start redis. (You can also useredis-serverif you don't want it to run in the background.)After that, you can simply typevoyager_devanywhere on the command line.
Package: voyapt
voyaptVoyage Analysis & Prediction Toolbox - Primarily aimed at the nautical fieldHigh-level concepts:Waypointsare 2D positions in space. Invoyapt, aWaypointis an alias fornvector.GeoPoint.ALegis the path between twoWaypoints. Invoyapt, aLegis an alias fornvector.GeoPath.ARouteis a collection of minimum twoWaypoints.Legs may be extracted from aRoute.Installationvoyaptis available onpypi:pip install voyaptExamplesSeeexamples/andtests/
Package: voyeur
.. Voyeur documentation master file, created bysphinx-quickstart on Mon Feb 24 13:55:51 2014.You can adapt this file completely to your liking, but it should at leastcontain the root `toctree` directive.Voyeur======.. image:: https://api.travis-ci.org/gilles/voyeur.png?branch=master:target: https://api.travis-ci.org/gilles/voyeurVoyeur is an simple library to serialize an object into another object.The goal is to create a representation that is easily `json.dumps()` friendly.I've made it while working with datastore such as Riak, MongoDB or CouchBase where the response is a dict andI wanted to transform it into another dict for API output.Quickstart----------It's as easy as this:.. code-block:: pythonfrom voyeur import viewdefinition = {'id': int}data = {'id': '1'}result = view(data, definition)assert result = {'id' : 1}The definition is a dictionary with key/callable pairs. Voyeur will use the key to get the value from the data then apply the callable.Using objects-------------That works too:.. code-block:: pythonfrom voyeur import viewdefinition = {'id': int'prop': int}class Data(object):id = 1@propertydef prop(self):return "12"result = view(Data(), definition)assert result = {'id' : 1, 'prop' : 12}Using runtime parameters------------------------A callable can take any kwargs and use them.. code-block:: pythonfrom voyeur import viewdef mycallable(value, test=None):return "foo:%s:%s" % (value, test)definition = {'id': int'prop': mycallable}class Data(object):id = 1@propertydef prop(self):return "12"result = view(Data(), definition, test='bar')assert result = {'id' : 1, 'prop' : 'foo:12:bar'}More complex types------------------Voyeur can take a class as a callable if it inherits from :py:class:`voyeur.types.Type`. This allows building more complex serializer.A good example is the :py:class:`voyeur.types.Type` that reads the value from a different field... code-block:: pythonfrom voyeur import viewdefinition = {'field': DeferredType('anotherfield', int),}data = {'anotherfield': '2'}result = view(data, definition)assert result == {'field':2}Indices and tables==================.. toctree:::maxdepth: 2api* :ref:`genindex`* :ref:`modindex`* :ref:`search`
Package: voynich
Voynich Manuscript Parser and ResourcesPure Python parser for theIVTFFformattedZL transliterationof theVoynich Manuscript.Intended for NLP/ML/DL use on the Voynich Manuscript.voynich.VoynichManuscriptis what you'll likely mostly be using, it containsvoynich.Pages, which containvoynich.Lines.Example usage (subject to change):>>>fromvoynichimportVoynichManuscript>>>vm=VoynichManuscript(path_to_txt,inline_comments=False)>>>print(vm)VoynichManuscript(num_pages=227,inline_comments=False)>>>print(vm.pages["f1r"])Page(page_name=f1r,quire_num=None,folio_num=None,num_lines=31,illust_type=None)>>>print(vm.pages["f1r"][0])Line(<%>fachys.ykal.ar.ataiin.shol.shory.[cth:oto]res.y.kor.sholdy)>>>print(vm.pages["f1r"][0].text)<%>fachys.ykal.ar.ataiin.shol.shory.[cth:oto]res.y.kor.sholdy>>>print(vm.get_paragraphs()[0])'fachys.ykal.ar.ataiin.shol.shory.cthres.y.kor.sholdy.sory.ckhar.or,y.kair.chtaiin.shar.ase.cthar.cthar,dansyaiir.sheky.or.ykaiin.shod.cthoary.cthes.daraiin.sysoiin.oteey.oteos,roloty.cthiar,daiin.okaiin.or.okansair,y.chear.cthaiin.cphar.cfhaiinydaraishy'EachPageobject also contains a list of paragraphsPage.paragraphs. These paragraphs have some additional processing on them, removing paragraph markers (<%>and<$>), gap indicators (<->), and (currently) chooses the first possible interpretation of ambiguous characters (i.e.[o:a]->o). For future work, will update paragraph parser to produce one paragraph for every possible combination of ambiguous characters.
Package: vp
Markup Text EditorThis package can be used to format the text in a way with the specified markups. The notations followed in the markup are below:**within double asterisk** -- Bold//within two forward slashes// -- Italics__within two underscores__ -- Underlined$$within two dollars$$ -- Strike through* item 1* item 2 -- Unordered list with two items\1. item 1\2. item 2 -- Ordered list with two items[link](address) -- LinkWhat it does?The package will convert these into corresponding HTML tags html tags.InstallationInstall the pacakge using pip (or) pip3. [For python3]pip install markup-editorIt has the following functions.import markup-editor as meme.bold()me.italics()me.underline()me.strike()me.bullets()me.number()me.link()Each will return the corresponding HTML tags.
Package: vpack
VpackA package containing a lot of useful utilities for Python developing and debugging.FeaturesSigview: pressCtrl+Cto print the current stack instead of exiting.Breakpt: set always-on, at-time, on-error breakpoints conveniently.Reload: reload modules by names.To-do:Vartrace: figure out how a variable changes over time, with a statistical chart or a live counter.Installationpipinstall--upgradevpackExamplesSigviewSigview is a signal handler. It will print the current running information (e.g. file, lineno, code, stack) whenCtrl+Cis pressed.Enable sigview:fromvpackimportsigviewsigview.enable()# your code goes hereNow run your script and you will see the following output:$ python examples/sigview_example.py
(vpack): Sigview enabled. Press ^C to see the current frame. Press ^C again to exit.
1
2
1PressCtrl+Cto see the current frame, possible outputs:^C(vpack): Current file:
examples/sigview_example.py:11 in main
(vpack): Current stask:
+----------------------------------------------------------+
| File "examples/sigview_example.py", line 14, in <module> |
|   main()                                                 |
|                                                          |
| File "examples/sigview_example.py", line 11, in main     |
|   time.sleep(2)                                          |
+----------------------------------------------------------+PressCtrl+Ctwice (in 0.5 seconds) to exit.You can also usesigview.enable(openshell=True)to open a new shell when Ctrl+C is pressed.Seesigview_example.pyandsigview_openshell_example.py.mdfor more details.BreakptBreakpt is a convenient way to set breakpoints..at(n)will try to open an interactive IPython shell (or pdb) when thislinehas been executedntimes..onerror()will try to open a PDB shell when an Exception is raised.You can usebreakpt.enable()andbreakpt.disable()to enable and disable breakpt.fromvpackimportbreakptforiinrange(10):print(i)breakpt.at(8)# break at i = 7breakpt.at(5)# break at i = 4foriinrange(6):print(i)ifi==2:breakpt.disable()# disable breakptifi==4:breakpt.enable()# enable breakptbreakpt.always()# break at i = 0, 1, 4, 5breakpt.onerror()a=[1,2,3]foriinrange(5):print(a[i])# will break at i = 3Seebreakpt_example.pyfor more details.ReloadReload modules by names, seereload_example.pyfor more details.