Saravanan666/pypi-org huggingface dataset:
Package: py-sdk-nocodeapi
Python nocodeapi.net SDKInstallationpipinstallpy-sdk-nocodeapiPlace.envfile into root directory andDEV_JWT_TOKENvariable into this file.Key phrasesimportpy-sdk-nocodeapinc=NoCodeAPI()res=nc.key_phrases("Now, as a nation, we don't promise equal outcomes, ""but we were founded on the idea everybody ""should have an equal opportunity ""to succeed. No matter who you are, what you look like, ""where you come from, ""you can make it. That's an essential promise.",'en_US')# [#     {#         "Text": "promise equal outcomes",#         "Score": 8,#         "BeginOffset": 27,#         "EndOffset": 49#     },#     {#         "Text": "equal opportunity",#         "Score": 4.5,#         "BeginOffset": 108,#         "EndOffset": 125#     },#     {#         "Text": "essential promise",#         "Score": 4.5,#         "BeginOffset": 229,#         "EndOffset": 246#     },#     {#         "Text": "nation",#         "Score": 1,#         "BeginOffset": 10,#         "EndOffset": 16#     },#     {#         "Text": "founded",#         "Score": 1,#         "BeginOffset": 63,#         "EndOffset": 70#     }#     ...# ]Language Detectionnc=NoCodeAPI()res=nc.language_detect("Policjanci otrzymali zgłoszenie w tej sprawie po godz 9. ""Do wypadku doszło na ul. Kolonia Krakowskie Przedmieście.")# res['LanguageCode'] // pl# res['Language'] // Polish# res['Score'] // 1Sentiment Analysisres=self.nc.emotions('Genuine leather is the best production for bags imho, but ''I would not recommend this particular product.')# res['Positive'] // 0.12# res['Negative'] // 0.14# res['Neutral'] // 9.74# res['Mixed'] // 9.97Named Entity Recognitionres=self.nc.ner('Linus Torvalds is one of the best programmers in USA, Finland Helsinki and in the world')# res['EntitiesCount'] # 3# res['Entities']# [#   {# 		Text: "Linus Torvalds",# 		Label: "PERSON",# 	},# 	{# 		Text: "USA",# 		Label: "GPE",# 	},# 	{# 		Text: "Finland Helsinki",# 		Label: "GPE",# 	}# ]Personally Identifiable Informationres=self.nc.pii('I had a card number 4234-4284-2422-2344 and ''I wanted 4235 4284 2433 2347 to pay by slip, my phone number was +7 (916) 286-19-39 ')# res['EntitiesCount'] # 3# res['Entities']# [# {#   'Type': 'CREDIT_DEBIT_NUMBER',#   'Text': '4234428424222344',#   'SubType': 'Visa',#   'BeginOffset': 20, 'EndOffset': 39# },# {#   'Type': 'CREDIT_DEBIT_NUMBER',#   'Text': '4235428424332347',#   'SubType': 'Visa',#   'BeginOffset': 53,#   'EndOffset': 72# },# {#   'Type': 'PHONE_NUMBER',#   'Text': '(916) 286-19-39',#   'BeginOffset': 112,#   'EndOffset': 127# }# ]
Package: pysdk-sui
Python SDK for SUIThis SDK is in alpha version, so there are possible errors.
All functions can be viewed here:https://docs.sui.io/sui-jsonrpcAuthor's additions:Function to get the balanceFunction for mint a NFT (example/wizard)Function to generate a random walletFunction to request test tokens from a faucetFunction to get public key as b64 stringFunction to get transaction IDInstallationRequiresPython 3.10-3.11pip install pysdk-suiExample usagefrom pysdk_sui import Client, Wallet, RpcDetails, WalletInfoParams, MoveCallParams, TransferObjectParams, GetTransactionsIDParams, MoveFunctionArgTypesParams

faucet_url_ = 'https://faucet.testnet.sui.io/gas'
rpc_url_ = 'https://fullnode.testnet.sui.io/'
test_mnemonic = 'trip offer end cloth patrol core pioneer debate cigar swarm patch tattoo'


client = Client(rpc_url=rpc_url_, faucet_url=faucet_url_, mnemonic=test_mnemonic)
wallet = Wallet(rpc_url=rpc_url_, faucet_url=faucet_url_, mnemonic=test_mnemonic)
rpc = RpcDetails(rpc_url=rpc_url_, faucet_url=faucet_url_, mnemonic=test_mnemonic)


def example_wallet():
    # get balance
    balance = wallet.get_balance()

    # generate wallet (return NamedTuple with mnemonic, private key, public key and address)
    wallet_data = wallet.generate_wallet()

    # get my wallet info (return NamedTuple with mnemonic, private key, public key and address)
    my_wallet_info = wallet.get_wallet_info()

    # get another wallet info (return NamedTuple with mnemonic, private key, public key and address)
    another_wallet_info = wallet.get_another_wallet_info(
        WalletInfoParams(
            'params'
        ))

    # request test tokens from faucet
    response_data = wallet.request_tokens_from_faucet()

    # get public key as b64 string
    public_b64_key = wallet.get_public_key_as_b64_string()

    '''ANOTHER FUNCTION USING SAME'''


def example_client(self):
    # get example NFT
    response_data = client.mint_example_nft()

    # move call
    response_data = client.move_call(
        MoveCallParams(
            'params'
    ))

    # transfer object
    response_data = client.transfer_object(
        TransferObjectParams(
            'params'
        ))

    '''ANOTHER FUNCTION USING SAME'''


def example_rpc(self):
    # get transaction ID (digest)
    transaction_id = rpc.get_transaction_id(
        GetTransactionsIDParams(
            params
        ))

    # get move function arg types
    data = rpc.get_move_function_arg_types(
        MoveFunctionArgTypesParams(
            params
        ))

    '''ANOTHER FUNCTION USING SAME'''GOOD LUCK :D
Package: pysdl
pysdlPython Stackdriver Logger - A python library that helps Stackdriver consume python logs appropriatelyInstalling pysdlpipinstallpysdlImplementing this in your appIn Django:settings.py ->frompysdl.logger_configimportlogging_dictLOGGING=logging_dictIn regular python apps:fromlogging.configimportdictConfigfrompysdl.logger_configimportlogging_dictdictConfig(logging_dict)
Package: pysdl2-cffi
pysdl2-cffi is a Python wrapper for SDL2 written using cffi, featuring:A cffi interface to the underlying SDL2 libraries.Automatically generated, consistent helper functions for SDL2, SDL_image,
SDL_mixer, and SDL_ttf that hide most allocation and dereferencing.Useful docstrings on every function, including the C function signature and
(for SDL2 only) the library’s original doxygen documentation reformatted as
Sphinx restructured text.A small collection of libSDL2’s original example / test programs converted
to Python using Eric S. Raymond’s ctopy.The goal is to provide a flat, consistent, faithful-to-C binding with some
more-Pythonic renaming and conveniences.This wrapper won’t contain anything that doesn’t directly translate to part of
the library’s API. The goal is to be a dependency for something like pygame,
not a replacement.This library should be compatible with Linux, OSX and Windows.This library is licensed under the GPLv2 or (at your option) any later
version. Alternatively a commercial license can be purchased from the
author for $10.Install with pip, or download fromhttps://pypi.python.org/pypi/pysdl2-cffiSource hosted athttps://bitbucket.org/dholth/pysdl2-cffiDocumentation hosted athttps://pythonhosted.org/pysdl2-cffi0.8.0The wrapper is now built with cffi 1.1’s verify() mode and requires a C
compiler to build. It is much faster than the previous version on CPython.Appveyor-built binary packages now available on Windows. On Windows, the
necessary SDL2 DLLs are now a pip-installed dependency.0.7.0Struct wrappers now expose all the attributes of the C-level struct as
properties. Great for tinkering, as the property names can now be
inspected interactively.Struct wrappers no longer pass all attribute access through
getattr/setattr. Arbitrary data can be attached to the struct wrappers
as is customary in Python.Fix a capitalization error for the “classy” API to conform to the general
binding rules.ob.gL_Functionis nowob.GL_Function.0.6.0Windows is now supported! You must manually download the SDL2 dll’s and
place them on PATHsetPATH=%PATH%;C:\users\me\SDL2Dirbut pysdl2-cffi
will attempt to load the Windows.dllas well as the Unix.so.0.5.1Enums are no longer wrapped in (nonexistent) classesPython 2 can also pass Unicode where char* is required; automatically
encoded to utf-8.
Package: pysdl2-dll
pysdl2-dllpysdl2-dll is a Python package that bundles the SDL2 binaries in pip-installable form for macOS and Windows, making it easier to create and run scripts/packages that use thePySDL2library.It uses the official SDL2, SDL2_mixer, SDL2_ttf, and SDL2_image binaries for macOS and Windows, as well asunofficial SDL2_gfx binariesfor the same platforms. For Linux, the SDL2 binaries and their dependencies are all built from source using the official Pythonmanylinuximages for maximum compatibility.The latest release includes the following versions of the SDL2 binaries:SDL2SDL2_ttfSDL2_mixerSDL2_imageSDL2_gfx2.30.02.22.02.8.02.8.21.0.4InstallationYou can install the latest version of pysdl2-dll via pip:pipinstallpysdl2-dll# install latest release versionRequirementsAt present, the following platforms are supported:macOS (10.11+, 64-bit x86)macOS (11.0+, 64-bit ARM)Windows (32-bit x86)Windows (64-bit x86)Linux (32-bit x86)Linux (64-bit x86)Linux (64-bit ARM)The pysdl2-dll package can beinstalledon platforms other than the ones listed above, but it won't have any effect.pysdl2-dll requires PySDL2 0.9.7 or later in order to work correctly. To update to the latest PySDL2, you can run:pipinstall-Upysdl2Because the wheels are not built against any specfic version of Python, pysdl2-dll supports all versions and implementations of Python that are supported by PySDL2.Linux RequirementsThere are currently two versions the Linux wheels: "legacy" wheels based on themanylinux2014standard (for 32-bit and 64-bit x86), and "modern" wheels based on themanylinux_2_28standard (for 64-bit x86 and 64-bit ARM only). Themanylinux_2_28SDL2 binaries require a more recent version of Linux, but offer dynamic support for additional features such as native Wayland windowing, Pipewire audio, and Vulkan rendering.You must have pip 19.3 or newer to install themanylinux2014wheels, and pip 20.3 or newer to install themanylinux_2_28wheels. Distributions that use musl C instead of glibc (e.g. Alpine Linux) are not supported.UsageIf you are using PySDL2 0.9.7 or later, you don't need to do anything special to use the pysdl2-dll binaries in your project: PySDL2 will load them automatically (and print a message indicating such) if they are available.To override pysdl2-dll and use a different set of binaries, you can set thePYSDL2_DLL_PATHenvironment variable to the path of the folder containing the binaries you want to use instead, or alternatively set it to "system" to force PySDL2 to use the system install of SDL2 if available (e.g. SDL2 installed withbrewon macOS).
Package: pysdl2-sdl2ui
pysdl2-sdl2ui=============A library to make simple UI using pysdl2.Introduction------------```pythonclass MyApp(sdl2ui.App):width = 256height = 224zoom = 3# NOTE: the fps you desire: less fps = less CPU usagefps = 30name = "My Application"# NOTE: order the handlers in what you want to display firstdefault_handlers = [MainHandler, ListSelectorHandler, MenuHandler]default_resources = [('background', 'background.png')]logging.basicConfig(level=logging.DEBUG)MyApp.run(handlers=[sdl2ui.handler.DebuggerHandler])```Each handler will have three main methods: `init()`, `peek()` and `draw()`:* `init()` is called as soon as the application is started (instantiated). Youcan set all kind of variables in your instance here before anything shows up.* `peek()` is called at every frame. The capture of the input can be made here.If peek() returns True, sdl2ui will re-draw the whole screen (using all theactive handlers.* `render()` is called every time the application need to re-draw the screen.### Examples```pythonclass MainHandler(sdl2ui.Handler):def peek(self):if self.app.keys[sdl2.SDL_SCANCODE_D]:self.app.keys[sdl2.SDL_SCANCODE_D] = False# NOTE: toggle the debugger modeself.app.handlers[sdl2ui.handler.DebuggerHandler].toggle()elif self.app.keys[sdl2.SDL_SCANCODE_S]:self.app.keys[sdl2.SDL_SCANCODE_S] = False# NOTE: toggle the display of the menu and the list selectorself.app.handlers[ListSelectorHandler].toggle()self.app.handlers[MenuHandler].toggle()elif self.app.keys[sdl2.SDL_SCANCODE_Q]:self.app.keys[sdl2.SDL_SCANCODE_Q] = Falseself.app.quit = Trueelse:return Falsereturn Truedef render(self):self.app.draw('background', x=0, y=0)``````pythonclass MenuHandler(sdl2ui.Handler):highlight = (0x00, 0x00, 0xff, 0xff)line_space = 8default_active = Falsemenu_actions = [("Save", lambda x: x.save()),("Load", lambda x: x.load()),("Quit", lambda x: x.quit()),]def init(self):self.select = 0def save(self):# TODO save()passdef load(self):# TODO load()passdef quit(self):self.app.quit = Truedef peek(self):if self.app.keys[sdl2.SDL_SCANCODE_UP]:self.app.keys[sdl2.SDL_SCANCODE_UP] = Falseself.select -= 1if self.select < 0:self.select = len(self.menu_actions) - 1elif self.app.keys[sdl2.SDL_SCANCODE_DOWN]:self.app.keys[sdl2.SDL_SCANCODE_DOWN] = Falseself.select += 1if self.select >= len(self.menu_actions):self.select = 0elif self.app.keys[sdl2.SDL_SCANCODE_RETURN]:self.app.keys[sdl2.SDL_SCANCODE_RETURN] = False_, func = self.menu_actions[self.select]func()else:return Falsereturn Truedef render(self):border = 10x, y = border, borderfor i, (label, _) in enumerate(self.menu_actions):if i == self.select:# NOTE: you can tint all future draw() and write() using the#       context self.app.tint(<tuple_rgba>)with self.app.tint(self.highlight):self.app.write('font-6', x, y, label)else:# NOTE: the font-6 is a bitmap font built-in with the libraryself.app.write('font-6', x, y, label)y += self.line_space```
Package: pysdl-gpu
pysdl-gpu is a wrapper around the SDL_gpu library. It depends on PySDL2,
and it uses ctypes.The SDL_gpu library, as well as its documentation, can be found here:https://github.com/grimfang4/sdl-gpuFeel free to report bugs or make pull requests here:https://bitbucket.org/Jjp137/pysdl-gpuNote that this library is intended to match the sdl_gpu.h header as closely
as possible, and thus, following PEP-8 is less of a priority.Usagepysdl-gpu requires SDL2 and SDL_gpu to be installed on your system.
Alternatively, the environment variablePYSDL2_DLL_PATHcan be used to
point pysdl-gpu to the location of the SDL2 and SDL_gpu libraries.Once installed, simply import the library:import sdlgpuRefer to SDL_gpu’s documentation for a list of available functions, enums,
and structures.Licensingpysdl-gpu is licensed under the terms of the MIT License. For more details
on the terms of this license, refer to LICENSE.txt.
Package: pysdmx
pysdmxin a nutshellpysdmxis a pragmatic andopinionatedlibrary written in Python. It
focuses on simplicity, providing a subset of SDMX functionalities without
requiring advanced knowledge of SDMX.Key features:SDMX information model in Python:pysdmxoffers Python classes
representing asimplified subset of the SDMX information model,
enabling a domain-driven development of SDMX processes with Python. These
classes are serializable.Metadata in action:pysdmxsupports retrieving metadata from an SDMX
Registry or any service compliant with the SDMX-REST 2.0.0 API. Use these
metadata to power statistical processes.Data discovery and retrieval: This functionality is under development.pysdmxwill enable listing public SDMX services, discovering available
data available, and retrieving data from these services.pysdmxis available onPyPIand can be
installed using options such as pip, pipx, poetry, etc.For more details, check theproject documentation.
Package: pysdn
PySDNPython / CFFI-based glue library to access Linux XDP/eBPF, bpfilter, tc and Facebook KatranFree software: MIT licenseDocumentation:https://pysdn.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2019-11-09)First release on PyPI.
Package: pysdrc
Python Software Defined Remote ControlThis started as a rough implementation of the SIRC infrared transmission protocol as used
by Sony TV and equipment, aimed at being used withCircuitPython.Following from that, proper decoding of NEC commands was also added, making the project
name a misnomer.Protocol InformationPlease seeSB-Projectsfor a lot of information
about Infrared protocols, includingSIRCandNEC.
Package: pysds011
Simple python driver for SDS011 PM sensor from Nova.Free software: MIT licenseInstallationpip install pysds011You can also install the in-development version with:pip install https://github.com/michelepagot/pysds011/archive/develop.zipUsagePackage has a class interfacelog=logging.getLogger(__name__)ser=serial.Serial('/dev/ttyUSB0',9600)ser.open()sd=driver.SDS011(ser,log)sd.cmd_set_sleep(0)sd.cmd_set_mode(sd.MODE_QUERY)sd.cmd_firmware_ver()Package is also provided with a reference cli application:pysds011.exe --port COM42 version
>> 21.2.2223DocumentationThis internal package documentation is available athttps://pysds011.readthedocs.io/Some other interesting reading are:
* SDS011 datasheethttp://cl.ly/ekot* This project is inspired byhttps://gist.github.com/kadamski/92653913a53baf9dd1a8ContributingHave a look at CONTRIBUTING.rst or to the Development section in the documentationChangelog0.0.4 (2021-2-7)add more commands to cliTesting and documentation0.0.3 (2021-1-8)cli get subcommands and produce meaningful resultsrobustness about error handlingTesting and documentation0.0.2 (2021-1-4)Improved cli (first functional).0.0.1 (2020-12-19)First release on PyPI.
Package: pysdtw
pysdtwTorch implementation of theSoft-DTW algorithm, supports both cpu and CUDA hardware.Note: This repository started as a fork from thisproject.InstallationThis package is available onpypiand depends onpytorchandnumba.Install with:pip install pysdtwUsageimportpysdtw# the input data includes a batch dimensionX=torch.rand((10,5,7),requires_grad=True)Y=torch.rand((10,9,7))# optionally choose a pairwise distance functionfun=pysdtw.distance.pairwise_l2_squared# create the SoftDTW distance functionsdtw=pysdtw.SoftDTW(gamma=1.0,dist_func=fun,use_cuda=False)# soft-DTW discrepancy, approaches DTW as gamma -> 0res=sdtw(X,Y)# define a loss, which gradient can be backpropagatedloss=res.sum()loss.backward()# X.grad now contains the gradient with respect to the loss
Package: pysea
PySeaPySea is a very easy to use python lib, based and working over opensea api no need to for api key or login information...Installing / Getting startedA quick introduction of the minimal setup you need to get a hello world up &
running.pip install pyseamacOSpip3 install pyseaQuick Examplehere is a easy code to get the floor price of a collection on openseaimportpyseapysea.floorprice(collection='collection-name-here')output>>>>0.0146381596Functionsthese are the functions that are available for now, we our always trying to make it better and better over the timefloor pricemarket capaverage pricetotal salesnum ownerssalesParameterswe have only one param to use now,collection, you can use it like thiscollection='collection-name'Contactsyou can contact the owner on telegram or discordtelegram : t.me/Jojiv2discord : Joji#0082
Package: pyseaflux
pySeaFluxCalculation of air-sea fluxesInstallingGitHubpip install git+https://github.com/lukegre/pySeaFlux.gitPyPipip install pyseafluxOverview of functionalityCalculate sea-air fluxes using the bulk formulationConvert pCO2 to fCO2 andvice versa.Correct or adjust pCO2 for temperature changesScale kw to 14C bomb values for wind products using Wanninkhof's (1992) second moment of the wind speed (requires standard deviation of the wind)Download NOAA Marine Boundary Layer xCO2 and related functions for pCO2 conversionCalculate the grid cell area (in m^2) for a grid of latitudes and longitudes - also works as an xarray method (xda.area())To Dounit errors should only happen when more than 50% of non-nan values are not valid. Otherwise, raise warning and make outputnan. Will double up withpyCO2SYS.tests! Currently there are not any meaningful tests.Add contributor file.DocumentationProject based on thecookiecutter science project template.
Package: py-search
Py SearchThis is a Python library of algorithms that implements various search
algorithms written by Christopher MacLellan (https://chrismaclellan.com).
In particular, there are uninformed, informed, and optimization techniques
implemented with a standard interface.InstallationYou can install this software using pip:pip install -U py_searchYou can install the latest version of the code directly from github:pip install -U git+https://github.com/cmaclell/py_search@masterImportant LinksSource code:https://github.com/cmaclell/py_searchDocumentation:http://py_search.readthedocs.org
Package: pySEAScope
This project aims to provide Python bindings to interact with theSEAScopeapplication developed byOceanDataLab.These bindings allow users to control the application remotely and to transfer
data between Python and SEAScope. These features can be used to create scripted
animations (e.g. to illustrate a study during a conference) or to analyse and
visualise data interactively.See theAPI documentationfor more information
Package: py-seasnake
SeaSnakeSeaSnake is a user-friendly Python wrapper that enables seamless interaction with MERMAID (Marine Ecological Research Management Aid) platform. It allows researchers, data scientists, and marine enthusiasts to access, analyze, and manage their marine ecosystem data directly through Python scripts or Jupyter Notebooks.Installpip install -u py-seasnakeQuick Startfrom seasnake import auth
from seasnake.auth import MermaidAuth
from seasnake.summaries import FishBeltTransect

auth = MermaidAuth()
token = auth.get_token()

project_id = "<YOUR PROJECT ID>"
fb = FishBeltTransect(token=token)
df_obs = fb.observations(project_id)

print(df_obs)Testingpoetry run pytest --ruff --mypy tests/
Package: pyseaweed
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.
Description: Library to simplify communication with Seaweed-FS
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Package: pysecret
Welcome topysecretDocumentationInstallpysecretis a library to ease your life dealing with secret information.For example,if you have a database connection information, so you should not include it in your source code.pysecretis the library that provides several options to deploy or access your secret data securely.Featuresaccess secret inEnvironment Variable.access secretin shell script.access secretin json file from Python.deploy your secret toAWS Parameter Storeand use it in your application code, seeAWS Parameter Store example.deploy your secret toAWS Secret Managerand use it in your application code, seeAWS Secret Manager example.use AWS Key Management Service to encrypt or decrypt your data, seeAWS KMS example.Installpysecretis released on PyPI, so all you need is:$pipinstallpysecretTo upgrade to latest version:$pipinstall--upgradepysecret
Package: pysecretary
PySecretaryPySecretary is a python secrets libraryFree software: MIT licenseDocumentation:https://pysecretary.readthedocs.io.FeaturesTODO - vault integrationCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2020-05-13)First release on PyPI.