Saravanan666/pypi-org huggingface dataset:
Package: vindi
Integração com API da Vindi (Python 3.5+).Como instalarpipinstallvindiTutorial>>># import inicial>>>fromvindi.apiimportget_api_instance>>># criando uma nova instância da api>>>api=get_api_instance(token='seu-token-da-vindi')>>># listando todos os resources disponíveis>>>api.get_resource_list()['customers','plans','products','payment_methods','discounts','subscriptions','product_items','periods','bills','bill_items','charges','transactions','payment_profiles','usages','invoices','movements','messages','import_batches','merchant','issues']>>># listando todas as ações disponíveis para o resource customers>>>api.customers.actions{'list':{'method':'GET','url':'customers'},'create':{'method':'POST','url':'customers'},'retrieve':{'method':'GET','url':'customers/{}'},'update':{'method':'PUT','url':'customers/{}'},'destroy':{'method':'DELETE','url':'customers/{}'}}>>># executando ação list com todos os parâmetros possíveis>>>response=api.customers.list(body=None,params={},headers={})>>># trabalhando com uma instância response>>>response.url'https://app.vindi.com.br/api/v1/customers'>>>response.method'GET'>>>response.headers{'Cache-Control':'max-age=0, private, must-revalidate','Content-Type':'application/json; charset=UTF-8','Date':'Fri, 21 Apr 2017 15:30:11 GMT','ETag':'W/"0cbcb8ab8eb167a7525bdc61c7b89ba3"','Per-Page':'25','Rate-Limit-Limit':'120','Rate-Limit-Remaining':'119','Rate-Limit-Reset':'1492788671','Server':'nginx','Total':'2','Vindi-Merchant-Id':'5963','X-Request-Id':'d155bf74-df8e-4803-8281-8f1fe0373814','X-Runtime':'0.034142','Content-Length':'773','Connection':'keep-alive'}>>>response.body{'customers':[{'id':2481112,'name':'Jane Doe','email':'jane@doe.com','registry_code':None,'code':None,'notes':None,'status':'archived','created_at':'2017-04-19T13:08:51.000-03:00','updated_at':'2017-04-19T13:25:57.000-03:00','metadata':{},'address':{'street':None,'number':None,'additional_details':None,'zipcode':None,'neighborhood':None,'city':None,'state':None,'country':None},'phones':[]},{'id':2481258,'name':'John Doe','email':'john@doe.com','registry_code':None,'code':None,'notes':None,'status':'inactive','created_at':'2017-04-19T13:27:35.000-03:00','updated_at':'2017-04-19T13:27:35.000-03:00','metadata':{},'address':{'street':None,'number':None,'additional_details':None,'zipcode':None,'neighborhood':None,'city':None,'state':None,'country':None},'phones':[]}]}>>>response.status_code200>>># fim \o/Usando o ambiente sandbox>>># import inicial>>>fromvindi.apiimportget_api_instance>>># criando uma nova instância da api>>>api=get_api_instance(token='seu-token-da-vindi',api_root_url='https://sandbox-app.vindi.com.br/api/v1/')Verifique a documentação daAPI Vindi.
Package: vindta-reCAlk
VINDTA reCALKis a Python 3.6+ package that recalculates and corrects Dissoled Inorganic Carbon and Total Alkalinity from the Certified Reference Materials run on a VINDTA 3C.INSTALLATIONThis is a flask application that runs from the terminal. To install the app typepip install vindta_reCAlk.USAGE<img title=”screenshot of the app” src=”vindta_reCAlk_screenshot_01.png” style=”border-style: solid; boder-width: 1px; border-color: #CCC”>
The banner at the top of the app will provide instructions for the general usage. Below are the steps.To run the app typevindta_reCAlk. This should launch a browser tab that runs from the terminal window. If you close the terminal window, the app will stop.Enter the full path names of thedbsfile, a folder containing thedattitration files. Anxlsxpath also needs to be entered to save the output to. Click on the button toCreate excel from DBS. The page may not respond for a while - this is just the process running in the background. A textbox will show at the bottom of the page with a log of the processing.Open the Excel file and enter the Silicate, Phosphate, Temperature and Salinity data. Be sure to check that the standard CRM DIC and TA batch values are correct.Enter the name of the Excel file and click onRecalculate DIC and TA. The page will be inactive while the process runs in the background (rarely more than 15 seconds). The output will be saved to the excel file. The processing log will also appear in the textbox at the bottom of the page.ABOUTVersion: 0.2.4Author:  Luke GregorEmail:lukegre@gmail.comDate:    2020-04-09Please acknkowledge this code when you use it.CHANGE LOGv0.2.4Fixed bug when fetching dask fromsv0.2.3Now works in Python 2.7v0.2.2Shows the version numberv0.2.1Now reports an error if the Excel file is openV0.1.9Fixed a hard bugV0.1.9Fix a soft bug that occurs when data is not sorted by analysis_dateV0.1.8Fixedopenpyxlerror (can only readxlsxand notxls)V0.1.7Python 2 and 3 compatibility issues fixedV0.1.6added faviconsV0.1.5security updateV0.1.4updated README file.
Package: vine
Version:5.1.0Web:https://vine.readthedocs.io/Download:https://pypi.org/project/vine/Source:https://github.com/celery/vine/Keywords:promise, async, futureAboutThis is a special implementation of promises in that it can be used both
for promise of a value and lazy evaluation. The biggest upside for this
is that everything in a promise can also be a promise, e.g. filters,
callbacks and errbacks can all be promises.
Package: vine-python
#### Python - Vine APIvine-pythonis a simple client for Vine api.## Installation` sudo pip installvine-python`## Using`python import vineapi videos =vineapi.API.get_user_videos(user_id='962059221539651584')`## Contributing
[https://github.com/rohitkhatri/vine-python](https://github.com/rohitkhatri/vine-python)
Package: vines-infer-sdk
Vines Python 训练项目 SDK （供内部使用）这个项目希望解决的问题，将开发一个新的训练项目中的很多重复性工作进行统一封装：每次开一个新训练项目都需要起 HTTP Server里面有可能会用到很多通用能力，比如上传、下载文件、以及一些基础方法等，这些都应该封装好。错误日志推送逻辑运行时日志逻辑api 入参、出参统一格式封装统一的日志格式、日志收集安装pipinstallvines-infer-sdk使用示例作为 conductor 客户端详情见exampels/example_conductor.py文件中的内容。使用 flask http server从lib.server引入create_server方法，初始化 flask app，参数：sentry_dsn: sentry dsn, 如果配置，会自动收集异常推送到 sentrylog_redis_queue_url: 如果配置，在调用 request.logger 方法的时候，会自动推送到消息队列，从而给前端展示。打印日志的方法：直接使用request.logger实例的方法。详情见exampels/example_server.py文件中的内容。
Package: vines-worker-sdk
Vines Python 训练项目 SDK （供内部使用）这个项目希望解决的问题，将开发一个新的训练项目中的很多重复性工作进行统一封装：每次开一个新训练项目都需要起 HTTP Server里面有可能会用到很多通用能力，比如上传、下载文件、以及一些基础方法等，这些都应该封装好。错误日志推送逻辑运行时日志逻辑api 入参、出参统一格式封装统一的日志格式、日志收集安装pipinstallvines-worker-sdk使用示例作为 conductor 客户端详情见exampels/example_conductor.py文件中的内容。使用 flask http server从lib.server引入create_server方法，初始化 flask app，参数：sentry_dsn: sentry dsn, 如果配置，会自动收集异常推送到 sentrylog_redis_queue_url: 如果配置，在调用 request.logger 方法的时候，会自动推送到消息队列，从而给前端展示。打印日志的方法：直接使用request.logger实例的方法。详情见exampels/example_server.py文件中的内容。
Package: vineyard-ml
vineyard-ml: Accelerating Data Science PipelinesVineyard has been tightly integrated with the data preprocessing pipelines in
widely-adopted machine learning frameworks like PyTorch, TensorFlow, and MXNet.
Shared objects in vineyard, e.g.,vineyard::Tensor,vineyard::DataFrame,vineyard::Table, etc., can be directly used as the inputs of the training
and inference tasks in these frameworks.ExamplesDatasetsThe following examples shows howDataFramein vineyard can be used as the input
of Dataset for PyTorch:importosimportnumpyasnpimportpandasaspdimporttorchimportvineyard# connected to vineyard, see also: https://v6d.io/notes/getting-started.htmlclient=vineyard.connect(os.environ['VINEYARD_IPC_SOCKET'])# generate a dummy dataframe in vineyarddf=pd.DataFrame({# multi-dimensional array as a column'data':vineyard.data.dataframe.NDArrayArray(np.random.rand(1000,10)),'label':np.random.rand(1000)})object_id=client.put(df)# take it as a torch datasetfromvineyard.contrib.ml.torchimporttorch_contextwithtorch_context():# ds is a `torch.utils.data.TensorDataset`ds=client.get(object_id)# or, you can use datapipes from torchdatafromvineyard.contrib.ml.torchimportdatapipepipe=datapipe(ds)# use the datapipes in your training loopfordata,labelinpipe:# do somethingpassPytorch ModulesThe following example shows how to use vineyard to share pytorch modules between processes:importtorchimportvineyard# connected to vineyard, see also: https://v6d.io/notes/getting-started.htmlclient=vineyard.connect(os.environ['VINEYARD_IPC_SOCKET'])# generate a dummy model in vineyardclassModel(nn.Module):def__init__(self):super().__init__()self.conv1=nn.Conv2d(1,20,5)self.conv2=nn.Conv2d(20,20,5)defforward(self,x):x=F.relu(self.conv1(x))returnF.relu(self.conv2(x))model=Model()# put the model into vineyardfromvineyard.contrib.ml.torchimporttorch_contextwithtorch_context():object_id=client.put(model)# get the module state dict from vineyard and load it into a new modelmodel=Model()withtorch_context():state_dict=client.get(object_id)model.load_state_dict(state_dict,assign=True)Reference and Implementationtorch: including PyTorch datasets, torcharrow and torchdata.tensorflowmxnetFor more details about vineyard itself, please refer to theVineyardproject.
Package: vininfo
https://github.com/idlesign/vininfoDescriptionExtracts useful information from Vehicle Identification Number (VIN)Can be used as a standalone console application (CLI).One can also use import it as any other package in your Python code.Gives basic and detailed info (is available) about VIN.Allows VIN checksum verification.Additional info available for many vehicles from:AvtoVAZNissanOpelRenaultRequirementsPython 3.6+clickpackage for CLIUsageCLIclickpackage is required for CLI. You can installvininfowithclickusing:$ pip install vininfo[cli]$vininfo--help;PrintoutVINinfo:$vininfoshowXTAGFK330JY144213;Basic:;Country:USSR/CIS;Manufacturer:AvtoVAZ;Region:Europe;Years:2018,1988;;Details:;Body:StationWagon,5-Door;Engine:21179;Model:Vesta;Plant:Izhevsk;Serial:144213;Transmission:ManualRenault;Verifychecksum$vininfocheck1M8GDM9AXKP042788;ChecksumisvalidPythonfromvininfoimportVinvin=Vin('VF1LM1B0H36666155')vin.country# Francevin.manufacturer# Renaultvin.region# Europevin.wmi# VF1vin.vds# LM1B0Hvin.vis# 36666155annotated=vin.annotate()details=vin.detailsvin.verify_checksum()# FalseVin('1M8GDM9AXKP042788').verify_checksum()# TrueDevelopmentOne can add missing WMI(s) using instructions fromdicts/wmi.py:WMIdictionary, that maps WMI strings to manufacturers.Those manufacturers may be represented by simple strings, or instances ofBrandsubclasses (seebrands.py).If you know how to decode additional information (model, body, engine, etc.)
encoded in VIN, you may also want to create a so-calleddetails extractorfor a brand.Details extractors areVinDetailssubclasses in most cases making use ofDetaildescriptors to represent additional information
(seedetails/nissan.pyfor example).
Package: vinlib
ContentsvinlibInstall vinlibUsing vinlibvinlibvinlib is a Vehicle Identification Number Package that allows you to verify and decode parts of the vin number.Currently it can:vinlib.check_vin will return whether the entered vin number is authentic/correct.Vin(‘somevinhere’) will return object that has vehicle year and vin check true/false flag.Install vinlibPYPIYou can install vinlib from PyPi:easy_install vinlib
#or
pip install vinlibDone.Using vinlibIn python code you can check if the vin is valid:import vinlib
myvinnumber='1hasomenumberhere'
print vinlib.check_vin(myvinnumber)This will return true or false depending if the vin number is correct or not.In python code you can decode vin’s year:import vinlib
print vinlib.Vin('1ZVIHaveAVinNumber17').yearAdditional Examples:import vinlib
#get year from a vin
print vinlib.Vin('1ZVIHaveAVinNumber17').year
#check if vin is valid.
print vinlib.Vin('1ZVIHaveAVinNumber17').checkEnjoy,vinlib team.
Package: vinorm
Install ViNorm packagepip install vinormUsing in python scriptfromvinormimportTTSnormS=TTSnorm("Hàm này được phát triển từ 8/2019. Có phải tháng 12/2020 đã có vaccine phòng ngừa Covid-19 xmz ?")Some optionTTSnorm(text,punc=False,unknown=True,lower=True,rule=False)lower: If true, get normalization with lowercaserule: If true, just get normalization wit Regex, not using Dictionary Checking (this flag is not used with another flag)punc: If true, do not replace punctuation with dot and comaunknown: If true, replace unknown word, discard word undefine and do not contain vowel, do not spell word with vowelFrom version 2.0, do not replace unknown words, skip them for espeak handle in phonetization stepThis version does not parse case: "Tổ chức WTO"
WTO do not in dictionary -> unknow -> keep origin, do not spell as in version 1.0, this aim to use with espeak, let espeak handle, but the drawback is the output of espeak for this case is "ve1kɛɜpte1ɔ7", it does not split each syllable.For new entity, need to update in the dictionaryFor update lastest version access:https://github.com/NoahDrisort/vinormFor version 1.0: spell words that is unknow by each character, check previous commitFor C++ version:https://github.com/NoahDrisort/vinorm_cpp_versionUpdate pypipythonsetup.pysdistbdist_wheel
twineuploaddist/*
Package: vinorm-mac
Install the International Components for Unicodebrew instalal icu4cInstall ViNorm packagepip install vinorm_macUsing in python scriptfromvinormimportTTSnormS=TTSnorm("Hàm này được phát triển từ 8/2019. Có phải tháng 12/2020 đã có vaccine phòng ngừa Covid-19 xmz ?")Some optionTTSnorm(text,punc=False,unknown=True,lower=True,rule=False)lower: If true, get normalization with lowercaserule: If true, just get normalization wit Regex, not using Dictionary Checking (this flag is not used with another flag)punc: If true, do not replace punctuation with dot and comaunknown: If true, replace unknown word, discard word undefine and do not contain vowel, do not spell word with vowelFrom version 2.0, do not replace unknown words, skip them for espeak handle in phonetization stepThis version does not parse case: "Tổ chức WTO"
WTO do not in dictionary -> unknown -> keep origin, do not spell as in version 1.0, this aim to use with espeak, let espeak handle, but the drawback is the output of espeak for this case is "ve1kɛɜpte1ɔ7", it does not split each syllable.For new entity, need to update in the dictionaryFor update lastest version access:https://github.com/NoahDrisort/vinormFor version 1.0: spell words that is unknown by each character, check previous commitFor C++ version:https://github.com/NoahDrisort/vinorm_cpp_versionUpdate pypipythonsetup.pysdistbdist_wheel
twineuploaddist/*
Package: vinpack
The package vinpack has only one module ‘dateutils’ with the following members:is_leap(year)-> returns True/False for a leap year/ non-leap yearmax_days(month, year)-> returns the maximum number of days in the given month of the yearprintcal(month=None, year=None)-> prints the calendar for the given month and year
-> prints the calendar for current month/year if not specified
Package: vin-parser
vin-parserLibrary that provides functions to work with VIN strings.Installvin-parser is available on PyPI and can be installed using pip.$ pip install vin-parserUsageAll the public functions are exported to the package namespace. We'll alias it as vp in the following examples.>>> import vin_parser as vpThe functionscheck_no,seq_no,wmi,vdsandvisreturn parts of the VIN string.>>>vin="1GYFK63878R248711">>>vp.check_no(vin)'7'Functioncheck_noreturns the VIN check digit, i.e. position 9 in the VIN string. It returns for all VINs, even for those that don't use the check digit schema.>>>vp.wmi(vin)'1GY'>>>vp.vds(vin)'FK6387'Lowercase VINs are accepted:>>>vp.vis(vin.lower())'8R248711'check_valid,is_validandsmall_manufare predicate functions, i.e. functions that return True or False.check_validreturns True if the VIN's check digit matches the computed value.is_validreturns True if the provided VIN is valid. Because the use of VIN check digit is not adopted worldwide, the check_valid test is not performed when verifing the validity of a VIN.Functionscontinent,country,yearandmanufparse the VIN and return the values. year returns a positive integer, while the others return a string with their name.>>>vp.country(vin)'United States'>>>vp.year(vin)2008>>>vp.manuf(vin)'General Motors USA'Functionparsecalls all the other functions and returns the results in a dict if the provided VIN is valid.
Functiononline_parsequeries the nhtsa api with the provided VIN. Empty values are removed from the response and the rest are returned in a python dict. No other transformations are performed on the keys or values.
Note that, unlikeparse,online_parsedoesn't check if the VIN is valid before sending it to the remote server.TheCHARSconstant is a sorted string with all the valid characters of a VIN: A to Z, 1 to 9 and 0, except for I, O and Q.
Package: vinplots
Michael Vinyard's python plotting assistantTo install (Current release:v0.0.75):pipinstallvinplotsTo install the development version:gitclonehttps://github.com/mvinyard/vinplots.git;cdvinplots
pipinstall-e.Quickstartimportvinplotsfig,axes=vinplots.quick_plot()For more documentation, see:here.
Package: vinta-django-waffle
Django Waffle is (yet another) feature flipper for Django. You can
define the conditions for which a flag should be active, and use it in
a number of ways.Code:https://github.com/jsocol/django-waffleLicense:BSD; see LICENSE fileIssues:https://github.com/jsocol/django-waffle/issuesDocumentation:https://waffle.readthedocs.io/
Package: vinted-scraper
Vinted ScraperA very simple Python package that scrapes the Vinted site to retrieve information about its items.InstallationYou can install Vinted Scraper using pip:pipinstallvinted_scraperIf you are on Python 3.6 you also have to installdataclasses:pip install dataclassesFunctionsThe package offers the following functions:search-(gets all the items present on the listing page)Parametersnametypedata typedescriptionparamsoptionalDictQuery parameters like the pagination and so onitem-(gets the information about an item, and its seller present on the item detail page)Parametersnametypedata typedescriptionidrequiredstrThe unique identifier of the item to retrieveparamsoptionalDictI don't know is they existUsageTo obtain the scraped data as avinted_scraper.models.VintedItem, so you can:importvinted_scraper.VintedScraperdefmain():scraper=VintedScraper("https://www.vinted.com")# init the scraper with the baseurlparams={"search_text":"board games"# Add other query parameters like the pagination and so on}items=scraper.search(params)# get all the itemsitem=items[0]# get the first Item of the listscraper.item(item.id)# get more info about a particular itemif__name__=="__main__":main()VintedScraperreturns structured data that are parsed and converted into avinted_scraper.models.VintedItemobject.
If some attributes areNonemeans that it wasn't found in the response, maybe because they are returned from other
API.
Also, I discard some attribute that I thought was useless but feel free to open an issue or a PR to add them.If you want to manage the JSON response directly, you should use theVintedWrapperobject instead ofVintedScraper.Here's the way of how to use it:importvinted_scraper.VintedWrapperdefmain():wrapper=VintedWrapper("https://www.vinted.com")# init the scraper with the baseurlparams={"search_text":"board games"# Add other query parameters like the pagination and so on}items=wrapper.search(params)# get all the itemsitem=items["items"][0]# get the first Item of the listwrapper.item(item["id"])# get more info about a particular itemif__name__=="__main__":main()LicenseThis project is licensed under the MIT License - see
theLICENSEfile for details.
Package: vintersdk
Getting StartedThe official Python client library for the Vinter.co APIs.InstallationpipinstallvintersdkUpgradepipinstall--upgradevintersdkAPI DocumentationVinter API DocumentationImportant Notes About the LibraryThe library supports both synchronous and asynchronous requests.The library is still in development and will be updated frequently.All the methods are documented in the source code.All the methods are callable from both the synchronous and asynchronous classes.The asynchronous class is called VinterAPIAsync.The synchronous class is called VinterAPI.The asynchronous class repeats the same methods as the synchronous class, but can be called with the await keyword.Version of the Libraryimportvintersdkprint(vintersdk.__version__)Importing the libraryfromvintersdkimportVinterAPI,VinterAPIAsyncCreating Instances of the VinterAPI classfromvintersdkimportVinterAPI# Create instances of the VinterAPI classvinter_multi=VinterAPI(APIKEY,"multi_assets")vinter_single=VinterAPI(APIKEY,"single_assets")vinter_staking=VinterAPI(APIKEY,"staking_yields")vinter_nav=VinterAPI(APIKEY,"nav")See theUsagesection of the docs for usage examples!
Package: vintools
Install vintoolsTo download this package from pypi:pipinstallvintoolsInstall the development packageTo download and install the development package:# (1) clone this repositorygitclonehttps://github.com/mvinyard/vintools.git# (2) install the local project in editable modecd./vintools;pipinstall-e.Helpful tutorialsFind helpful tutorials for getting started in theWiki
Package: vinyl
Mutable record type for dealing with flat files like CSV or pipe delimited data.Dealing with flat files is painful. Instead, use vinyl to declaratively describe and validate
common flat file formats. Vinyl gives you the convenience of attribute-style access
like a namedtuple, but in a mutable data type suitable for easily transforming data.importosimportcsvfromvinyl.recordimportRecordfromvinyl.fieldsimportVarCharField,FixedCharField# declare the data formatclassTestRecord(Record):customer_name=VarCharField(max_length=50)customer_number=FixedCharField(field_length=10,pad_with='0',justify='right')start_time=FixedCharField(value='00:00:00',field_length=8)# create an instancerecord=TestRecord()# read data from a filewithopen(os.path.join(os.path.dirname(__file__),'example.txt'))asf:reader=csv.reader(f)# copy a row of CSV data to the recordinstancerecord._load(*reader.next())# check the name was read correctlyassertrecord.customer_name=='a customer name with max length=50'# set a different customer numberrecord.customer_number='3'# number is reformatted according to the field settingsassertrecord.customer_number=='0000000003'# a static fieldassertrecord.start_time=='00:00:00'printrepr(record)# >>> TestRecord(customer_name=u'a customer name with max length=50',#                customer_number=u'0000000003', start_time=u'00:00:00')SupportFor issues and source control, use github:https://github.com/mrj0/vinyl/