Saravanan666/pypi-org huggingface dataset:
Package: pybloomfiltermmap3
pybloomfiltermmap3pybloomfiltermmap3is a Python 3 compatible fork ofpybloomfiltermmapby@axiak.The goal ofpybloomfiltermmap3is simple: to provide a fast, simple, scalable, correct library for Bloom filters in Python.Why pybloomfiltermmap3?There are a couple reasons to use this module:It natively usesmmaped files.It is fast (seebenchmarks).It natively does the set things you want a Bloom filter to do.QuickstartAfter you install, the interface to use is a cross between a file
interface and an ste interface. As an example:>>>importpybloomfilter>>>fruit=pybloomfilter.BloomFilter(100000,0.1,'/tmp/words.bloom')>>>fruit.update(('apple','pear','orange','apple'))>>>len(fruit)3>>>'mike'infruitFalse>>>'apple'infruitTrueTo create an in-memory filter, simply omit the file location:>>>cakes=pybloomfilter.BloomFilter(10000,0.1)Caveat: it is currently not possible to persist this filter later.DocsCurrent docs are available atpybloomfiltermmap3.rtfd.io.InstallTo install:$pipinstallpybloomfiltermmap3and you should be set.Note to Python 2 to < 3.5 usersThis library is specifically meant for Python 3.5 and above.As of 2020, we strongly advise you to switch to an actively maintained distribution of Python 3. If for any reason your current environment is restricted to Python 2, please seepybloomfiltermmap. Please note that the latter is not actively maintained and will lack bug fixes and new features.History and Futurepybloomfiltermmapis an excellent Bloom filter implementation for Python 2 by@axiakand contributors. I,@prashnts, made initial changes to add support for Python 3 sometime in 2016 as the currentpybloomfiltermmap3onPyPI. Since then, with the help of contributors, there have been incremental improvements and bug fixes while maintaining the API from versions0.4.xand below.Some new features and changes were first introduced in version0.5.0. From this point on, the goal is to reach stability, as well as add a few more APIs to expand upon the use cases. While we can't guarantee that we won't change the current interface, the transition from versions0.4.xand below should be quick one liners. Please open an issue if we broke your build!Suggestions, bug reports, and / or patches are welcome!Contributions and developmentWhen contributing, you should set up an appropriate Python 3 environment and install the dependencies listed inrequirements-dev.txt.
Package installation depends on a generatedpybloomfilter.cfile, which requires Cython module to be in your current environment.MaintainersPrashant SinhaVytautas MizgirisLicenseSee the LICENSE file. It's under the MIT License.
Package: pybloomfiltermmap3py310
pybloomfiltermmap3pybloomfiltermmap3is a Python 3 compatible fork ofpybloomfiltermmapby@axiak.The goal ofpybloomfiltermmap3is simple: to provide a fast, simple, scalable, correct library for Bloom filters in Python.Why pybloomfiltermmap3?There are a couple reasons to use this module:It natively usesmmaped files.It is fast (seebenchmarks).It natively does the set things you want a Bloom filter to do.QuickstartAfter you install, the interface to use is a cross between a file
interface and an ste interface. As an example:>>>importpybloomfilter>>>fruit=pybloomfilter.BloomFilter(100000,0.1,'/tmp/words.bloom')>>>fruit.update(('apple','pear','orange','apple'))>>>len(fruit)3>>>'mike'infruitFalse>>>'apple'infruitTrueTo create an in-memory filter, simply omit the file location:>>>cakes=pybloomfilter.BloomFilter(10000,0.1)Caveat: it is currently not possible to persist this filter later.DocsCurrent docs are available atpybloomfiltermmap3.rtfd.io.InstallTo install:$pipinstallpybloomfiltermmap3and you should be set.Note to Python 2 to < 3.5 usersThis library is specifically meant for Python 3.5 and above.As of 2020, we strongly advise you to switch to an actively maintained distribution of Python 3. If for any reason your current environment is restricted to Python 2, please seepybloomfiltermmap. Please note that the latter is not actively maintained and will lack bug fixes and new features.History and Futurepybloomfiltermmapis an excellent Bloom filter implementation for Python 2 by@axiakand contributors. I,@prashnts, made initial changes to add support for Python 3 sometime in 2016 as the currentpybloomfiltermmap3onPyPI. Since then, with the help of contributors, there have been incremental improvements and bug fixes while maintaining the API from versions0.4.xand below.Some new features and changes were first introduced in version0.5.0. From this point on, the goal is to reach stability, as well as add a few more APIs to expand upon the use cases. While we can't guarantee that we won't change the current interface, the transition from versions0.4.xand below should be quick one liners. Please open an issue if we broke your build!Suggestions, bug reports, and / or patches are welcome!Contributions and developmentWhen contributing, you should set up an appropriate Python 3 environment and install the dependencies listed inrequirements-dev.txt.
Package installation depends on a generatedpybloomfilter.cfile, which requires Cython module to be in your current environment.MaintainersPrashant SinhaVytautas MizgirisLicenseSee the LICENSE file. It's under the MIT License.
Package: pybloom-live
This bloom filter is forked from pybloom, and its tightening ratio is changed to 0.9, and this ration is consistently used. Choosing r around 0.8 - 0.9 will result in better average space usage for wide range of growth, therefore the default value of model is set to LARGE_SET_GROWTH.
This is a Python implementation of the bloom filter probabilistic data
structure. The module also provides a Scalable Bloom Filter that allows a
bloom filter to grow without knowing the original set size.
Package: pyblosxomdrafts
# pyblosxomdraftsA [PyBlosxom](https://pyblosxom.github.io/) plugin that lets you save draft
blog entries.Any entries with a “drafts” folder anywhere in their path are considered drafts.
For example:entries/drafts/my-draft-post.txt
entries/category/sub-category/drafts/another-draft-post.txt
entries/drafts/sub-category/yet-another-draft-post.txtDrafts will be filtered out from all index pages, such as the front page of
your blog, category pages, and feeds. But if you visit a draft’s permalink
page (e.g./drafts/my-draft-post) directly in your browser, then you’ll see
the draft post rendered.To publish a draft entry simply move the file out of the drafts folder.## InstallationInstall the pyblosxomdrafts package from pip:pip install pyblosxomdraftsThen add it to theload_pluginssetting in yourconfig.py:py[“load_plugins”] = [‘pyblosxomdrafts’]
Package: pyblosxommtimecache
# pyblosxommtimecachepyblosxommtimecache is a [PyBlosxom](https://pyblosxom.github.io/) filestat
plugin that caches your entries mtimes in a.mtimes.yamlfile in your
datadir.The first time it sees each new blog entry, pyblosxommtimecache will add the
entry’s mtime to the.mtimes.yamlfile. It then makes PyBlosxom use these
cached mtimes as the mtimes of your blog entries, instead of using the mtimes
of the files themselves.This means that if you edit an entry its mtime won’t change and it won’t jump
to the top of your blog. It also means that PyBlosxom isn’t doing costlyos.stat()calls on every entry file every time it renders a page.pyblosxommtimecache will automatically create the.mtimes.yamlfile for you
the first time it runs.The.mtimes.yamlfile is a simple [YAML](http://yaml.org/)-formattedtext
file. If you want to change the mtime of an entry you can just edit this file
by hand. If an entry is deleted from the file, or if the entire file is
deleted, it’ll just be regenerated using the current mtimes of your entry
files.## InstallationInstall the pyblosxommtimecache package from pip:pip install pyblosxommtimecacheThen add it to theload_pluginssetting in yourconfig.py:py[“load_plugins”] = [“pyblosxommtimecache.mtimecache”]
Package: pyblosxomsimplemarkdown
# pyblosxomsimplemarkdownpyblosxomsimplemarkdown is a [PyBlosxom](https://pyblosxom.github.io/)
entryparser plugin that lets you write your entries in
[Markdown](http://daringfireball.net/projects/markdown/). Specifically,
[Python Markdown](https://pythonhosted.org/Markdown/) is used.pyblosxomsimplemarkdown differs from other PyBlosxom Markdown plugins in that
it treats the entire contents of the entry file as just the entry body.
Normally PyBlosxom treats the first line of an entry as its title, any
following lines that start with#as metadata, and the rest of the file as
the entry’s body:This is the title
#key value
#foo barThe rest of the file is the Markdown-formatted entry body…pyblosxomsimplemarkdown just treats the entire contents of the file as a
Markdown-formatted body. The entry dict won’t have any value in its ‘title’
field. If you want to write a traditional blog post with a title and body, just
insert the title yourself:# This is the titleThis is the contents…If you want to create a differently-formatted post that doesn’t start with a
title, such as a link, a quote or an image with a caption, just go ahead and
write that in Markdown.pyblosxom-markdown currently parses entries with the filename extensions ‘.md’
and ‘.markdown’ (these are currently hardcoded and not configurable).pyblosxom-markdown currently uses Python Markdown’s
[Extra](https://pythonhosted.org/Markdown/extensions/extra.html) and
[SmartyPants](https://pythonhosted.org/Markdown/extensions/smarty.html) plugins
(hardcoded, not configurable).pyblosxom-markdown renders entries as HTML5 (hardcoded, not configurable).## InstallationInstall the pyblosxomsimplemarkdown package from pip:pip install pyblosxomsimplemarkdownThen add it to theload_pluginssetting in yourconfig.py:py[“load_plugins”] = [“pyblosxomsimplemarkdown.simplemarkdown”]
Package: pyblox3
PybloxAn API wrapper for Roblox written in Python.The purpose of this API wrapper is to expose Roblox's API for third party use and/or for individual standalone projects.
This is the first stable Python API wrapper for the Roblox API. Documentation can be found within each module. I encourage
developers to look into the codebase to better understand this wrapper and what it can truly offer.If you would like to contribute, create a pull request with the changes you made. If you have a complaint, issue or problem, create an issue and I will try to answer as fast as I can.For users wanting a Python 2x-compatible version:https://github.com/RbxAPI/Pyblox/tree/python2For users wanting a mid-stable, asynchronous-version:https://github.com/RbxAPI/Pyblox/tree/nightly_buildUpdatingThe Roblox API updates whenever necessary and often the developers don't specify when or why these changes are taking place.
Due to this, this repo could break at anytime. If a break does occur, please open up an issue on this repo detailing the error.Master- This branch is at version2.4.4. Those with2.4.1may update to this branch without breaking changes. Addresses critical issues and is maintained. Will be uploaded to pip sometime soon.nightly_build- Starts at version3.x.x. Those with2.4.1or2.4.2may update to this branch with breaking changes. Features a more organized and powerful version of Pyblox that predicates itself on OOP (Object Orientated Programming) and async (non-blocking method calls / instances). Working towards 100% API coverage and will be marked as master once 80% coverage is completed. Will be uploaded to pip sometime soon.InstallingThere's now two ways to install Pyblox.
You may now do it through pip:pip install pyblox3or do it manually below:1. Download or Clone this repo
2. Place the "pyblox" folder into C:\Users\YOURUSERNAMEONWINDOWSMACHINE\AppData\Local\Programs\Python\Python35-32\Lib\site-packagesMacOS and Linux are supported but installation will vary.
This was developed on a windows-based machine and thus, it's recommended to use windows.Please note that the "Clone" method is regulary updated. However, the pip-version is often behind.Quick Examplefrompyblox3importFriends# Imports the Friends class from pyblox wrapperdefGetAllFriends():CoolPeople=Friends.friendList(1)# Takes your useridprint(CoolPeople)# Returns usernames and prints them in the consoleGetAllFriends()# Calls "GetAllFriends" methodRequirementsPython 3+pip install requestsnote: requests may have been already installed.Related Projectshttps://github.com/iranathan/robloxapihttps://github.com/NoahCristino/robloxlibhttps://github.com/sentanos/roblox-jshttps://github.com/MartinRBX/bloxyhttps://github.com/suufi/noblox.jshttps://github.com/gamenew09/RobloxAPIhttps://github.com/RbxAPI/Javabloxhttps://github.com/PizzaCrust/Roblox4jhttps://github.com/PizzaCrust/KotlinRobloxhttps://github.com/FreeLineTM/roblox.kthttps://github.com/NevermoreFramework/Nevermorehttps://github.com/Meqolo/cbloxhttps://github.com/CrescentCode/RobloxCommunicationhttps://github.com/OliverHensworth/roblox.lua/https://github.com/OliverHensworth/roblox.rb
Package: pybloxlink
PyBloxlinkAn async API wrapper for theblox.linkAPI.AboutPyBloxlink is an async API wrapper for theBloxlinkAPI.Notable features:Async ready.Up to date.Provides full API coverage.User-friendly errors for handling status codes of failed HTTP requests.InstallationTo install a full release of the library, run the command below:pip install -U pybloxlinkExamplesSome examples can be found on the documentation, here:https://acatiadroid.github.io/pybloxlink/examples.htmlHelpIf you need help, you can either make anissueor join the Bloxlink server:https://discord.gg/bloxlinkLicenseThis is licensed under MIT. Read the licensehere.ContributingContributions are welcome! Check out thecontributing guidelinesbeforehand.
Package: pyBloxyCola
InstallationTo Install pyBloxy you only have to do this:pip install pyBloxyColaAnd for windows users:py -m pip install pyBloxyColaThe requirements for pyBloxyCola is python 3.8!Example:You can fetch group data in JSON with: (more will be in docs)frompyBloxyColaimportpyBloxyColaprint(pyBloxyCola().getGroupInfoInJSON(1))
Package: pybls21
Blauberg S21 Asynchronous Python APIAn api allowing control of AC state (temperature, on/off, speed) of an Blauberg S21 device locally over TCP.UsageTo initialize:client = S21Client("192.168.0.125")To load:await client.poll()The following functions are available:turn_on()turn_off()set_hvac_mode(hvac_mode: HVACMode)set_fan_mode(mode: int)set_manual_fan_speed_percent(speed_percent: int)set_temperature(temp_celsius: int)reset_filter_change_timer()
Package: pyblue
A simple static site generator.Why another one? There aremany staticsite generators already. I found most to be way too complicated, too
many conventions and rules: put this here or there, call it this or
that. It was too tiring to keep up.PyBlue is different. Everything is optional, nothing is required, use
only what you need. It basically stays out of the way.Simple things are very easy:No configuration required.Works with any existing site.Easy to includemarkdown.Easy linking to other pages.Tiny codebase, pyblue is around 500 lines in a single file!Complicated tasks are easy:PyBlue generates the correct links even if you move pages around.UseDjango
Templatesand all the features that it offers.Easily add data into each page (title, link name, or any arbitrary
content).And you can go all the way out if you really want to:Load python modules into each page.Exposed data: database queries, results of online requests etc.Run python code, access and modify data from inside of each page.Extend the Django templates. Add your owntemplatetags.DocumentationThePyBlue
Documentationwas
generated with PyBlue itself.You can also browse thehelp in source
formatfor examples.Installpip install pyblue --upgradeOr download it from thePyBlue at
PyPI.UsageLaunch pyblue to serve a directorypyblue -r docsView your site by visitinghttp:://localhost:8080Edit your pages and make changes. Reload the page to see your edits
live. Generate static output with:pyblue -r docs -o htmlThat’s all. Told you it was simple. To see extra help on options run:pyblue -hLicensingPyBlue is being developed by Istvan Albert seehttps://github.com/ialbertPyBlue has been inspired byPyGreencreated by
Nicolas Vanhoren seehttps://github.com/nicolas-vanPyBlue uses theMIT
license.
Package: pybluecat
# Bluecat BAM API Wrapper ### Installation ##Supported on python 2.7, no promises on 3.xYou can clone the repo, change to the top-level directory (with the setup.py file) and use pip to install the local files in "editable" mode (-e).```bashgit clone https://github.com/ForrestT/pyBluecat.gitcd pybluecatpip install --user .```- - - -## How to Use ##The library can be used within python```pythonimport pybluecatbam = pybluecat.BAM(hostname, username, password)network_obj = bam.get_network('10.97.12.0')ip_obj = bam.get_ip_address('10.97.12.101')bam.logout()```In an interactive python interpreter, use help() to play with the available methods```python>>> from pybluecat import BAM>>> help(BAM)```You can also just use the CLI scripts interactively (use -h, --help)```bashbluecat --helpusage: Bluecat CLI Tool [-h] {static,dhcp,search} ...optional arguments:-h, --help            show this help message and exitSubcommands:{static,dhcp,search}  subparsers command helpstatic              static IP record manipulationdhcp                dhcp IP record manipulationsearch              search BAM for Objects# Create a DHCP reservationbluecat dhcp create <hostname> <mac> --network <networkAddress> --creds /location/of/creds.json# Delete a STATIC IP reservationbluecat static delete <ipAddress>```
Package: pybluedot
# Bluedot-sms unofficial APIThis is an unofficial API for [Bluedot-sms](http://bluedotsms.com)Requirements:Python 3Installation:>  pip install pybluedotUsage```pythonfrom pybluedot import Bluedotclient = Bluedot(username="SuperCode", password="I don't know")@client.send("SuperCode") #Your registered Sender Namedef my_callback(result):print(result.status) #200print(result.response) #Get response body from Bluedotprint(client['balance']) #Get Current Balance#send smsdata = {"recipients" :  ["263784442662", "26378123456"], "msg" : "Hey i sent a text with pybluedot"}my_callback(data) #That's All !!!```
Package: pyblueiris
READMEBlue Iris Python LibraryAn async python library for the Blue Iris JSON API.OverviewFor more in-depth documentation, visitthe documentation.Creating a BlueIris object requires you provide an async web session for it.importpyblueirisfromaiohttpimportClientSessionPROTOCOL='http'HOST=192.168.1.5USER='pyserv'PASS='secret-password'defmain():asyncwithClientSession(raise_for_status=True)assess:blue=pyblueiris.BlueIris(sess,USER,PASS,PROTOCOL,HOST)if__name__=='__main__':main()From there you can simply call a command you want it to execute. There is a commandupdate_all_information()which will call all data-gathering commands to fill out information about the server.defmain():asyncwithClientSession(raise_for_status=True)assess:blue=pyblueiris.BlueIris(sess,USER,PASS,PROTOCOL,HOST)awaitblue.update_all_information()All of the information the BlueIris object knows about the server is stored in the attributes property (dictionary).print(blue.attributes)
Package: pybluemonday
pybluemondaypybluemonday is a library for sanitizing HTML very quickly viabluemonday.pybluemonday takes untrusted user generated content as an input, and will return HTML that has been sanitised against a whitelist of approved HTML elements and attributes so that you can safely include the content in your web page.Note: This library is in a useable state but is still experimental. It may not have feature parity with the actual bluemonday and is likely to sanitize HTML slightly differently than other libraries. PRs and feedback are welcome on improving this library.Installationpip install pybluemondayExamplesfrompybluemondayimportUGCPolicys=UGCPolicy()print(s.sanitize("<script>alert(1)</script><b class='stuff'>testing</b>"))# <b>testing</b>s.AllowAttrs("class","style").Globally()print(s.sanitize("<script>alert(1)</script><b class='stuff' style='color: red;'>testing</b>"))# <b class="stuff" style="color: red;">testing</b>frompybluemondayimportStrictPolicys=StrictPolicy()s.sanitize("<center><b>Blog Post Title</b></center>")# Blog Post TitleHow does this work?pybluemonday is a binding tobluemondaythrough a shared library built through cgo. However, instead of replicating the entire API, pybluemonday uses reflection on the Go side and some type checking on the Python side to call the right bluemonday function when you try to call a method.Essentially you want to create a Policy with the providedpybluemonday.UGCPolicy,pybluemonday.StrictPolicy, andpybluemonday.NewPolicyclasses and then call methods that map to the appropriatebluemonday struct method.This is an open area of improvement but gets reasonable coverage of the original bluemonday interface.Also because it's difficult to share Go structs over to Python, pybluemonday keeps an ID reference to the struct in the Go side and passes the reference for every Go call. This means that if you corrupt or change the ID for some nonsensical reason you may likely end up with a memory leak. This is also an open area of improvement.PerformanceMost Python based HTML sanitizing libraries will need to rely onhtml5libfor parsing HTML in a reasoanble way. Because of this you will likely see performance hits when using these libraries.Since pybluemonday is just bindings forbluemondayit hasverygood performance because all parsing and processing is done in Go by bluemonday. Go also ships anHTML5 parserwhich means we avoid html5lib but still process HTML pretty well.Always take benchmarks with a grain of salt but when compared to other similar Python sanitizing libraries pybluemonday executes far faster:❯ python benchmarks.py
bleach (20000 sanitizations): 37.613802053
html_sanitizer (20000 sanitizations): 17.645683948
lxml Cleaner (20000 sanitizations): 10.500760227999997
pybluemonday (20000 sanitizations): 0.6188559669999876Benchmarks taken on a MacBook Pro 15-inch, 2016 (2.7 GHz Intel Core i7, 16 GB RAM)
Package: py-blueprint
BluePrintBluePrintis a light-weight tool that helps configure Python objects with YAML files.Installation is simple:pip install py-blueprintOr you can checkout its source code fromhttps://github.com/YANG-H/BluePrint. And install it withpython setup.py installThere is a simple sample code in the repository. Run it with:python -m blueprint.run sample/hello_world/simple_run.yaml --name AnythingYouLikeIf GPU is available and PyTorch is installed, you can also run a distributed version:python -m blueprint.run sample/hello_world/simple_run.yaml --name AnythingYouLike --distributed 1BluePrintis in very early design and development. Please contact me atyanghao.alexis@foxmail.comor raise issues for bug reporting and other suggestions.LicenseBluePrintis released under the MIT license.
Package: pyBlueVia
pyBlueViais an Apache2 Licensed library, written in Python, for making
easier the usage ofBlueViaAPI.pyBlueViaimplements anApiclass which wraps the BlueVia API,
offering methods for:Managing OAuth 2.0 authorization process for APIs which need anaccess token.Sending SMS and MMS.Asking for the delivery status of sent SMS/MMS.Retrieve SMS/MMS sent to your app.Parsing notifications (delivery status and incoming SMS/MMS) coming from BlueVia.InstallationTo installpyBlueVia:$pipinstallpyBlueViaExamplesThose are a couple of examples about how to usepyBlueViato send an SMS and query
its delivery status:# Create the API wrapperbluevia_client=bluevia.Api(CLIENT_ID,CLIENT_SECRET,ACCESS_TOKEN)# Send an SMSsms_id=bluevia_client.send_sms(to='34600000000',message='Hello world!')# Ask for the delivery status of the sent SMSdelivery_status=bluevia_client.get_sms_delivery_status(sms_id)print'Delivery status for the SMS sent to{0}:{1}'.format(delivery_status['address'],delivery_status['status'])You can see more usage exampleshere.Take a look to the whole documentation athttps://pybluevia.readthedocs.org/.