Saravanan666/pypi-org huggingface dataset:
Package: vaststring
VastString ModuleThe VastString Module provides a collection of functions for performing advanced operations on strings. These functions can be used to tackle various tasks related to string processing, including text similarity measurement, pattern matching, and tokenization.Included Functions:levenshtein_distance: Calculates the Levenshtein distance between two strings, measuring the minimum number of edits required to transform one string into another.soundex: Computes the Soundex code, a phonetic representation of a given string, useful for approximate string matching.jaro_winkler_distance: Computes the Jaro-Winkler distance between two strings, indicating their similarity with a higher weight on common prefixes.extract_substrings: Extracts all occurrences of a specified substring from a larger string.tokenize_string: Splits a string into tokens based on a given regular expression pattern, facilitating natural language processing tasks.These functions can be utilized in a wide range of applications, from text processing to data cleaning and analysis. Whether you need to measure text similarity, extract specific patterns, or tokenize text for further analysis, this module provides a set of powerful tools to assist you in your projects.Usage Example:importvaststringdistance=vaststring.levenshtein_distance("kitten","sitting")print(distance)# Output: 3
Package: vastweb
VastWeb ModuleThe VastWeb module simplifies web development with Flask by providing a convenient interface for creating a basic web application. With a single command, you can start a Flask web server with default routes, templates, and static files.Getting StartedInstallationInstall thevastwebmodule usingpip:pipinstallvastwebUsagefromvastwebimportrun# Use run() to run a file called 'index.html' in the file 'templates'run()
Package: vat
What is this?It’s a package of useful Python code relating to VAT, that’s what.  It
includesTables mapping ISO alpha 2 country codes to VAT codes and vice-versaTables of VAT number formatsTables of VAT rates, thresholds and registration periodsSupport for querying the VIES VAT database system (to check VAT details),including fuzzy matching support for names and addressesUtility functions for UK VAT (in the vat.gb package), includingEC sales list XML generationMini One Stop Shop (MOSS) return generationA few words about VATIn the European Union, companies are expected to charge and account for Value
Added Tax (VAT).  This has a variety of other names (IVA, TVA, MwSt., USt.,
BTW, ДДС, ΦΠΑ, DPH, PDV, Moms, km, ALV, ÁFA, CBL, PVN, PVM, PTU, DDV, IGIC and
TAW), but it’s the same basic idea, and the rules are—to some
extent—harmonised.From the consumer’s perspective, VAT is a sales tax. However, from a
business’ perspective, it is not; unlike a sales tax, businesses charge VAT toeverybody, whether or not they are a business customer, and are able to
offset the VAT they have to pay over to the tax authority against the VAT they
have themselves paid.Sounds simple?  Hah!  You havenoidea.The first problem is that all of the different countries have their own rates
for VAT, and most of them have at least two rates that apply to different
categories of goods and services.  The second problem is cross-border
transactions; depending on the nature of the transaction, the supplier may or
may not be expected to charge VAT to the purchaser, and when they do not, the
purchaser will generally be expected to account for VAT under the “reverse
charge” rules (essentially by charging himself VAT, which will normally result
in no payment to the tax authority because the amount to be paid will be
offset entirely by itself).There are all kinds of additional complications—some member states operate
registration thresholds, others don’t; some provide a grace period for
registration, in others you’ve broken the law if you make a supply that takes
you over the threshold; some allow you to register and submit returns
yourself, others require that you hire people to do it for you; and so on.One further niggle is thatsuppliers of electronic services outside of the
European Union are expected to charge VAT to their European customers.  Many
don’t, with the result that their products can be priced more competitively
than would be possible for a company operating within the European Union.DISCLAIMERIt is YOUR RESPONSIBILITY if you use this code to check that the rates and
thresholds you are using are the correct ones.  The author cannot be held
liable for errors in this material, particularly as much of it comes from
documents on the EU website that may be out of date and that themselves
include disclaimers.DocumentationThe documentation for this package is available onRead the Docs.
Package: vater
VaterPython client providing convenient way to access polish VAT payers register API (version 1.3.0).Installationpip install vaterUsageScripts>>> import vater
>>> client = vater.Client(base_url='https://wl-api.mf.gov.pl')
>>> client.search_nip(nip='0000000000')
(
  Subject(
    name='Beastie Boys',
    nip='0000000000',
    status_vat='Czynny',
    regon='111111111',
    pesel=None,
    krs='0000000000',
    residence_address=None,
    working_address='Brooklyn',
    representatives=[],
    authorized_clerks=[],
    partners=[
      Company(
        company_name='Mike D',
        first_name='Michael',
        last_name='Diamond',
        nip=None,
        pesel=None
      )
    ],
    registration_legal_date=datetime.date(2001, 1, 1),
    registration_denial_basis=None,
    registration_denial_date=None,
    restoration_basis=None,
    restoration_date=None,
    removal_basis=None,
    removal_date=None,
    account_numbers=['00000000000000000000000000'],
    has_virtual_accounts=False
  ),
  'z5x71-85a8gl5'
)If you want to get raw server json just setrawto True:>>> client.search_nip(nip='0000000000', raw=True)
{
  'result': {
    'subject': {
        'name': 'Eminem',
        'nip': '0000000000', 
        'statusVat': 'Active', 
        'regon': '777777777', 
        'pesel': '77777777777', 
        'krs': '6969696969', 
        'residenceAddress': '8 mile', 
        'workingAddress': '8 mile', 
        'representatives': [
            {
              'companyName': 'Moby Dick Inc',
              'firstName': 'sir Richard',
              'lastName': 'Lion Heart',
              'nip': '0000000000',
              'pesel': '77777777777'
            }
        ],
        'authorizedClerks': [],
        'partners': [],
        'registrationLegalDate': '2001-01-01',
        'registrationDenialBasis': 'Denial Basis',
        'registrationDenialDate': '2002-02-02',
        'restorationBasis': 'Restoration Basis',
        'restorationDate': '2003-03-03',
        'removalBasis': 'Removal Basis',
        'removalDate': '2004-04-04',
        'accountNumbers': ['00000000000000000000000000'],
        'hasVirtualAccounts': False
  },
  'requestId': 'aa111-aa111aaa',
  }
}By default the data is fetched from today's date,
it can be changed by settingdateargument:>>> import datetime
>>> client.search_nip(nip='0000000000', date=datetime.date(2001, 1, 1))String may also be passed as adate:>>> client.search_nip(nip='0000000000', date='2001-01-01')Keep in mind the API limits maximum number of requested subjects to 30.CLIcommandvater search-nip [ACCOUNT]vater search-nip [ACCOUNTS]vater search-nip [NIP]vater search-nips [NIPS]vater search-nips [REGON]vater search-nips [REGONS]vater check-nip [NIP] [ACCOUNT]vater check-regon [REGON] [ACCOUNT]Each command allows to set--dateparameter formatted as followsYYYY-MM-DD.
Default value is today's date.DocsProject docs may be found here:https://vater.readthedocs.io
Package: vat-format-checker
A library for checking on European VAT formatspyVat is a complete library that validates vat number formats in EU member countries. The algorithms used are described in /doc/VIES-VAT Validation Routines-v15.0.docCompatibilityPython >= 2.6Installation$ pip install vat-format-checkerUsagefrompyVat.apiimportValidatorvalidator=Validator('ATU10223006')ifvalidator.validate()isTrue:print("The VAT number has a valid format")else:print("Invalid VAT number format for country%s"%validator.country_code)IssuesThe Croatian format is missing the algorithm. The validations is done purely based on regular expressions.
Package: vathos
Vathos PythonInstallationDependenciesPythonversion 3.8 or higherrequestsnumpyimageiomayavi(optional)trimesh(optional)Build from sourceTo get a nightly build, first, clone this repository:gitclonehttps://github.com/vathos/python.vathos.net.gitThen, build the Python wheel:./setupbuildbdist_wheelThe result is put in the subfolder./dist. Install it with the following command:pipinstall./dist/vathos-0.0.0_latest-py3-none-any.whlInstallation with pipThe latest official version of the library is available on PyPi and can be installed by callingpipinstallvathosNote that if you would like to make use of the optional visualization modules,
you will have to make that explicit by calling:pipinstallvathos[visualization]Quick startGet in touch with usto receive a test account. Make sure your client id and secret are exported to the two eponymous environment varibalesCLIENT_IDandCLIENT_SECRET. Now you are ready to run the examples in thedemos folder.Further readingAPI documentationDevelopers Guide
Package: vaticinator
vaticinator(6)v0.0.7Vaticinator is yet another Python implementation of the
ancient and (in)famousfortuneprogram from thebsdgamespackage.My motivation for writing it was more to have a
portable library I could use to fetch fortunes for
use in other projects.  It's possible that one or
more of the existing ones have this (I looked
albeit briefly), but it was an itch I didn't mind
scratching.It is still alpha maturity level, though the majority
offortunebehavior is implemented at the moment.Example integrationThis is a the code for a Django template tag that
displays a random fortune inside a template (with
all the options from the command line available).
This is basically why I created this project::from django.template import Library
from vaticinator.vaticinator import Vaticinator

register = Library()
vaticinator = Vaticinator()

@register.simple_tag
def random_fortune(**kwargs):
	vaticinator.set_default_options()
	vaticinator.process_options(**kwargs)
	return vaticinator.fortuneAnd the template::<span>{% random_fortune 'short' 'all' %}</span>
Package: va-timeseries
timeseriesA Python library for the interpretation and treatment of time-series data.pip install va-timeseriesWhat is it?A set of methods to process timeseries data.Main FeaturesSeasonal Decomposition
-> trend
-> detrend
-> seasonal
-> residual
-> plot()Seasonal Adjustmenttimeseries.seasonal_pattern (series, period)
timeseries.series_frequencies (series)
timeseries.cycle_periods (series) <- estimateTrendingtimeseries.linear_regression (x, y)
timeseries.henderson (series, window)
timeseries.rolling_average (series, window)Methods for identifying and describing trends in data.Control Chartscc = timeseries.control_chart(series, samples=8)Predict// predict (cycles)Helper Methodstimeseries.fillna (series, filler=0)
timeseries.mean (series)
timeseries.standard_deviation (series)
timeseries.variance (series)
timeseries.matches (series, rule)
timeseries.f_x (series, function)DependenciesmatplotlibNumPyLicenseApache-2.0CreditsHenderson adapted fromMark Graph's Implementation
Package: vatnumber
Python module to validate VAT numbers.NutshellHere a simple example to validate VAT numbers format:>>> import vatnumber
>>> vatnumber.check_vat('BE0123456749')
TrueHere a simple example to validate European VAT through VIES service:>>> import vatnumber
>>> vatnumber.check_vies('BE0897290877')
TrueFor more information please visit thevatnumber website.
Package: vatnumber3
Python module to validate VAT numbers.NutshellHere a simple example to validate VAT numbers format:>>> import vatnumber
>>> vatnumber.check_vat('BE0123456749')
TrueHere a simple example to validate European VAT through VIES service:>>> import vatnumber
>>> vatnumber.check_vies('BE0897290877')
TrueFor more information please visit thevatnumber website.
Package: vatnumber-xtra
Python module to validate VAT numbers.NutshellThis is a fork of vatnumber projecthttps://pypi.org/project/vatnumber/changed to work with python3 and setuptools > 58.0Here a simple example to validate VAT numbers format:>>> import vatnumber_xtra
>>> vatnumber_xtra.check_vat('BE0123456749')
TrueHere a simple example to validate European VAT through VIES service:>>> import vatnumber_xtra
>>> vatnumber_xtra.check_vies('BE0897290877')
TrueFor more information please visit thevatnumber website.
Package: vatsim
python-vatsimThis module aims to provide functionality to interact with VATSIM APIs and the datafeed. In the
future, it will also include parsers for different file formats like Sectorfiles or ESE files
for Euroscope as well as additional tooling for processing VATSIM related data.Current FeaturesPydantic models for the VATSIM status endpoints and the VATSIM datafeedSimple fetchers for endpoints and the datafeedExampleimportvatsimdata=vatsim.fetch_vatsim_data()
Package: vats-proxy
Vats_ProxyFree Proxy library for Python to use with requests library.
Checks proxy connection&health while scraping proxies.Installationpip install vats_proxyGet startedHow to initiate ProxyManager and Use it: Example usages are shown belowProxyManager(count=4)#Gets 4 free proxyProxyManager(count=4,test_url="http://www.yourtargetsite.com")# Gets 4 proxy and test proxies by making requets to test_url#####Get One Proxyfromvats_proxyimportProxyManagerimportrequests# Initialize Managerproxy_manager=ProxyManager(count=1,test_url="http://www.yourtargetsite.com")# Make request with proxyproxy=proxy_manager.proxies.pop()# gets one proxy from proxy list#proxy variable information:#type: dict#value example: {"http": "http://192.68.1.1:9954"}request=requests.get("https://www.google.com",proxies=proxy)#####Get Multiple Proxies and Make Each request with different proxyfromvats_proxyimportProxyManagerimportrequests# Initialize Managerproxy_manager=ProxyManager(count=5,test_url="http://www.yourtargetsite.com")# Make request with proxyforproxyinproxy_manager.proxies:request=requests.get("https://www.google.com",proxies=proxy)#####Handle Failed Proxy Connectionfromvats_proxyimportProxyManagerimportrequestsfromrequests.exceptionsimportProxyError# Initialize Managerproxy_manager=ProxyManager(count=1)proxy=proxy_manager.proxies.pop()try:request=requests.get("https://www.google.com",proxies=proxy)exceptProxyError:proxy=proxy_manager.request_proxy()# returns new proxy
Package: vatvalidate
vatvalidateEver wondered if that VAT number is valid? Well, now you can find out thanks to this simple Python library.vatvalidateimplements the modulus 97 and modulus 9755 used to check the validity of VAT numbers in the United Kingdom. For more info on these algorithms, seethis link.InstallationTo installvatvalidate, simply:$pipinstallvatvalidateUsageUsingvalidate_vat_number, you can simply check the validity of vat number strings.fromvatvalidate.validateimportvalidate_vat_number# Validate a vat number using validate_vat_numbervat_numbers=["GB424807302","424807302","VAT NUMBER: 424807302","GB279238956","1234",]print([validate_vat_number(number)fornumberinvat_numbers])#> [True, True, True, False, False]
Package: vat-validator
vat-validatorPythonic VAT validation library 🌍💳✅FeaturesOffline VAT code validation using country specific regular expressions and
checksum algorithms;Online validation for European Union VAT codes usingVIESwebservice;VAT code sanitization;Fully annotated with type hints, for a better IDE andmypydevelopment
experience;Tested and validated against 1697 different VAT codes.Getting startedInstalationvat-validatoris distributed as standard pip library, and can be installed
by running:pip install vat-validatorTo install the latest development version directly from git:pip install git+git://github.com/ajcerejeira/vat-validator.gitUsage>>> from vat_validator import validate_vat, countries_where_vat_is_valid
>>> validate_vat('PT', 'PT 502 011 378')
True
>>> countries_where_vat_is_valid('502 011 378')
['PT']>>> from vat_validator.vies import check_vat
>>> check_vat('PT', '502 011 378')
CheckVATResult(country_code='PT', vat='502011378', request_date=datetime.date(2019, 6, 8), valid=True, name='UNIVERSIDADE DO MINHO', address='LG DO PACO\nBRAGA\n4700-320 BRAGA')ContributingPull requests are welcome! Please check theCONTRIBUTINGfile for contribution guidelines.LicenseThis software is distrubuted under MIT license. See theLICENSEfile for details.
Package: vaud
Usage:pipinstallvaudDecode urls:importvauduid=1url='https://m.vk.com/mp3/audio_api_unavailable.mp3?extra=zuHdAgfLvxaXtd1W...CsDasdvv32yLjpy3yVBxrm#AqVYStC'decoded_url=vaud.decode(uid,url)# One trackimportvauduid=1urls=['https://m.vk.com/mp3/audio_api_unavailable.mp3?extra=zuHdAgfLvxaXtd1W...CsDasdvv32yLjpy3yVBxrm#AqVYStC','https://m.vk.com/mp3/audio_api_unavailable.mp3?extra=zuHdAgfLvxaXtd1W...CsDasdvv32yLjpy3yVBxrm#AqVYStC','https://m.vk.com/mp3/audio_api_unavailable.mp3?extra=zuHdAgfLvxaXtd1W...CsDasdvv32yLjpy3yVBxrm#AqVYStC',]decoder=vaud.Decoder(uid)# Multiple tracksdecoded_urls=[]forurlinurls:decoded_urls.append(decoder.decode(url))Get all audio (not auto-decode):importvaudmy_vk=MyVkClass()# Own class for vk.comcookies=my_vk.cookies# Get site cookies. dict()uid=my_vk.uid# User idaudio_parser=vaud.AlAudio(uid,cookies)urls=audio_parser.main()[{'ur':'Encoded url','track':'Track title','author':'Author','id':'VK Track id'},...]urls=audio_parser.main(True)[('Encoded url','Track title','Author','VK Track id'),...]decoded_urls=[]# Look before examples
Package: vaughntech.cdk-nodejs-powertools-lambda-layer
DescriptionThis repo packages together a suite of utilities for AWS Lambda functions running on the Node.js runtime, to ease adopting best practices such as tracing, structured logging, custom metrics.'CDK Backup PlanProvides an easy to use reusable CDK construct to createBackup PlansusingAWS Backups. It allows to indicate how frequently and what resources to backup.NOTE:More details on all the available arguments can be foundhereInstallNPM install:npminstallcdk-backup-planPyPi install:pipinstallcdk-backup-planUsage//...import{Runtime,Tracing}from'aws-cdk-lib/aws-lambda';import{NodejsFunction}from'aws-cdk-lib/aws-lambda-nodejs';import{ToolsLayer}from'vaughntech-nodejs-powertools-lambdalayer';//...consthello_world_lambda=newNodejsFunction(this,'helloworldLambda',{description:`HelloWorldLambda`,label:'HelloFnc',runtime:Runtime.NODEJS_16_X,memorySize=128,timeout:Duration.seconds(10),logRetention=30,tracing:Tracing.ACTIVE,entry:path.join(__dirname,'../../src/lambda/hello/index.ts'),functionProps:{timeout:5,layers:[toolsLayer,]});//...Python usage:# ...fromcdk_backup_planimportBackup# ...vpc=ec2.Vpc(self,"TestVPC")engine=rds.DatabaseInstanceEngine.postgres(version=rds.PostgresEngineVersion.VER_12_3,)db=rds.DatabaseInstance(self,"TestInstance",engine=engine,vpc=vpc,credentials=rds.Credentials.from_generated_secret("postgres"),)Backup(self,"TestBk",backup_plan_name="TestPkPlan",backup_rate_hour=3,backup_completion_window=Duration.hours(2),resources=[bk.BackupResource.from_rds_database_instance(db)],)# ...NOTE:Taggingand/orARNcan be used to reference resources not directly available in thestatic methods section.
Package: vault2env
Vault2EnvRead from a KV-2 secret path in Vault and create a .env file from the list of key/value pairs.Free software: MIT licenseDocumentation:https://vault2env.readthedocs.io.FeaturesReads environment secrets from a KV-2 path and outputs a .env file.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2019-10-29)First release on PyPI.
Package: vault2site
Vault to siteA program to convert Obsidian vaults into a static site. You can see an example of finished site with the default themehere. At the moment only the basic features of Obsidian are implemented and the program will fail to render certain things correctly, such as resizing an image as shown below.![[image.jpg|size]]You can put these in as issues ongithubas you find them and when I have the time I'll work on adding them. Or, you can fork it and build it out how you want.InstallationUsing pipThis is the easiest way.pipinstallvault2siteThen just use as you would a normal console app:vault2site <vault path> <output path>From sourceThis assumes you'll be installing it to a virtual environment.gitclonehttps://github.com/kilroyjones/vault2sitecdvault2site
virtualenv-ppython3venv
.venv/bin/activate
pipinstall-rrequirements.txtFrom this point you can run the program as follows:pythonapp/vault2site/main.py<vaultpath><outputpath>Or, alternatively you can use pip and install it:cdapp
pipinstall.Then, same as using pip you can run it as:vault2site <vault path> <output path>UsageTo convert your vault you should first include the.themesfolder from thedemo_vaultfolder in this repo into the root folder of your Obsidian vault. The.themesfolder contains two files:.themes
  ├─ page.css
  ├─ page.htmlThe above folder will not be visible from within Obsidian, as it hide files starting with periods by default.Modifying the themeThe current theme is easily modified by changing the CSS (page.css), but thepage.htmlfile, when modified, should still contain the items{{header}},{{menu}}, and{{body}}or the program won't run.Add extensionsCurrently working on allowing external extensions.
Package: vault8
Vault8 Python libInstallationpip3 install vault8Exampleimportosimportsysimportvault8pubkey=os.getenv('VAULT8_PUBLIC_KEY','')privkey=os.getenv('VAULT8_SECRET_KEY','')url=os.getenv('VAULT8_URL','https://vault8.io')vault=vault8.Vault8(public_key=pubkey,secret_key=privkey,service_url=url)# upload file from localhostimage=open('pypi.png','rb')# or remote# image = 'https://example.com/pypi.png'uploaded=vault.upload_image(image)ifuploaded.get('status')=='error':print(uploaded.get('response'))sys.exit(0)uid=uploaded.get('image_uid')print(vault.image_url(uid=uid,filters=[('resize_fill',1000,500),('grayscale',)]))
Package: vault-appsettings-linter
.NET Projects appsettings Configuration Linter for Stratio Vault LibraryDescriptionThis Python script is a linter that validates the contents of the appsettings.json file(s)
which are used by theStratio Vault Library.
It ensures that all occurrences of:{% vault_secret path/to/secret:key %}{% vault_dict path/to/secret %}{% user_home %}the Vault JSON objectare consistent with the requirements of theStratio Vault Library.Usagepython -m src.main --work-dir <path_to_the_appsettings_files_folder>
vault-appsettings-linter --work-dir <path_to_the_appsettings_files_folder>Available releasesDocker image:stratioautomotive/vault-appsettings-linterPyPi Package:vault-appsettings-linterAuthorsRafael Coutorafaelcouto@stratioautomotive.comBernardo Marquesbernardomarques@stratioautomotive.comLicenseThis script is licensed under LGPL-v3, the same license of the parent projectStratio Vault Library.