Saravanan666/pypi-org huggingface dataset:
Package: bprof
bprofA Better PROFilerFree software: MIT licenseDocumentation:https://bprof.readthedocs.io.IntroductionThe reason bprof exists is that the major Python profiling packages simply don't profile robustly. They use timestamps and ad-hoc methods for keeping track of how time passes. For example, one approach is to timestamp when a function starts and when it stops, and then count this as the function time. This includes time spent in the profiling hooks.The approach taken here is to integrate all of the time between hooks and add it to the appropriate records. By registering for all hooks except for opcodes, the time spent out of the profiler is directly measured. The time is measured right after entering bprof, and right before exiting. This allows for as rigorous time measurement as possible. Then, stacks are used to track the current contexts and record detailed profiling information.ExampleCode:importbprof._bprofasbpimporttimedeff():time.sleep(1)bp.start()f()bp.stop()bp.dump("")Results:Name: f, 1.2142e-05
1.00074(6.21e-07/1.00074):     time.sleep(1)
Name: <built-in function stop>, 0
Name: <built-in function sleep>, 1.00074FutureThere is a lot of future work. This is just a first pass.Save statisticsHistory0.1.0 (2019-10-10)First release on PyPI.
Package: bpsgeodb
bpsgeodbBPS Geodatabase - API Authorization and Access Python ModulesThe objective of this module is to facilitate the authorization flow in our API.
More information about the API you can find in the DEVELOPER DOCS section of the BPS Geodatabase.Installationpip install bspgeodbCode Exampleimport bpsgeodb
import pathlib
import dotenv

from pprint import pprint

# Access to the API requires authorization.
# You must set up all necessary environment variables for the Authorization
# to work. Optionally you may read the environment variables from .env file.
# ATTENTION: Make sure you do not add your API KEYS to any code repository.

env_path = pathlib.Path('.') / '.env'
dotenv.load_dotenv(dotenv_path=env_path)

# create a BPS Geodb API Service instance
api = bpsgeodb.ApiService()

# Start authorization
api.authorize()

# Get all wells with Oil Geochemistry data
data = api.getData("oil_geochemistry/wells")

# Print API response
pprint(data)
Package: bpsproxy
UNDER DEVELOPMENTBlender Power Sequencer ProxyThis is astandalone python packageas well as a module which is used under the hood in theBlender Power Sequencer add-onto generate better proxies to be used in Blender.InstallIt can be installed as a standalone command line utilityvia PiPy:pip install [--user] bpsproxy.Notethat you have to have$HOME/.local/binincluded in your$PATHenvironment variable (on unix) if you're going to install the utility locally (using--userwhen executingpip).UsageAfter installing the script, get help by writingbpsproxy -h:usage: bpsproxy [-h] [-p {webm,mp4,nvenc}] [-s {25,50,100} [{25,50,100} ...]]
                [-v] [--dry-run]
                [working_directory]

Create proxies for Blender VSE using FFMPEG.

positional arguments:
  working_directory     The directory containing media to create proxies for

optional arguments:
  -h, --help            show this help message and exit
  -p {webm,mp4,nvenc}, --preset {webm,mp4,nvenc}
                        a preset name for proxy encoding
  -s {25,50,100} [{25,50,100} ...], --sizes {25,50,100} [{25,50,100} ...]
                        A list of sizes of the proxies to render, either 25,
                        50, or 100
  -v, --verbose         Increase verbosity level (eg. -vvv).
  --dry-run             Run the script without actual rendering or creating
                        files and folders. For DEBUGGING purposesExternal DependenciesBPSProxyrequiresffmpegffprobeto be available in the$PATHenvironment variable in order to work. In caseBPSProxywill catch a missing dependency it will throw a message error similar to this:ERROR:BPS:BPSProxy couldn't find external dependencies:
[X] ffmpeg: NOT FOUND
[X] ffprobe: NOT FOUND
Check if you have them properly installed and available in the PATH environemnt variable.
~ Exiting.
Package: bpsrender
This is astandalone python
packageas well as a module
which is used under the hood in theBlender Power Sequencer
add-onto speed
up renderingVSE
projectsby spawning Blender processes in background in parallel.InstallIt can be installed as a standalone command line utilityvia
PiPy:pip install[--user]bpsrender.Notethat you have to have$HOME/.local/binincluded in your$PATHenvironment variable (on
unix) if you’re going to install the utility locally (using--userwhen executingpip).UsageAfter installing the script, get help by writingbpsrender-h:usage: bpsrender [-h] [-o OUTPUT] [-w WORKERS] [-v] [--dry-run] [-s START]
                 [-e END] [-m] [-c] [-d] [-j]
                 blendfile

Multi-process Blender VSE rendering - will attempt to create a folder called
`render` inside of the folder containing `blendfile`. Insider `render` another
folder called `parts` will be created for storing temporary files. These files
will be joined together as the last step to produce the final render which
will be stored inside `render` and it will have the same name as `blendfile`

positional arguments:
  blendfile             Blender project file to render.

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        Output folder (will contain a `bpsrender` temp folder
                        forrendering parts).
  -w WORKERS, --workers WORKERS
                        Number of workers in the pool (for video rendering).
  -v, --verbose         Increase verbosity level (eg. -vvv).
  --dry-run             Run the script without actual rendering or creating
                        files and folders. For DEBUGGING purposes
  -s START, --start START
                        Start frame
  -e END, --end END     End frame
  -m, --mixdown-only    ONLY render the audio MIXDOWN
  -c, --concatenate-only
                        ONLY CONCATENATE the (already) available video chunks
  -d, --video-only      ONLY render the VIDEO (implies --concatenate-only).
  -j, --join-only       ONLY JOIN the mixdown with the video. This will
                        produce the final renderExternal DependenciesBPSRender requiresblenderffmpegto be available in the$PATHenvironment variable in order to work.
In case BPSRender will catch a missing dependency it will throw a
message error similar to this:BPSRender couldn't find external dependencies:
[v] blender: /home/razvan/.local/bin/blender
[X] ffmpeg: NOT FOUND
Check if you have them properly installed and available in the PATH environemnt variable.
Exiting...Known Issues[ ] CTRL-C interrupt leaves subprocesses running in the background[ ] CTRL-C interrupt doesn’t clean the folders yet
Package: bpssl
bpssl is a Django application that helps you support
HTTPS on your website. The main functionality is performing redirection
for HTTPS only URLs and views. For instance, if a request for your
login view ‘/login’ is recieved over HTTP, the provided middleware can
redirect the user to the equivalent HTTPS page.Specifying views and urls as secure is supported as areflatpages.Fastcgiand HTTP proxy setups are also well supported. See the documentation at:English:http://beproud.bitbucket.org/bpssl-1.0.2/en/日本語:http://beproud.bitbucket.org/bpssl-1.0.2/ja/bpssl draws inspiration from the well known SSL Middleware snippets on
djangosnippets.org. It roughly supports the features of the following
snippets:http://djangosnippets.org/snippets/880/http://djangosnippets.org/snippets/240/http://djangosnippets.org/snippets/1999/Please file bugs at:http://bitbucket.org/beproud/bpssl/issues/Middlewarebpssl provides anSSLRedirectMiddlewarewhich can redirect users from
secure pages to non-secure pages and visa-versa. Urls are set up by adding
regular expressions to theSSL_URLSsetting in settings.py.SSLRedirectMiddlewarecan also be extended to support more specific use
cases.ssl_view decoratorbpssl provides anssl_view()decorator which can be used instead of theSSL_URLSto specify that a particular view should be secure.DevelopmentGenerally you will want to develop bpssl in a virtualenv with pip:$ mkvirtualenv bpsslYou can install the requirements using the requirements.txt and pip:$ pip install -r setup/requirements.txtAnd run tests normally using setup.py:$ python setup.py testCHANGES1.0.3Support for tests running up to Django 1.7 and Python 3.41.0.2Fixed issue with get_host() function in Django 1.51.0.1Fixed SSL_REQUEST_HEADER setting to use the custom setting, if available (Thanks Gabriel Grant)1.0Initial Release
Package: bp.tagging
bp.tagging contains a set of convenience wrappers for mutagen
as well as a single command line script for basic ID3 tag manipulation.Command line usagebp_tagging COMMAND [ARGS…]bp_tagging help [COMMAND]Options-h,--helpshow this help message and exitCommandshelp (?)give detailed help on a specific sub-commandinfo (i)print available metadata for filesUsagebp_tagging info [PATHS…]Options-h,--helpshow this help message and exit-v,--verboseprint extra information-d,--debugprint debug informationremove_tag (rmt)completely remove TAG from files.Usagebp_tagging remove_tag TAG [PATHS…]Options-h,--helpshow this help message and exit-v,--verboseprint extra information-d,--debugprint debug informationremove_tag_with_content (rmtc)remove tags with value PATTERN from files.Usagebp_tagging remove_tag_with_content PATTERN [PATHS…]Options-h,--helpshow this help message and exit-v,--verboseprint extra information-d,--debugprint debug informationreplace_in_tag (rpt)replace PATTERN with REPLACEMENT in TAG on files. Use ‘all’ for tag to replace in all tags.Usagebp_tagging replace_in_tag TAG PATTERN REPLACEMENT [PATHS…]Options-h,--helpshow this help message and exit-v,--verboseprint extra information-n,--nosavedon’t save (only print what would be done).-d,--debugprint debug informationtag (t)get/set the VALUE for TAG on files.Usagebp_tagging tag TAG [VALUE [PATHS…]]Options-h,--helpshow this help message and exit-v,--verboseprint extra information-s,--setset the tag value-d,--debugprint debug informationChangelog0.3completely revised command line usage (not compatible with prior versions!)switched from Baker to cmdln0.2Added preference infarastructure
(usinghttp://pypi.python.org/pypi/bp.preferences)Added filename_from_tags property to FileExpose filename_from_tags as tags2filename command0.1.1Recreated the project with modern-package-template
(http://pypi.python.org/pypi/modern-package-template/1.0).0.1Initial release
Package: bpwave
Blood Pressure Waveform Processing Toolbox // Vérnyomáshullám-feldolgozó eszközök.WarningWork in progress. Any modules are subject to breaking changes.
When using this package, please always specify the exact version number.Installation$ cd <project_root>
$ pip install -U .Generating documentation$ cd <project_root>
$ pip install -U .[docs]
$ cd <project_root>/docs
$ make clean
$ make htmlThis creates<project_root>/docs/build/html/index.html,
that can be opened in a browser.Tests$ cd <project_root>
$ pip install -U .[tests]
$ python -m pytest
$ python -m pytest --cov --cov-report=htmlTests requiring human evaluation (like visualisations) can be skipped or run
separately (these are marked with the@pytest.mark.humandecorator):$ python -m pytest -m human
$ python -m pytest -m "not human"BP waveforms used for tests and examples were downloaded from theAutonomic Aging: A dataset to quantify changes of cardiovascular autonomic function during healthy aging[AAC]dataset of[PhysioNet].DevelopmentThis project uses some automated QA and source formatting tools, such asisort,Flake8,Blackandmypy:$ cd <project_root>
$ pip install -U .[dev]
$ isort .
$ flake8 .
$ black .
$ mypy .References[AAC]Schumann, A., & Bär, K. (2021).
Autonomic Aging: A dataset to quantify changes of cardiovascular autonomic
function during healthy aging (version 1.0.0). PhysioNet.https://doi.org/10.13026/2hsy-t491.[PhysioNet]Goldberger, A., Amaral, L., Glass, L., Hausdorff, J., Ivanov, P. C.,
Mark, R., … & Stanley, H. E. (2000).
PhysioBank, PhysioToolkit, and PhysioNet: Components of a new research
resource for complex physiologic signals. Circulation [Online]. 101 (23),
pp. e215–e220.0.0.2 (2024-02-27)Breaking changes:Signal.copy: arguments made keyword-onlyFeatures:CpIndices.NAMESNew attributeSignal.slicesSlicingSignalby time or onsets:by_t,by_onset.Signal.t2iaccepts backward (negative) time point.Fixes:Error message inSignal.chpointssetter.Typing ofSignal.y.Validate inSignalthaty,tandmarksvalue is 1D
(to prevent scalar values from wrongly callednumpyfunctions).0.0.1 (2023-01-12)First release.
Package: bpy
BlenderBlenderis the free and open source 3D creation suite. It supports the entirety of the 3D pipeline—modeling, rigging, animation, simulation, rendering, compositing and motion tracking, even video editing.This package provides Blender as a Python module for use in studio pipelines, web services, scientific research, and more.DocumentationBlender Python APIBlender as a Python ModuleRequirementsSystem requirementsare the same as Blender.Each Blender release supports one Python version, and the package is only compatible with that version.Source CodeReleasesRepository:projects.blender.org/blender/blender.gitCreditsCreated by theBlender developer community.Thanks to Tyler Alden Gubala for maintaining the original version of this package.
Package: b.py
ImportantAs of 2016-02-26, this project is under bugfix-only status and you are also
required to provide your own OAuthClient IDif you are usingb.pywith
Blogger; and you will need to re-authorize.If you would like to take over the project, please contact project owner on
Bitbucket.Enabling bloggers to publish posts in their favorite markup language to Blogger
or WordPress.Examplesb.py-sbloggerpostfoobar.rstb.py-swordpresspostfoobar.mdMore informationDocumentationb.pyon BitbucketPyPI
Package: bpy-cuda
blenderpyBlender as a python module with easy-installAboutMeant for installation into a virtualenv or wherever, for unit testing of Blender extensions being authored, or developement of a Blender 3d-enabled Python application.Depends upon thebpy-buildmodule to make sure the Blenderbpymodule environment is correct.For more information, please see:bpy-build repositoryGetting StartedPrebuilt wheels are provided for popular Platforms (MacOS, Windows, and Ubuntu). Prebuilds include "normal" installation (bpy), CUDA (bpy-cuda) and Optix (bpy-optix). Choosing the correct version depends on your use-case and hardware but in generalbpyshould be just fine for non-rendering automation tasks whilebpy-optixhas the best performance but requires a NVIDIA RTX Card and up to date drivers.InstallingInstalling a prebuilt on these platforms is simple.pip install bpy && bpy_post_installSelf BuildingBuilding the Blender API for your own platform can be difficult, however this repo should make it easy enough for you to create your own builds by hand.Build fromsdistYou can build from a source distribution usingpip.PrerequisitesPerforming a build fromsdistrequires at least the prerequisites for building Blender. See the wiki forthe list of prerequisite applications.Windowspy-3.7-64-mpipinstall--upgradepipwheelfuture-fstringsOtherpython3.7-mpipinstall--upgradepipwheelfuture-fstringsBuildWindowspy-3.7-64-mpipinstallbpy--no-binaryOtherpython3.7-mpipinstallbpy--no-binaryBuild from repoYou can also build after cloning the repository, this is helpful during development.Prerequisitespython3-mpipinstall--upgradepipwheelfuture-fstrings
gitclonehttps://github.com/TylerGubala/blenderpy.gitBuildIf you have a specific version ofbpyyou want, you have to change theVERSIONstring at the beginning of thebpy_<optional extra>_setup.pyfile.To build, run the below command.Windowspy bpy_setup.py sdist bdist_wheelOtherpython3 bpy_setup.py sdist bdist_wheelThe resultant wheel in the dist folder can be installed using pip.Post any errors you have as an issue.FAQQ. I am gettingfailed to find 'bpy_types' moduleA. Please seeissue #13Q. I am gettingImportError: DLL load failed: The specified module could not be foundA. Please seeissue #15Q. How do I import addons?A. Addons (Blender internal and third party) can be imported using the codereferenced here.Q. How can I use Blender inmultiprocessing?A. Blender runtime usage and compatibility withmultiprocessingis limited, seethe documentation.Q. What about my operating system of choice?A.MacOS support is on its way. After that is Ubuntu.Q. What about my Python version of choice?A. Some builds you will have to make yourself if you have a specific version of the API you want. Likewise, if you are contrained to a specific Python version (especially those that aren't shipped by python.org) then you may have to try and build yourself.GotchasI have not tested this for platforms other than Windows Python 3.6.x at the moment. More to come soon.
Package: bpy-dev-utils
BPY Dev UtilitiesThis is a personal collection of simple CLI utilities that I made to help my development of Blender addons.Installationpipinstallbpy-dev-utilsORpoetryaddbpy-dev-utilsInstall Toolbpyinstall<src-dir><blender-addons-dir>Installs addons directly from their source files into the specified Blender addons installation directory.Arguments:src-dir: Directory where addon sources are located. egMyProject\srcblender-addons-dir: Blender addon installation directory. eg\Blender\3.2\scripts\addonsOptions:--excluded-addons: Addon names to be excluded from installation. eg["Addon1", "Addon2"]--remove-suffixes: File types to be deleted before installation. eg[".pyc", ".txt"]--blender-exe: Path to blender exe. eg\Blender\blender.exe--reload-blender: Load blender and enable addons, requires --blender-exe to be set. egTrue--help: Show help.Symlink Toolbpysymlink<src-dir><blender-addons-dir>Creates symlinks to the addon source in the specified Blender addons installation directory. Requires either symlink creation privileges, either through running as admin or security policy.Arguments:src-dir: Directory where addon sources are located. egMyProject\srcblender-addons-dir: Blender addon installation directory. eg\Blender\3.2\scripts\addonsOptions:--excluded-addons: Addon names to be excluded from symlink creation. eg["Addon1", "Addon2"]--remove-suffixes: File types to be deleted before symlink creation. eg[".pyc", ".txt"]--blender-exe: Path to blender exe. eg\Blender\blender.exe--reload-blender: Load blender and enable addons, requires --blender-exe to be set. egTrue--help: Show help.Packing Toolbpypack<src-dir><release-dir>Packs addons into ZIP files and automatically names them based on data extracted from the addon bl_info dictionary.Example resulting name:My Addon (v1.0.0).zipArguments:src-dir: Directory where addon sources are located. egMyProject\srcoutput-dir: Directory where the archive should be built. egMyProject\releasesOptions:--excluded-addons: Addon names to be excluded from packing. egAddon1, Addon2--remove-suffixes: File types to be deleted before packing. eg.pyc, .txt--help: Show help.Config FileAll arguments and options can be specified in apyproject.tomlfile, the script looks for this file in the current working directory.[tool.bpydevutil]blender-addons-dir="Blender\\3.2\\scripts\\addons"src-dir="blender-addons\\my-addon\\src"output-dir="blender-addons\\my-addon\\output"remove-suffixes=[".pyc",".txt"]blender-exe="Blender\\blender.exe"reload-blender=true
Package: bpy-lattice
bpy-latticeExtensions to Blender to draw accelerator latticesInstallation into BlenderBlender ships with its own Python. On macOS, this is in a place like:/Applications/Blender.app/Contents/Resources/3.1/python/bin/python3.10Developers can install using pip and the editable flag:/Applications/Blender.app/Contents/Resources/3.1/python/bin/python3.10 -m pip install -e .UsageOpen Blender, and choose the scripting tab.Paste the contents ofscriots/make_lattice.pyin the editor. Edit to point to a valid.layout_tablefile, and run the script.
Package: bpylist
Implementation of theApple’s Binary
Plistand the NSKeyedArchiver formatUsageBinary PlistsGenerating bplist is easy, and similar to theplistlibmodule in
Python’s Standard Libraryfrombpylistimportbplistbpylist.generate(my_object)Reading is easy as well. Thegeneratefunction takes a bytes object
and returns the top-level object of the binary plist.frombpylistimportbplistwithopen('myplist.plist','rb')asf:bpylist.parse(f.read())KeyedArchivesNSKeyedArchiveris an Apple proprietary serialization format for
Cocoa objects.bpylistsupports reading and writingNSKeyedArchivercompatible archives. The API is similar to the
binary plist API.Unarchiving an objectfrombpylistimportarchiverwithopen('my_archived_object','rb')asf:archiver.unarchive(f.read())Archiving an objectfrombpylistimportarchivermy_object={'foo':'bar','some_array':[1,2,3,4]}archiver.archive(my_object)Custom objectsIf you archive includes classes that are not “standard” Cocoa classes
(NSString,NSNumber,NSDate,NSNull,NSDictionaryorNSArray), you register a Python class that the Cocoa class maps to.
The Python class needs to implement theencode_archiveanddecode_archivemethods.## Define a Python ClassfrombpylistimportarchiverclassMyClass:first_property=Nonesecond_property=Nonedef__init__(self,first_property,second_property):self.first_property=first_propertyself.second_property=second_propertydefencode_archive(self,archive):archive.encode('first_property',self.first_property)archive.encode('second_property',self.second_property)defdecode_archive(archive):first=archive.decode('first_property')second=archive.decode('second_property')returnMyClass(first,second)## Register the class for the Cocoa class 'MyCocoaClass'archiver.update_class_map({'MyCocoaClass':FooArchive})LicenseMIT LicenseCopyright (c) 2017 Marketcircle Inc.Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
“Software”), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.