Saravanan666/pypi-org huggingface dataset:
Package: valoStatus
valoStatusvaloStatus is a Python module to check for Riot Games server status forVALORANTVALORANT Server Status PageThis is not fully complete checkTODOsectionIf you like this please star the repo. :)If you would like to contribute to the project feel free to make a PR and fix bugs or make the code even better. :DPython VersionPython 3.6 and above should workInstallationpip install valoStatusRegion ListNA - North America
EU - Europe
BR - Brazil
AP - Asia Pacific
KR - Korea
LATAM - Latin AmericaExample code (we will use NA region as an example)Check if there is an issue with the server"""`self.get_status_issue()` wouldreturn either:True == There is an issueFalse == There is no issue"""fromvaloStatusimportRegionregion=Region("NA")ifregion.get_status_issue()==True:# codeelse:# codeCheck if the Issue is either an incident or a Maintenance"""`self.incident_check()` and `self.maintenance_check()` would return:True == There is an issue.False == There is no issue"""fromvaloStatusimportRegionregion=Region("NA")ifregion.get_status_issue()==True:ifregion.incident_check()==True:# codeelifregion.maintenance_check()==True:# codeelse:# codeIncidentsfromvaloStatusimportRegionregion=Region("NA")#to get the title of the incident:print(region.incident_title())#to get the date of the incident:print(region.incident_date())#to get the reason of the incident:print(region.incident_reason())MaintenancesfromvaloStatusimportRegionregion=Region("NA")#to get the title of the maintenance:print(region.maintenance_title())#to get the date of the maintenance:print(region.maintenance_date())#to get the reason of the maintenance:print(region.maintenance_reason())TODOAdd function for affected platformsAdd function for time (currently shows date only)Colour status function? (may or may not add, basically each type of status has a different colour)LinksPyPiGithubSupportGithub ProfileExample Discord botDM@D3crypt360on TwitterDM DΞCRYPT#9779 on Discord
Package: valou
M1-2022-gitIntroductionThis repository is a fork from the previous repository.
The bugs in the converter have been fixed and now we want to publish our work as a publicly available python package.Getting startedYou should be working fromyour own repositorythat is a fork of M1-2022-git-workflow.
In order to run this project, you will have to follow these steps.Clone this projectmove into the project foldercdM1-2022-git-workflowSet up a virtual environmentCreate the virtual environmentpython-mvenvmyvenvActivate venv.venv/bin/activateInstall pytestpipinstall-UpytestExecute main scriptpythonmain.pyInstructionsMerge feature branch into devNow that the converter has no more bugs, we want to merge our branch feature into the dev branch.
We will do a pull request (on your own repo). On GitHub, go to the "Pull requests tab" and click "New pull request".
Selectbaseandcompare. Remember : we want to mergedecimal-binary-converterintodev.
Then,Create the pull request. Add some description of the work you have done and publish the Pull Request.Note: We could have just mergedecimal-binary-converterintodevfrom the command line. However, when working on a real project, you probably won't have the rights to do so. Remember : dev is a public branch. So all the work going down there should be carefully reviewed and tested.Publish your workWe now have an awesome binary/decimal two ways converter ! It's time to publish it so the rest of the world can enjoy it !
We will publish it on PyPI (Python Package Index) which is a public repository of softwares for Python.First, you have to create an account onPypi.orgThen, in your repository, you will find a.github directoryInside this directory, you will find .yml files that defines workflows (using GitHub actions)Open the yml files and take time to understand them. Do not hesitate to ask the teacher about themHands on !We want to create a workflow that will, on publish, test our code and if tests succeed, then publish our package on PyPIIn GitHub, click on theActionstab, then click onnew workflowChoose among the suggestions the template that best suits your use-case and clickConfigureYou may find some useful informations in thePython documentationWhen creating a release on GitHub, do not forget to create a tag corresponding to that releasePull requestOnce the workflow is setup and tested (you have published your package using it) you can open a pull request to theoriginal repository
Package: valparse
valparse,a parser for Valgrind-generated XML filesvalparsesupports protocol version 4 withMemcheckonly, but can
be easily modified to supportHelgrindand other protocol tools.Installationvalparsecan be insalled by runningpipinstallvalparseAnaconda hosting may be added in the future.About Valgrind.xmlfilesBy default,Valgrindoutput is printed tostderr. While readable,
Valgrind's unmodified output is not very easily parsable. However, output can be
generated in the form of XML code and redirected to a.xmlfile by running
Valgrind with the following options:valgrind--leak-check=full--xml=yes--xml-file=<xml-file-name>./<executable><args>Some examples of.xmlfiles generated by Valgrind are included in the/examplesdirectory.Valgrind does not support XML output for fd leaks as of version 3.18.1.UsageBelow is an example of basicvalparseusage:importvalparsexml_file=valparse.Parser('./test.xml')ifxml_file.hasLeaks()orxml_file.hasErrors():print("Leaks or errors found!")FeaturesError generation for nonexistent/incorrectly formatted TOPLEVEL tagsError generation for nonexistent/incorrectly formatted PROTOCOL tagsBasic Valgrind output parsingCheck for existence of errors or leaksCheck for fatal signalCount errors and leaks(if applicable)Error and leak parsing(if applicable)Fatal signal parsing(if applicable)Optional user-friendly.suppfile generationTOPLEVEL tagsvalparsechecks for the existence and correct formatting of the following
TOPLEVEL tags:protocolversion(4)protocoltool(memcheck)PROTOCOL tagsvalparsechecks for the existence and correct formatting of the following
PROTOCOL tags:preamblepidppidtoolargsstatussuppcountsNote: Valgrind supplies an 'errorcounts' tag, but it seems largely unreliable.
We've decided to generate this information manually.Basic Valgrind output parsingThe primary function ofvalparseis to generate usable content from Valgrind
output.valparsewas created with our grading scripts in mind, so it counts
the number of errors, leaks, unique errors, unique leaks, and total bytes
leaked.valparsealso checks for the presence of a fatal signal..suppfile generationWithin each<suppression>tag, Valgrind supplies a<rawtext>tag that can be
used to make.suppfiles, but it's cryptic and requires direct editing. We've
assembled this information manually to make it more user-friendly, customizable,
and generally better.valparsesupports the dynamic generation of.suppfiles, which can be utilised when running Valgrind to suppress certain leaks or
errors. Files can be generated in write (default) or append mode, and users can
specify suppression names as well as.suppfile names.
Package: valr-simple-client
VALR Simple Python ClientA Simple Python Library to integrate withVALR API.Cloning sourceGet this package by:$gitclonehttps://github.com/Moon-developer/Valr-simple-client.gitActivate the virtual environment with venv before coding, testing & packaging:$cd.
$python3-mvenv.dev_env
$source.dev_env/bin/activate
$python3-mpipinstall-rrequirements.txtRequiredENVIRONMENTvariables:VALR_KEY='valr_key'
VALR_SECRET='valr_secret'Example Usage, Seeexample.pyfile:$python3example.py
Package: valtypes
Nothing (almost) should ever beany strorany intWhat is valtypesValtypesis a flexible data parsing library which will help you make illegal states unrepresentable and enable you to practice"Parse, don’t validate"in Python. It has many features that might interest you, so let's dive into some examples.ExamplesCreate constrained types:fromvaltypes.type.strimportNonEmpty,MaximumLengthclassName(NonEmpty,MaximumLength):__maximum_length__=20definitials(name:Name)->str:# name is guaranteed to be a non-empty string of maximum length 20returnf"{name[0]}."initials(Name("Fred"))# passesinitials(Name(""))# parsing errorinitials("")# fails at static type checkingParse complex data structures:fromdataclassesimportdataclassfromvaltypesimportparsefromvaltypes.typeimportint,list,str@dataclassclassUser:id:int.Positivename:Namehobbies:list.NonEmpty[str.NonEmpty]raw={"id":1,"name":"Fred","hobbies":["origami","curling","programming"]}print(parse(User,raw))User(id=1, name='Fred', hobbies=['origami', 'curling', 'programming'])InstallationInstall fromPyPI:pip install valtypesBuild the latest version fromsource:pip install git+https://github.com/LeeeeT/valtypes
Package: value
From Wikipedia:Avalue objectis a small object that represents a
simple entity whose equality isn’t based on identity: i.e.
two value objects are equal when they have the same value,
not necessarily being the same object.By default (if you subclass fromobject) Python follows
“reference semantics”, i.e. two objects are equal if they
are the same instance.Valueclass implements “value
semantics”, i.e. if you subclass it your objects will be
equall if they hold the same data.This implementation will also inspect your__init__signature to automatically assign instance variables and
produce a nice__repr__for your objects, dogether with
a suitable__hash__implementation.Instead of asigning each instance variable manually:>>>classDate(object):......def__init__(self,year,month=1,day=1):...self.year=year...self.month=month...self.day=dayValuedefines__new__that will look at your__init__signature and assign instance variables based
on it:>>>fromvalueimportValue...>>>classDate(Value):......def__init__(self,year,month=1,day=1):...pass...>>>Date(2013,3).year==2013True>>>Date(2013,3).month==3True>>>Date(2013,3).day==1TrueValuedefines__eq__and__ne__to implement
value object semantics, i.e. objects holding the same data
are compared equal:>>>Date(2013,3,18)==Date(2013,3,18)True>>>Date(2013,3,18)!=Date(1988)TrueValuealso defines__repr__for you based on__init__signature:>>>repr(Date(2013,3,18))'Date(2013, 3, 18)'>>>repr(Date(1988,1,1))'Date(1988)'Valuealso defines__hash__for you, so that
instances could be used in sets and as dictionary keys.InstallationUsepipor easy_install:pip install value==0.1.0Alternatively, you can just dropvalue.pyfile into your
project—it is self-contained.valueis tested with Python 2.6, 2.7, 3.2, 3.3 and PyPy.valuefollowssemantic versioning.
Package: valued
Valued Python ClientA Python client library for sending events toValued.Installation$pipinstallvaluedUsageYou can create avalued.Clientinstance and callaction,syncetc directly on the client.importosimportvalued# Get the token for authentication.token=os.environ.get("VALUED_TOKEN")# or wherever you store credentials# Create a clientclient=valued.Client(token)# Record an actionclient.action("report.generated",{"customer":{"id":12},"user":{"id":123},"attributes":{"format":"pdf"}})# Sync user dataclient.sync_user({"id":123,"name":"Josh Kalderimis","email":"josh@valued.app","location":{"country":"NZ","region":"Wellington"}})ContributingAll commits messages should be in theAngluar commit stylefeat: A new feature.fix: A bug fix.docs: Documentation changes.style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc).refactor: A code change that neither fixes a bug nor adds a feature.perf: A code change that improves performance.test: Changes to the test framework.build: Changes to the build process or tools.
Package: value-fetcher
Value fetcherIntroductionPython module to fetch values from multiple sources with optional defaults, including:Environment variablesAWS Systems Manager (SSM) Parameter StoreAWS Secrets ManagerUsageInstall the package with the following:pipinstallvalue-fetcherFetching values directlyIn this use case, the value fetcher package makes it convenient to fetch values from the supported sources in a consistent and simplified manner.fromvalue_fetcherimportValueFetcher# Instantiate value fetcher classfetcher=ValueFetcher()# Retrieve values from supported AWS sourcesmy_secret=fetcher.get_from_aws_secrets_manager('/my/secret/key')my_param=fetcher.get_from_aws_ssm_parameter_store('/my/parameter/key')Configuring source locations dynamicallyIn this use case, environment variables are used to configure the sources for multiple keys.
This is useful in more complex applications where lots of values need to be fetched and the source needs to be configured dynamically.
See thiscontact form handler repositoryfor example usage.Environment variables can be appended to the configuration key name, setting the source of the value.
These are:_PARAMETER_STORE_NAME- for AWS SSM Parameter Store_SECRETS_MANAGER_NAME- for AWS Secrets ManagerOne of the available configuration sources for each value must also be set by setting an environment variable ending with_SOURCEfor the value name:env- Environment variables (default)aws_ssm_parameter_store- AWS Systems Manager (SSM) Parameter Storeaws_secrets_manager- AWS Secrets ManagerFor example, to fetchMY_PARAMfrom AWS SSM Parameter Store andMY_SECRETfrom AWS Secrets Manager, consider the following python script (e.g.app.py) called subsequently by a shell script:# This file is app.py for examplefromvalue_fetcherimportValueFetcher# Instantiate value fetcher class, with optional defaults if values cannot be foundfetcher=ValueFetcher({'MY_PARAM':'Default value if none can be found',})# Retrieve values from supported AWS sourcesmy_secret=fetcher.get('MY_SECRET')my_param=fetcher.get('MY_PARAM')print(my_secret)print(my_param)The above scripts would be called by the following shell script:#!/usr/bin/bashMY_PARAM_SOURCE="aws_ssm_parameter_store"MY_PARAM_PARAMETER_STORE_NAME="/my/parameter/store/key/name"MY_SECRET_SOURCE="aws_secrets_manager"MY_SECRET_SECRETS_MANAGER_NAME="my/secrets/manager/key/name"exportMY_PARAM_SOURCEMY_PARAM_PARAMETER_STORE_NAMEexportMY_SECRET_SOURCEMY_SECRET_SECRETS_MANAGER_NAME# For AWS ensure credentials are available, e.g. with AWS SSO, aws-vault, aws-profile etc.pythonapp.pyDevelopmentThis project uses Poetry for package management.
After cloning, run:./scripts/poetry.shto install dependencies for local development and running tests, etc.TestsTo run static code analysers and unit tests:./scripts/validate.sh
Package: valueguard
Valueguard Python ClientIndexIntroductionDescriptionInstallingUsageCommunitySupportContributingCopyrightIntroductionDescriptionValueguard Python Clientis the official client used to interact with the newValueguards APIValueguard is a Swedish company that provides real estate valuation and analysis services for the housing market. The company was founded in 2007. Our primary service is to provide independent home valuations and analyses to banks, brokers and other companies that need reliable and accurate property information. Our services are based on various data sources, including historical transaction data, information about the property's location and condition, and other market data.In addition to price statistics and valuations, Valueguard provides various other services, such as a complete registry of all homes in Sweden, called the Residential Registry. We have a team of experienced analysts who work to provide high-quality services to our clients.
We are proud to have a strong reputation in the Swedish real estate industry and are considered one of the country's leading providers of housing statistics.InstallingInstall by pippip3 install git+https://github.com/Valueguard-Index-Sweden/valueguard-python-client#egg=valueguardorpip3 install valueguardUsageForpython clientdocumentation seewiki-pageFor thecore Valueguard APIdocumentation, see theapi documentation.importvalueguard# Create objectvgClient=valueguard.Client()# Generate a access tokenvgClient.authenticate(<username>,<password>)# Use wished functionprint(vgClient.residential_registry(offset=0,limit=800,search_criteria={"construction_year_min":2018,"construction_year_max":2019}))CommunitySupportBugs, questions, and other issues can be directed to the project'sissues pageon GitHub, or emailed toinfo@valueguard.se.ContributingContributions are welcome in the form of code, bug fixes, or testing feedback. For more on how to contribute to Valueguard-python-client, see thecode of conductandcontributing guidelines.CopyrightMIT LicenseCopyright (c) 2020 Valueguard (info@valueguard.se)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.
Package: valuehorizon-companies
A Django-based companies data toolkit.
It also includes documentation, test coverage and a good amount of sample data to play around with.
This app is a part of the Valuehorizon application ecosystem.InstallationStart by creating a newvirtualenvfor your projectmkvirtualenv myprojectNext installnumpyandpandasand optionallyscipypip install numpy==1.8.0
pip install scipy==0.13.3
pip install pandas==0.13.0Finally, installvaluehorizon-companiesusingpip:pip install valuehorizon-companiesContributingPlease file bugs and send pull requests to theGitHub repositoryandissue
tracker.Commercial SupportThis project is sponsored byValuehorizon. If you require assistance on
your project(s), please contact us:support@valuehorizon.com.
Package: valuehorizon-countries
A Django-based Countries data toolkit.
It also includes documentation, test coverage and the official ISO-3166 seed data
for all current (and former) countries.
This app is a part of the Valuehorizon application ecosystem.Why a new Countries app?This app is not a fork of the excellentdjango-countriesapp. The aim of
valuehorizon-countries is to provide similar functionality but to actually include a Country model.
From an architectural point-of-view, we prefer this method for the following reasons:Country data are constantly evolving. ISO-3166 aims to keep track of all recognized countries and their current status.
For example, in 1991, the country known as Yugoslavia split into several states. We want to be able to keep a “Yugoslavia” object,
but set its status to something “non-current”;We want to keep the aforementioned country data as up-to-date as possible. Valuehorizon provides an API to do so;We want to make ORM queries on that data; andWe want the data to be part of the database, and not hard-coded in our source-code. This allows us to maintain the country data
without changing or adding source code.Again, this app is not meant to replacedjango-countries, but simply to provide similar functionality via Django models and not a field.ContributingPlease file bugs and send pull requests to theGitHub repositoryandissue
tracker.Commercial SupportThis project is sponsored byValuehorizon. If you require assistance on
your project(s), please contact us:support@valuehorizon.com.
Package: valuehorizon-forex
A Django-based Foreign Exchange data toolkit. It provides time-series functionality
with built-in statistical plugins such as volatility and returns. You can also write
your own statistical plugins.
It also includes documentation, test coverage and a good amount of sample data to play around with.
This app is a part of the Valuehorizon application ecosystem.InstallationStart by creating a newvirtualenvfor your projectmkvirtualenv myprojectNext installnumpyandpandasand optionallyscipypip install numpy==1.1.0
pip install pandas==0.13.0Finally, installvaluehorizon-forexusingpip:pip install valuehorizon-forexUsageLet’s start by loading some sample data.:python manage.py load_fixtures --settings=my_settings_fileThis dataset contains the exchange rate data for the US Dollar to Euro (USD/EUR) from 2013-01-01 to 2015-12-31. In a
django shell, we can try the following:euro = Currency.objects.get(symbol="EUR")ContributingPlease file bugs and send pull requests to theGitHub repositoryandissue
tracker.Commercial SupportThis project is sponsored byValuehorizon. If you require assistance on
your project(s), please contact us:support@valuehorizon.com.
Package: valuehorizon-people
A Django-based People data toolkit.
It also includes documentation, test coverage and a good amount of sample data to play around with.
This app is a part of the Valuehorizon application ecosystem.InstallationStart by creating a newvirtualenvfor your projectmkvirtualenv myprojectNext installnumpyandpandasand optionallyscipypip install numpy==1.8.0
pip install scipy==0.13.3
pip install pandas==0.13.0Finally, installvaluehorizon-peopleusingpip:pip install valuehorizon-peopleContributingPlease file bugs and send pull requests to theGitHub repositoryandissue
tracker.Commercial SupportThis project is sponsored byValuehorizon. If you require assistance on
your project(s), please contact us:support@valuehorizon.com.
Package: value-lookup
Value lookup in an array Python LibraryPython library to search value into inside array. This doesn't cover object analysis.MotivationValue lookup help the way we can search for a value within a listInstallationInstall usingpipwith:pip install value-lookupExample Usagefrom  value_lookup import vlookup

#### Test 1
test1 = vlookup(1, [1,2,3,4,5,6], True)
print(test1)Output:{'founded_values': ['1'], 'size_of_returned_list': 1, 'object_type': <class 'list'>}Test 2test2 = vlookup(1, [1,2,3,4,5,6])
print(test2)Output:TrueAuthorEuclídio Venâncio •euclidiodagracavenancio@gmail.com
Package: valueobject
ValueObjectLicense: ISC - See LICENSE fileValueObjectis adict-like object that exposes keys as attributes.
You can use it like a regular dictionary (in fact, it is a subclass
and does not override its__init__). You can use attribute or item
access to get or set values.>>> from valueobject import ValueObject
>>> vo = ValueObject(key=1)
>>> vo['key']
1
>>> vo.key
1
>>> vo['key'] += 1
>>> vo.key += 1
>>> vo['key']
3
>>> vo.key
3Usability notes:If you need to access a key that is not a valid Python identifier
(for example, it includes spaces), use regular dict access.All regularobject,dictandValueObjectmethods will be
returned on attribute access. A key such ascopyneeds to be
accessed via item access syntax (e.g.valueobject['copy']).Changelog1.0.3: Minor build fixes, to make the setup.py file python3 safe. While the rest of the library was python3 safe all along, that file was not… 😬