Saravanan666/pypi-org huggingface dataset:
Package: pricestf_py
Prices.tf APIpricestf_pyis a library to get Team Fortress 2 items' prices fromprices.tf API.Prices can be queried both by items' SKUs or names: to get prices from item names a Steam API key is required.Installationpip3installpricestf_pyIf you are planning to get the items' prices using their names, after installing the package run:frompricestf_pyimportTF2ItemsTF2Items.save_item_ids(api_key='your-steam-api-key')This method will download the list of item IDs which are necessary to generate the items' SKUs.Use it also to update the items list (e.g. when new items are added to Team Fortress 2).Examplesfrompricestf_pyimportPricesTF# Get token from prices.tf APIptf=PricesTF()# get item prices from its nameresponse=ptf.price_by_name("Rump-o'-Lantern","Unique",craftable=False,australium=False,killstreak=0)print(response)# get item price from its SKUresponse=ptf.price_by_sku(869,6,craftable=False,australium=False,killstreak=0)print(response)
Package: price-tracker
PRICE TRACKERIt's a simple python3 application that tracks prices and warn the user by email.InstallationRequirementspython3 or later to run price-trackerThis application uses gmail smtp server, so firstly you should have a gmail account.
I suggest you to use two-step verification for the application. For additional information check the links bellow.Google Two-Step VerificationGoogle App PasswordsYou can test application with using temp mail as receiver. I usetemp-mail.iowhile development.Stable VersionInstalling via piprecommended way to install is via pip:pip3installprice-trackerLatest VersionInstalling from GitYou can install the latest version from Gitpip3installgit+https://github.com/Evasionn/price-tracker.gitUsageRun bellow command to set configurations. It will be automatically openedhttp://localhost:5051and after saving
config and product list you can click Shutdown Server button or "ctrl + c" in terminal.price_trackerinitAfter setting configuration and product list, it is enough to run bellow command.price_trackerTo run in backgroundnohuppython3-u-mprice_trackerWhat is NewVersion 0.6Added web server to set configuration and product list easilyHepsiburada scraper updatedCheckchange logSupported Web Sites
Package: price-val-engine
Price Validation EngineOverviewPrice Validation Engine is framework to create skeleton to validate last price revisionrequirementspython 3.6+Linux, MacOS, windowsinstallpip install price-val-engineStart Projectpython -m price_val_engine startproject project_nameProject template structure- base_dir
    - project_name 
        - __init__.py
        - settings.py
        - validtion_rules.py
    - run.pyRun projectpython run.py --input=input.csv --output=output.csvinput as s3 csv filepython run.py --input=s3://bucket_name/path/input.csv --output=s3://bucket_name/path/input.csvsettings.pydefault validation pipelineVALIDATION_PIPELINES = [  
     'price_val_engine.core.validations.general_rules.NullNegativeZeroValidationRule',  
     'price_val_engine.core.validations.general_rules.OutOfRangeValidationRule',  
     'price_val_engine.core.validations.revision_rules.AbsoluteDeltaPercentageRangeValidationRule',  
 ]Add new custom validation rule- step 1 you can define your custom validtion rules in the file `project_name/validation_rules.py`

    class MyValidationRule(BaseRule)
        name = "validation_rules.myvalidation_rule"
        message = "price could not be gte {max_price}"
        severity = ''

        def is_valid(self, item):
            max_price = 50
            if item['price'] >= max_price:
                self.message.format(max_price)
                self.severity = 'HIGH' # you can define severity LOW, MEDIUM and HIGH

- step 2 add your newly defined rule in `setting.py`

    VALIDATION_PIPELINES = [  
        ...,
        'project_name.validation_rules.MyValidationRule
    ]Validation_rulesprice_val_engine.core.validations.general_rules.NullNegativeZeroValidationRuleprice_val_engine.core.validations.general_rules.OutOfRangeValidationRuleprice_val_engine.core.validations.revision_rules.AbsoluteDeltaPercentageRangeValidationRuleprice_val_engine.core.validations.revision_rules.DeltaPercentageValidationRuleprice_val_engine.core.validations.revision_rules.DeltaValidationRuleDefault Settings:NullNegativeZeroValidationRule config- EMPTY_VALUES:  (None, "", [], (), {})OutOfRangeValidationRule config- GEN_VAL_OUT_OF_RANGE_VALUE: 

        {
            'min_value': 100000.0,
            'max_value': 10000000.0
        }AbsoluteDeltaPercentageRangeValidationRule config- DEFAULT_LP_FIELD: 'final_liquidation_price'
- DEFAULT_PREV_DAY_LP_FIELD: 'lp'

- DELTA_PCT_VAL_DEFAULT:  (-5, 5)
- DELTA_PCT_VAL_LOW: (-7, 7)
- DELTA_PCT_VAL_MEDIUM: (-10, 10)slack notification- SLACK_ENABLED: False
- SLACK_BOT_TOKEN: os.environ.get("SLACK_BOT_TOKEN")
- SLACK_CHANNEL: os.environ.get("SLACK_CHANNEL")
- COLUMNS_TO_BE_SEND_ON_ALERT: '__all__'Read Write CSV file from S3- AWS_ACCESS_KEY_ID: os.environ.get('AWS_ACCESS_KEY_ID')
- AWS_SECRET_ACCESS_KEY: os.environ.get('AWS_SECRET_ACCESS_KEY')
- AWS_SESSION_TOKEN: os.environ.get('AWS_SESSION_TOKEN')
Package: price-watcher
Price WatcherThis repo is a script I wrote to help watch a product page
on amazon. Basically waiting to see if the product drops below a certain price.The following will check the page and text the number 2025550112 if it finds a price < $1000price_watcherB01FV4TAKK10002025550112the intended use of this script is as something you would throw into a cron task (or an aws lambda function like I did)
and let it watch a page for youDevelopingSimply setup a virtualenv and install the requirements and install the source formatting githookvirtualenv-ppython3venv
pipinstall-rrequirements.txt
pre-commitinstallRunning the testssourcevenv/bin/activate
python-mpytesttestsRunning the code formattersourcevenv/bin/activate
black.Known IssuesI wrote this for one very specific product.
It works for others (specifically ones that have aOffer Listing) but I have not had a need yet so I have not seen how robust the scrape is.I'm down for talking about improvements if people see this and are interested. But I mostly wrote this to watch this one product for my wife. It started as a simple script but then I was having fun writing it in a somewhat maintainable way
Package: pride
Python Runtime and Integrated Development EnvironmentQ: What is it?A: An application framework. Programs written with pride tend to be very conciseyet very capable.Q: What features does it offer?A: Most features are aimed at productivity and an improving minimum standard of quality.Automatically generated documentation (docstrings and websites) - zero configAutomatically generated command line argument parsers - zero configAutomatic verbosity handling and loggingSimple mutex free concurrencyObjects can be updated from source at runtime without pausing or stopping executionApplication state can be saved/loadedA concurrent interactive shell that reduces/eliminates the need for a debuggerSimple, secure remote procedure calls with authenticated clients/servers.
remote object access requires zero config, aside from username/password setup.Q: Where can I learn more?A: Investigatehttps://github.com/erose1337/prideor jump straight into the documentationathttp://erose1337.github.io/pride/Q: What are the dependencies?A: Python 2.7+ is required. optional modules require additional dependencies:Low level audio support requires pyalsaaudio on linux or pyaudio otherwiseSDL support requires SDL2.0 and pysdl2
Package: pride-checksum
Computes SHA-1 checksum for all the files in the specified directory or for the list of all files specified in a file and writes to achecksum.txtfile.Usage:pride_checksum --out_path /path/to/save/computed_checksum/ --files_dir /dir_path/where/files/are/located/ORpride_checksum --out_path /path/to/save/computed_checksum/ --files_list_path /path/to/file/containing/list_of_files.txtSamplelist_of_files.txt:/path/to/some/file1.xml
/path/to/some/file2.xml
/some/other/path/file3.tsvPlease make sure the list of files:Doesn't contain any duplicate file names.Doesn't contain any directories (only files are allowed)Doesn't contain any hidden files.NOTE:File names can't have any spaces or any special chars other than underscore(_) and hyphen (-)The name of the output file is alwayschecksum.txtand if a file with same name already exists in the specified out_path, it will be overwritten.
Package: pride-colors-plotly
pride_colors_plotlyPlotLY and matplotlib pride flag color maps and templates to make your plots proud :)Installationpipinstall-Upride_colors_plotlyor install withPoetrypoetryaddpride_colors_plotlyThen you can runpride_colors_plotly--helpor withPoetry:poetryrunpride_colors_plotly--helpAboutAvailable flag color schemes:Philadelphia pride flagRainbow flagTrans flagBisexual flagLesbian flagAsexual flagAromantic flagPan flagUsageSet color cycle as plotly default color cycle:set_pride_template(flag="philadelphia")Get a list of discrete colors (for use in either matplotlib or plotly):colors=pride_colors_plotly(flag="rainbow")Get a continuous colorscale for use in plotly:colorscale=pride_colors_plotly(flag='trans',continuous_colorscale=True)Get a matplotlib colormap:cmap=pride_colors_matplotlib(flag='bi')📈 ReleasesYou can see the list of available releases on theGitHub Releasespage.We followSemantic Versionsspecification.We useRelease Drafter. As pull requests are merged, a draft release is kept up-to-date listing the changes, ready to publish when you’re ready. With the categories option, you can categorize pull requests in release notes using labels.List of labels and corresponding titlesLabelTitle in Releasesenhancement,feature🚀 Featuresbug,refactoring,bugfix,fix🔧 Fixes & Refactoringbuild,ci,testing📦 Build System & CI/CDbreaking💥 Breaking Changesdocumentation📝 Documentationdependencies⬆️ Dependencies updatesYou can update it inrelease-drafter.yml.GitHub creates thebug,enhancement, anddocumentationlabels for you. Dependabot creates thedependencieslabel. Create the remaining labels on the Issues tab of your GitHub repository, when you need them.🛡 LicenseThis project is licensed under the terms of theGNU GPL v3.0license. SeeLICENSEfor more details.📃 Citation@misc{pride_colors_plotly,author={E. Lastufka},title={PlotLY and matplotlib pride flag color maps and templates to make your plots proud :)},year={2022},publisher={GitHub},journal={GitHub repository},howpublished={\url{https://github.com/pride_colors_plotly/pride_colors_plotly}}}CreditsThis project was generated withpython-package-template
Package: pridepy
pridepy: Python client for PRIDE Archive databasePython Client library for PRIDE Rest APIInstallationTo install, simply usepip:$pipinstall--upgradepridepyExamplesDownload all the raw files from a dataset(eg: PXD012353).
Warning: Raw files are generally large in size, so it may take some time to download depending on the number of files and file sizes.$pridepydownload-all-raw-files-aPXD012353-o/Users/yourname/Downloads/foldername/Download single file by name$pridepydownload-files-by-name-aPXD022105-o/Users/yourname/Downloads/foldername/-fchecksum.txtSearch projects with keywords and filters$pridepysearch-projects-by-keywords-and-filters--keywordaccession:PXD012353Search files with filters$pridepyget-files-by-filter--filterfileCategory.value==RAWSearch protein-evidences with keywords and filters$pridepysearch-protein-evidences--project_accessionPXD012353Search spectra-evidences with keywords and filters$pridepysearch-spectra-evidences--usi"mzspec:PXD019317:sh_5282_HYK_101018_Mac_D_25mM.mzML:scan:10138:YAAMVTC[UNIMOD:4]MDEAVRNITWALKR/3"Use below command to view list of commands available$python3pridepy.py--helpdownload-all-raw-filesdownload-files-by-nameget-files-by-filterget-files-by-project-accessionget-projectsget-projects-by-accessionget-reanalysis-projects-by-accessionget-similar-projects-by-accessionsearch-peptide-evidencessearch-projects-by-keywords-and-filterssearch-protein-evidencessearch-spectra-evidencesupdate-metadataNOTEPlease make sure you are using Python3, not Python 2.7 version.
Package: priest
![](http://assets.flatcartoon.com/images/3.png)#priestGenerate wishes from your command line with full customization.**Clueless ?**# Okay, see this- If you try this in **night** :```bash>>> from priest import now>>> now()#=> good night, have sweet dreams !!#=> howdy, nighttime :-)```- If you try this in **morning** :```bash>>> from priest import now>>> now()#=> hey, morning !#=> heya !! morning !```**PS:** You can run this at any time of a day , it will generate wish messages accordingly. :smiley:# See more- If you run it in **France** in night```bash>>> from priest import now>>> now()# = > Bonne nuit , beaux rêves !!```- If you run it in **Germany** in night```bash>>> from priest import now>>> now()# => Gute Nacht, süße Träume haben !!```# Not impressed ?And, this gives you an awesome picture message :wink:```bash>>> from priest import now>>> now(lang='en',pic=True)```![](http://i.imgur.com/pG2FRcr.jpg)# What is does and how ?It generates random wish messages/pictures in your native language and according to time of the day by querying APIs internally for getting the information of your timezone, location etc.**Note** : If you are using a proxy connection, it might create a mess ! :flushed:# Usage###methods`now` -  Generates a wish according to current time of the day`morning` -  Outputs a morning greeting message`afternoon` -  Outputs a afternoon greeting message`evening` -  Outputs a evening greeting message`night`-  Outputs a night greeting message##parametersEach method takes in an optional `lang` parameter for eg. `en`,`de` etc and you can pass in an optional `pic` parameter.```bash>>> from priest import morning>>> morning(lang='de',pic=True)```*Result*:![](http://i.imgur.com/hv8URIf.jpg)#Installing```bash>>> pip install priest```**Note** : You need to register at [Mashape](https://www.mashape.com) and set your api key as an environment variable as follow:```bash>>> export X_Mashape_Key=<api-key>```# Some feature storming- Rest API coming soon !- Use calendar API to generate wishes for festivals ?# ContributionsPull requests are awesome and always welcome. Please use the **issue tracker** to report any bugs or file feature requests.#LicenceMIT
Package: prijsoog
PrijsoogThis is a simple hobby project which main focus is to get familiar with webscraping, Sphinx documentation and PyPi deployment. I do not take any responsibility for possible site bans due to excessive page requests.Prijsoog provides an easy-to-use api for retrieving product-price combinations for specific grocery items in Dutch supermarkets. You can pass a grocery-related query to Prijsoog’s search functionality to obtain a supermarket-depended list of related grocery items. Prijsoog sends a GET request to a selected set of the biggest Dutch supermarkets, and retrieves the top N products most relevant for your query.In order to assure fair use of their server capacity, Prijsoog’s defaults to a delay time of 5 seconds between queries.InstallationInstall the latest version of Prijsoog viaPypi:pip install prijsoogQuick DemoSee following exampleimportprijsoog# Show Albert Heijn results for "kiwi"AH=prijsoog.AhWatcher()products=AH.search("kiwi")print(products)# Show Jumbo results for "kiwi"Jumbo=prijsoog.JumboWatcher()products=Jumbo.search("kiwi")print(products)Free software: MIT licenseDocumentation:https://prijsoog.readthedocs.ioCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.5-0.1.7 (2021-10-16)Fix PyPi deployment0.1.1-0.1.4 (2021-10-15)Teething problemsAutomatic PyPI deployment0.1.0 (2021-10-10)First release on PyPI.
Package: prikfy
Prikfy LibraryPrikfy is a Python library that provides a function for converting numbers into their word representation.InstallationTo install Prikfy, you can use pip:UsageTo use the number-to-word conversion function from Prikfy, follow these steps:Import theUnitTransformfunction fromprikfy.transform import UnitTransform.fromprikfy.transformimportUnitTransformunit=UnitTransform()result=unit.number_to_word(1234)print(result)Feel free to modify the code further or add any additional sections or information as per your requirements.
Package: primalhelper
primalhelperDescriptionA selection of tools for wrangling PrimerSchemesTable of ContentsInstallationUsageInstallationInstall via poetrygit clone https://github.com/ChrisgKent/primalhelper
cd primalhelper 
poetry installUsageSee commandspoetry run primalhelper --helpConvert bedfilespoetry run primalhelper legacy --bedfile {path} > primer.bed
Package: primality
PrimalityPrimalityhelps you easily find, test and work with prime numbers in Python.primality.isprime(516349073509121311)>>Trueprimality.nthprime(9999)>>104729primality.prange(10)>>[2,3,5,7,11,13,17,19,23,29]InstallationUse the package manager pip to install Primality.pipinstallprimalityImplementationPrimality officially supports Python 3.8+.fromprimalityimportprimalityUsageisprime(p: int)True if {p} is prime.primality.isprime(13)>>Trueprimality.isprime(20)>>Falseprimality.isprime(516349073509121311)>>Truenthprime(nth: int)Returns the {nth} prime, starting from n = 0, returning 2.primality.nthprime(0)>>2primality.nthprime(100)>>547primality.nthprime(9999)>>104729prange(n: int)Returns a list with the form of [2, 3, ..., {n}th prime].primality.prange(3)>>[2,3,5]primality.prange(10)>>[2,3,5,7,11,13,17,19,23,29]
Package: primarycolors
Determination of the primary colors in an image file.Requirementspython (>=2.7.0)sixscipynumpyPillowInstallation:$ sudo pip install primarycolorsUsage:>>> from primarycolors import PrimaryColors
>>>
>>> # `image` - a path to image,
>>> # `max_colors` - the maximum number of colors in the resulting.
>>> im = PrimaryColors(image='Lenna.png', max_colors=5)
>>>
>>> #  The primary colors in the RGB hexadecimal list.
>>> im.hex
['621b43', '9e4257', 'e5bca5', 'd6877b', 'cb6161']
>>> im.web
['#621b43', '#9e4257', '#e5bca5', '#d6877b', '#cb6161']

>>> #  The primary colors in the RGB integer list.
>>> im.rgb
[[ 98,  27,  67], [158,  66,  87], [229, 188, 165], [214, 135, 123], [203,  97,  97]]
>>>
>>> #  An array of primary colors with the frequency coefficients.
>>> im.sorted_colors
[('cb6161', 0.24160000000000001),
 ('d6877b', 0.2412),
 ('621b43', 0.2016),
 ('9e4257', 0.1908),
 ('e5bca5', 0.12479999999999999)]
>>> im.hsl
[(326, 56.799999999999997, 24.509803921568629),
 (346, 41.071428571428569, 43.921568627450981),
 (21, 55.172413793103459, 77.254901960784323),
 (7, 52.601156069364166, 66.078431372549019),
 (0, 50.47619047619046, 58.823529411764696)]Like command line tool$ pcolor -i Lenna.png -w
#d68578 #c66162 #9d4459 #e3b7a2 #69234a
$ cat Lenna.png | pcolor -r
[157, 68, 89] [227, 183, 162] [214, 133, 120] [105, 35, 74] [198, 97, 98]License:primarycolors is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.primary colors is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with primarycolors.  If not, seehttp://www.gnu.org/licenses/.
Package: primarymath
primary mathIt's a Python'slibraryfor elementary math stuff, based on the bookEverything You Need to Ace Math.Installation$python3-mpipinstallprimary-mathRequirementsThe only requirement is Python 3.11.It should work fine with Python 3.10, but I didn't test it.Usageimportprimarymathaspmathnumber=pmath.Number(4)print(number.value())# 4print(number.is_even())# Trueprint(number.is_positive())# Trueprint(number.previous())# 3print(number.next())# 5LicenseThis repository is available under theMIT License.
Package: primaryschool
primaryschoolprimary school knowledge games.How To Use•Todo List•Credits•LicenseHow To UseTo runprimaryschool,
you'll needPython3andpython3-pip(which comes withPython3generally,
Unix-like may need to install separately.)
installed on your computer. From your command line:pip3install-Uprimaryschool;primaryschoolTodo ListSearch gamesUpdate target styleCreditsThis software uses the following open source packages:pygamepygame-menuxpinyinappdirsLicenseMIT License
Package: primavera
Primavera is a Python library to plan and analyze primer-based verification of DNA assemblies, using Sanger sequencing or verification PCR. It implements methods to design and select primers to ensure that the relevant assembly segments will be covered, and can generate simple (but approximative) plots summarizing the results of a batch of Sanger sequencing.Primer selection exampleThe following code assumes that a fileavailable_primers.facontains the labels and sequences of all available primers in the lab, and that the assemblies to be sequence-verified have annotations indicating the zones that the sequencing should cover and zones where primer annealing should be avoided.fromprimaveraimportPrimerSelector,Primer,load_recordimportos# LOAD ASSEMBLIES RECORDS AND AVAILABLE PRIMERSrecords=[load_record(file_path,linear=False)forfile_pathin['my_record_1.gb','my_record_2.gb']]available_primers=Primer.list_from_fasta("example_primers.fa")# SELECT THE BEST PRIMERSselector=PrimerSelector(tm_range=(55,70),size_range=(16,25))selected_primers=selector.select_primers(records,available_primers)# PLOT THE COVERAGE AND WRITE THE PRIMERS IN A SPREADSHEETselector.plot_coverage(records,selected_primers,'coverage.pdf')selector.write_primers_table(selected_primers,'selected_primers.csv')The returnedselected_primerscontains a list of lists of primers (one list for each construct). The PDF report returned looks like this:InfosPIP installation:pipinstallprimaveraWeb documentation:https://edinburgh-genome-foundry.github.io/Primavera/Github Page:https://github.com/Edinburgh-Genome-Foundry/PrimaveraLive demo:http://cuba.genomefoundry.org/select_primersLicense:MIT, Copyright Edinburgh Genome FoundryMore biology softwarePrimavera is part of theEGF Codonssynthetic biology software suite for DNA design, manufacturing and validation.
Package: primawera
IntroPrimawera is a simple imager viewer with support for non-standard image data such as complex, floating point
or 3D image data. For more detailed description about the basics of the viewer, please view theofficial website.InstallationThis package is available atPyPI. To install the package usingpiprun:python-mpipinstallprimaweraBuildingRequired packagesMore detailed information about version of packages is inside thepyproject.tomlfile.Python 3.10numpyPILPyQt5Qth5pyBuilding and installing the packageMake sure you have the latest version ofsetuptools,pipandvenvpackages as the building requires some
newer features ofsetuptools.Inside the root folder run:python-mbuildThe command should build a wheel file inside thedistfolder. To install it run:pipinstall<PATHTOWHEELFILE>UsageOpen empty windowIt is possible to run the viewer without any data.fromprimawera.appimportcreate_windowcreate_window()Visualise numpy dataIf you want to visualise data inside a numpy array, you will have to import the functionrun_app. Sometimes it is not
possible to automatically infer the mode (seePillow image modes).
in which case it has to be provided manually.fromprimawera.appimportrun_appimportnumpyasnpdata=np.random.random((10,10,10))run_app(data)# Orrun_app(data,mode="float")# You can also add overlay dataoverlay_data=np.random.random(data.shape)# same shape as datarun_app(data,mode="float",overlay_data=overlay_data)Run from terminalSimply runprimaweraRecognized image modes (case insensitive)Image typeLegal ModeBoolean1, boolGrayscalegray, grey, grayscale, greyscale, I;16 I;16BRGBrgb, color, colourFloatingf, float, floatingComplexc, complex