Saravanan666/pypi-org huggingface dataset:
Package: addok-csv
Addok plugin add CSV geocoding endpointsInstallpip install addok-csvAPIWarning: this plugin will not work when runningaddok serve, you need either
gunicorn or uWSGI (seefalcon-multipart issue).This plugin adds the following endpoints:/search/csv/Batch geocode a csv file.Parametersdata: the CSV file to be processedcolumns(multiple): the columns, ordered, to be used for geocoding; if no
column is given, all columns will be usedencoding(optional): encoding of the file (you can also specify acharsetin the
file mimetype), such as 'utf-8' or 'iso-8859-1' (default to 'utf-8-sig')delimiter(optional): CSV delimiter (,or;); if not given, we try to
guesswith_bom: if true, and if the encoding if utf-8, the returned CSV will contain
a BOM (for Excel users…)latandlonparameters (optionals), like filters, can be used to
define columns names that contain latitude and longitude
values, for adding a preference center in the geocoding of each rowExampleshttp -f POST http://localhost:7878/search/csv/ columns='voie' columns='ville' data@path/to/file.csv
http -f POST http://localhost:7878/search/csv/ columns='rue' postcode='code postal' data@path/to/file.csv/reverse/csv/Batch reverse geocode a csv file.Parametersdata: the CSV file to be processed; must contain columnslatitude(orlat) andlongitude(orlonorlng)encoding(optional): encoding of the file (you can also specify acharsetin the
file mimetype), such as 'utf-8' or 'iso-8859-1' (default to 'utf-8-sig')delimiter(optional): CSV delimiter (,or;); if not given, we try to
guessAny filter can be passed askey=valuequerystring, wherekeyis the filter
name andvalueis the column name containing the filter value for each row.
For example, if there is a column "code_insee" and we want to use it for
"citycode" filtering, we would passcitycode=code_inseeas query string
parameter.ConfigCSV_ENCODING: default encoding to open CSV files (default: 'utf-8-sig')CSV_EXTRA_FIELDS: list of field names to be added to the results rows
(default: names of the registeredFIELDS)
Package: addok-france
Addok plugin for France specificsInstallationpip install addok-franceConfigurationAdd QUERY_PROCESSORS_PYPATHSQUERY_PROCESSORS_PYPATHS = [
…,
"addok_france.extract_address",
"addok_france.clean_query",
]Add PROCESSORS_PYPATHSPROCESSORS_PYPATHS = [
…,
"addok_france.glue_ordinal",
"addok_france.fold_ordinal",
"addok_france.flag_housenumber",
…,
]Replace defaultmake_labelsby France dedicated one:SEARCH_RESULT_PROCESSORS_PYPATHS = [
'addok_france.make_labels',
…,
]
Package: addok-sqlite-store
# Addok SQlite store pluginStore your documents into a SQlite database to save Redis RAM usage.## Installpip install addok-sqlite-store## ConfigurationThe plugin will register itself when installed, by setting the correctDOCUMENT_STORE_PYPATH.You want to define the path where the SQLite database will be created, by
settingSQLITE_DB_PATHinto your local
[configuration](http://addok.readthedocs.io/en/latest/config/).
Package: addok-trigrams
Addok-trigramsAlternative indexation pattern for Addok, based on trigrams.Installationpip install addok-trigramsConfigurationIn your local configuration file:remove unwanted RESULTS_COLLECTORS_PYPATHS:from addok.config.default import RESULTS_COLLECTORS_PYPATHS
  RESULTS_COLLECTORS_PYPATHS.remove('addok.helpers.collectors.extend_results_reducing_tokens')
  RESULTS_COLLECTORS_PYPATHS.remove('addok.autocomplete.only_commons_but_geohash_try_autocomplete_collector')
  RESULTS_COLLECTORS_PYPATHS.remove('addok.autocomplete.no_meaningful_but_common_try_autocomplete_collector')
  RESULTS_COLLECTORS_PYPATHS.remove('addok.autocomplete.only_commons_try_autocomplete_collector')
  RESULTS_COLLECTORS_PYPATHS.remove('addok.autocomplete.autocomplete_meaningful_collector')
  RESULTS_COLLECTORS_PYPATHS.remove('addok.fuzzy.fuzzy_collector')remove allautocompleteandfuzzyRESULTS_COLLECTORS_PYPATHS, add new ones:RESULTS_COLLECTORS_PYPATHS += [
      'addok_trigrams.extend_results_removing_numbers',
      'addok_trigrams.extend_results_removing_one_whole_word',
      'addok_trigrams.extend_results_removing_successive_trigrams',
  ]addtrigramizeto PROCESSORS_PYPATHS:from addok.config.default import PROCESSORS_PYPATHS
  PROCESSORS_PYPATHS += [
      'addok_trigrams.trigramize',
  ]remove pairs and autocomplete indexers fromINDEXERS_PYPATHS:from addok.config.default import INDEXERS_PYPATHS
  INDEXERS_PYPATHS.remove('addok.pairs.PairsIndexer')
  INDEXERS_PYPATHS.remove('addok.autocomplete.EdgeNgramIndexer')By default, digit only words are not turned into trigrams. To prevent this,
setTRIGRAM_SKIP_DIGIT=False.UsageUseaddok batchjust like with genuine addok for importing documents, but no
need for runningaddok ngrams, given they are already part of the index
strategy.
Package: add-on-class
Add-On Class PackageThis package provides you with a module that allows you to easily define classes stacked on top of each other and add features to each other, creating a whole new class. You can see an example of this application below.fromadd_on_classimportAOCclassParent:def__init__(self):self.parrent_property=1defparent_functionality(self):return10classChild(Parent):def__init__(self):super().__init__()self.child_property=2self.parrent_property=67defchild_functionality(self):return20classFirstAddOn(AOC):def__post_init__(self):self.first_added_property=3deffirst_added_functionality(self):return30defchild_functionality(self):returnself.__core.child_functionality(self)*2classSecondAddOn(AOC):def__pre_init__(self,pre):self.pre=predef__post_init__(self,post):self.post=postself.child_property=12defchild_functionality(self):returnself.__core.child_functionality(self)*3added=SecondAddOn(FirstAddOn(Child))(pre=4,post=8)print(added.parrent_property)# >>> 67print(added.child_property)# >>> 12print(added.first_added_property)# >>> 3print(added.parent_functionality())# >>> 10print(added.child_functionality())# >>> 120print(added.first_added_functionality())# >>> 30print(issubclass(type(added),Parent))# >>> Trueprint(added.pre)# >>> 4print(added.post)# >>> 8The output of the AOC constructor is a class itself, so you need to get an instance from it again.Based on order of calling add-on classes and according to__pre_init__and__post_init__functions, overrides occur. Use this logic to customize what you need.Useself.__coreto access the inner class directly. It's helpful to call a core class function overridden by the add-on one (See the example above).Another example is here. Note the type ofE(D(B)). It isBCoveredByDCoveredByEand is a subclass ofB:fromadd_on_classimportAOCclassA:def__init__(self):passdefmain(self):return"(A.main->"+self.function()+"->A.main.end)"deffunction(self):return"(A.function->A.function.end)"classB(A):defmain(self):return"(B.main->"+super().main()+"->B.main.end)"deffunction(self):return"(B.function->B.function.end)"classD(AOC):def__post_init__(self):self.new_attr=2deffunction(self):return"(D.function->"+self.__core.function(self)+"->D.function.end)"classE(AOC):def__pre_init__(self):self.new_attr=3deffunction(self):return"(E.function->"+self.__core.function(self)+"->E.function.end)"e=E(D(B))()print(e.main())# >>> (B.main->(A.main->(E.function->(D.function->(B.function->B.function.end)->D.function.end)->E.function.end)->A.main.end)->B.main.end)print(e.new_attr)# >>> 2print(issubclass(type(e),B))# >>> Trueprint(E(D(B)).__name__)# >>> BCoveredByDCoveredByENOTE: We can not add AOC to a class that receives "*args" or "**kwargs" as initialization input.A class decorator (covering_around) is also available to limit the core class type. See the example below:fromadd_on_classimportAOC,covering_aroundclassA:def__init__(self):passclassB(A):passclassC:def__init__(self):pass@covering_around([A])classD(AOC):def__pre_init__(self):self.new_attr=3deffunction(self):return"function"a=D(A)()print(a.new_attr)print(a.function())b=D(B)()print(b.new_attr)print(b.function())c=D(C)()Installationpip install add-on-class
Package: add-only-dictionary
Add Only DictionaryFeaturesCreate dictionaries that let you continue adding key/value pairs, but never change existing values or remove existing keys. If a value is a dictionary, that will also be updated to have the same behavior. If the value is a list, items can only be added on to the list, but never removed from any position.InstallationYou can installAdd Only DictionaryviapipfromPyPI:$pipinstalladd-only-dictionaryUsagefromadd_only_dictionaryimportAODictregular_dict:Dict={"a":1}ao_dict:AODict=AODict(regular_dict)ao_dict["b"]=2# works!ao_dict["a"]=3# Nothing happens...ao_dict["a"]==1# True, since the key already existed.CreditsThis project was generated from@cjolowicz'sHypermodern Python Cookiecuttertemplate.
Package: addonpayments-sdk-python
AddonPayments SDK Python is a library that allows integration with the SDK’s of AddonPayments in a easy and fast way.
There are two types of integration: HPP (Hosted Payment Page) and API.FeaturesHPPIntegrates in minutesMinimises the merchant’s PCI overheadsCustomisable, for a seamless checkout processAPIGives you full control of the payment processProvides access to a full suite of transaction management requestsSuitable for call centre integrationsQuick startFirst of all, you need to install AddonPayments SDK Python package:pip install addonpayments-sdk-pythonIn order to use the SDK it is necessary to have an account in Addon Payments, then it will be necessary to configure
the SDK with the values ​​of your account. Create the settings.ini file in your project with the content that we provide
in the addonpayments/settings.ini.template file:; cp settings.ini.template your_project_folder/settings.ini
[settings]
DEBUG=True
MERCHANT_ID = yourmerchantid
SHARED_SECRET = yoursharedsecret
ADDONPAYMENTS_HPP_URL = https://hpp.sandbox.addonpayments.com/pay
ADDONPAYMENTS_API_URL = https://remote.sandbox.addonpayments.com/remoteUsageTake a look at the Django demo projectDocumentationVisit thedocumentationfor an in-depth look at AddonPayments SDK Python.
Package: addonupdater
addonupdaterUpdate dependencies in Community add-ons.NB!: This package is intended only for maintainers of the community add-ons project.InstallRequire Python version 3.5.3+pipinstalladdonupdaterExampleaddonupdater--tokenAAAAAAAAAAAAAAAAAAAAA--addonsqlite-web--test
Startingupgradesequenceforsqlite-web
Checkingforapkuppdates
g++Allreadyhavethenewestversion6.4.0-r9
gccAllreadyhavethenewestversion6.4.0-r9
makeAllreadyhavethenewestversion4.2.1-r2
python3-devAllreadyhavethenewestversion3.6.6-r0
apache2-utilsAllreadyhavethenewestversion2.4.35-r0
nginxAllreadyhavethenewestversion1.14.2-r0
python3Allreadyhavethenewestversion3.6.6-r0
cythonAllreadyhavethenewestversion0.28.2-r0
Checkingforpipuppdates
flaskAllreadyhavethenewestversion1.0.2
sqlite-webAllreadyhavethenewestversion0.3.5
:arrow_up:Upgradespeeweetoversion3.8.0
Testwasenabled,skippingcommit
:arrow_up:Upgradesdatasettetoversion0.26
Testwasenabled,skippingcommitCLI optionsparamaliasdescription--token-TAn GitHub Access token withrepopermissions.--addon-AName of the add-on, this has to match the dir that contains theDockerfile.--repo-RName of the repo for the add-on, this is optional and defaults toaddon-ADDONNAME.--testNoneIf this flag is used commits will be omitted.--verboseNonePrint more stuff to the console.--apk_versionNoneTarget version of apk packages, like3.9.--skip_apkNoneSkip apk updates.--skip_customNoneSkip custom updates.--skip_pipNoneSkip pip updates.--skip_baseNoneSkip base image updates.--orgNoneSpecify GitHub org, defaults to 'hassio-addons'.-pull_request-PRCreate a PR instead of pushing directly to master.
Package: add-package
The codes have been tested on Python 3.6 + pytorch 1.1 + torchvision 0.3.0 (pytorch 1.3 seems also ok, but not test thoroughly)#Requirements:Center Computer:redis (ubuntu software, start using the command redis-server --protected-mode on)sshpass (python lib)Conter Computer & workers:multiprocess (python lib)redis (python lib)How to useStart the redis-server on the center computer (redis-server --protected-mode no)Start the init_compute.py script to start the compute platformStart the algorithm you would like to perform
Package: addpage
addpageis a package for adding page number to PDF file.$ addpage -h
usage: addpage [-h] [-o OUTFILE] [-n FONT_NAME] [-z FONT_SIZE] [-s START]
               [-k SKIP] [-x MARGIN_X] [-y MARGIN_Y]
               [-a {center,left,right}] [-f FORMAT]
               infile

Add page number to PDF file.

positional arguments:
  infile                input PDF file

optional arguments:
  -h, --help            show this help message and exit
  -o OUTFILE, --outfile OUTFILE
  -n FONT_NAME, --font-name FONT_NAME
  -z FONT_SIZE, --font-size FONT_SIZE
  -s START, --start START
  -k SKIP, --skip SKIP
  -x MARGIN_X, --margin-x MARGIN_X
  -y MARGIN_Y, --margin-y MARGIN_Y
  -a {center,left,right}, --alignment {center,left,right}
  -f FORMAT, --format FORMATRequirementsPython 3.6 laterFeaturesnothingSetup$ pip install addpageHistory0.0.1 (2018-9-23)first release
Package: add-pinyin-key
说明安装pip install add_pinyin_keypythonsetup.pyinstall使用示例add_pinyin_keydemo.bibdemo_mod.bib% demo.bib
@article{_ct_2007,
 author = {严汉民 and 黄岗},
 date = {2007},
 journaltitle = {医疗设备信息},
 number = {12},
 pages = {1-5},
 title = {{{降低CT剂量的技术和方法探讨}}},
 urldate = {2018-04-18},
 volume = {22}
}%demo_mod.bib
@article{_ct_2007,
 author = {严汉民 and 黄岗},
 date = {2007},
 journaltitle = {医疗设备信息},
 key = {yan2han4min2 and huang2gang3},
 number = {12},
 pages = {1-5},
 title = {{{降低CT剂量的技术和方法探讨}}},
 urldate = {2018-04-18},
 volume = {22}
}注意如果输入的bib文件有类似于month = jan的字符串，你需要使用--common-strings选项。add_pinyin_key--common-stringsdemo.bibdemo_mod.bib
Package: addr
Python Package Template📦 一个快速上传到PyPI的 Python Package 模版。上传到 PyPI 后可以使用pip install安装。1 使用方法点击本项目右上角的绿色按钮Use this template（使用此模板），输入名称和说明，完成创建；将项目克隆到本地，这里以本项目为例，实际操作时这里需要替换你自己的项目；gitclonehttps://github.com/Ailln/python-package-template.git--depth1修改配置，文件中有提示；cdyour_package_name# 1. 替换默认项目名称 package_name 为你的项目名称# Usage: bash scripts/set_package_name.sh os_name old_name new_name# os_name 支持的有 `mac` 和 `linux`# old_name 是 package_name# new_name 是你的项目名称bashscripts/set_package_name.shmacpackage_nameyour_package_name# 2. 将 `README.md` 修改为你的项目介绍，也就是你当前在读的这个文本。编写你的 Package 代码，并进行测试。# 在本地进行充分测试bashscripts/local_test.sh上传到 PyPi（需要注册），参考如何发布自己的包到 pypi；bashscripts/upload_pypi.sh更新到 Github。gitpush2 项目结构.
├── package_name # 项目名称
│    ├── shell # 在命令行中执行的代码
│    │    ├── __init__.py
│    │    └── usage.py
│    └── src # 静态资源
│          └── temp.txt
├── scripts
│    ├── set_package_name.sh # 批量替换默认的项目名称
│    ├── local_install.sh
│    ├── local_test.sh
│    └── upload_pypi.sh
├── README.md # 项目文档
├── requirements.txt # 包依赖
├── .gitignore # 忽略文件
├── MANIFEST.in # 要包含在 sdist 命令构建的分发中的文件列表。
├── LICENSE # 这里面的内容为本项目的 License，你需要手动替换它。
└── setup.py # 安装配置3 TODO增加 test 相关代码。4 许可5 参考Packaging Python Projects如何从模板创建仓库？如何发布自己的包到 pypi ？
Package: addr2line
addr2lineinteract with addr2line commandInstallationpip install addr2lineTestpython -m unittest discover testsusagewith Addr2lineContext(Path("tests/source.out")) as c:
        self.assertEqual(
            c.get_function(0x1189),
            "function3",
        )
        self.assertEqual(
            c.get_function(0x11a8),
            "main",
        )
Package: addrcollector
A Python application for collecting email addresses from email messagesAboutaddrcollectorcollects email addresses from email messages. This is
similar to Thunderbird’s “Collected Addresses” feature and
corresponding functionality in other software. In the case of
addrcollector, however, email messages are read from standard input,
or manually on the command line, and the email address database can be
queried by keyword.It is possible for addrcollector to be integrated with a mail delivery
system like Procmail or Maildrop to collect addresses from all
messages, or with mail clients like Mutt or Alpine to collect
addresses selectively.Dates and display names are also collected. If an address is seen more
than once, then (1) the date is updated and (2) the display name is
updated if the new one is longer than the old one.For example, to add an address manually (the display name is optional):$addrcollectoraddjon@example.com"Jon Smith"$addrcollectoraddsven@example.comTo import addresses from a message passed on standard input:$addrcollectorimport<mymail.msgTo search for addresses using keywords (multiple keywords may be
given and are ORed):$addrcollectorsearchjonsven2020-07-03 jon@example.com                Jon Smith
2020-07-03 sven@example.comInstalling from PyPIaddrcollector is published on PyPI and can be installed with pip.Install the addrcollector package.$pip3installaddrcollectorThis should provide a~/.local/bin/addrcollectorscript that you
can execute.If that path is included in yourPATHenvironment variable, you
can run theaddrcollectorcommand without typing the entire
path., To set up this, if it hasn’t been done already, add the
following code in your~/.bash_profile(it may be~/.profilefor a shell other than Bash):if[-d"$HOME/.local/bin"];thenPATH="$HOME/.local/bin:$PATH"fiRunning from repositoryIf you have cloned the repository, you can run addrcollector from it
directly.Install Poetry:$pip3installpoetryWith the addrcollector repository root as your current directory,
use Poetry to install the dependencies:$poetryinstallNow that the dependencies have been installed, use Poetry to run
addrcollector:$poetryrunaddrcollectorCopyright and LicenseCopyright 2020 Owen T. Heisler. Creative Commons Zero v1.0 Universal
(CC0 1.0).This program 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.This source code may be used, modified, and/or redistributed according
to the terms of the Creative Commons Zero 1.0 Universal (CC0 1.0)
license. You should have received a copy of this license along with
this program (seeLICENSE). If not, see
<https://creativecommons.org/publicdomain/zero/1.0/>.
Package: addr-detector
Address Detector==============================How to detect if a user query might be an address and requires to launch a map answer.Project Modules------------The  project implements 3 classifiers, using an a la scikit template.The first classifier is a simple scorer classifier, based on the parsing result of the address parser libpostal (https://github.com/openvenues/libpostal)According to how the parser manage to work, and which fields are parsed, we make a score and decide if an address or not.The second classifier is based on the FastText classifier trained on address data. The fasttext makes  an embedding of the differents address it sees and therefore when a new address is submitted if  it's in  a close  spaceto what have been learned.The classifier is pre-trained, and the Fasttext zip model is store within the package.The  third classifier is a voting classifier combining the results of the two previous classifiers.Project Dependencies------------####Installation of Postal:Before you install `Postal` , make sure you have the following prerequisites:```sudo apt-get install curl autoconf automake libtool pkg-config```Then to install the C library:```git clone https://github.com/openvenues/libpostalcd libpostal./bootstrap.sh./configure --datadir=[...some dir with a few GB of space...]makesudo make install# On Linux it's probably a good idea to runsudo ldconfig```#### Installation of FastTextIn order to build `fastText`, use the following:```$ git clone https://github.com/facebookresearch/fastText.git$ cd fastText$ make```=======History=======0.1.0 (2017-10-25)------------------* First release on PyPI.
Package: add-registrant-zoom
zoom_registrant is a Python package that allows you to interact with the Zoom API.It provides functions for managing Zoom meetings and registrants.Project descriptionAdd Zoom RegistrantA simple package to add Zoom Registrant from csv also add email using api.How to installpip install add-registrant-zoomImportfrom myzoom.setting import configurefrom myzoom.AddZoomRegistrant import add_registrantsfrom myzoom.AddZoomRegistrant import add_registrant_apiInitialize the PackageWe can either setup via the environment or by passing the credentials directly to the plugin.client_id for the ClientIdclient_secret for the ClientSecretaccount_id for the AccountIdAnd then instantiate as shown belowsettings = configure(client_id, client_secret, account_id)And then Enter meeting Idmeeting_id = input("Enter meeting id: ")NOTEYou don't need to explicitely pass client_id, client_secret, account_id.API to add registrant into meetingjson_data = {"first_name": '', "last_name": '', "email": ''}add_registrant_api(settings,meeting_id,json_data)OREnter path of csv filecsv_path = input("Enter csv file path: ")add_registrants(configure, meeting_id, csv_path)zoom.csv format must as below.eg.Id	FirstName	LastName	Email1    ABC        PQR         abc.pqr@email.com
Package: address2img
# address2imgA python module to convert addresses to map images using open source map data sources and mapnik.## Installationaddress2img works on any system with mapnik 2.x or newer.Mapnik must be installed before proceeding with install.To test for mapnik, run```bashmapnik-config -v # Should return a version 2.x or newer```Use pip to install address2img```bashsudo python -m pip install address2img```## Basic UsageTo use address2img, the configuration file and mapnik xml file must be configured.The configuration file is [config.ini](config.ini) by default. To configure the mapnik xml file, see [here](https://github.com/mapnik/mapnik/wiki/XMLConfigReference).After the config and xml files are configured, usage is as simple as importing the module and calling the function.```python# importing map_maker file from address2imgfrom address2img import map_maker# defining addresses for which render maps, must be a listaddresses = ['Piazza del Duomo, 56126 Pisa PI, Italy','1600 Pennsylvania Ave NW, Washington, DC 20500',]# instantiating Map_Maker class with addressesworker = map_maker.Map_Maker(addresses)# calling make_map method of the Map_Maker instanceworker.make_map()```
Package: addressable
addressableis a silly little utility that allows you to access
items inside of a list using one or more indices as keys. You pretty
much get to pretend pretend that a list is a souped-up dictionary.artists = [{
    'id': '0488',
    'name': 'Lambchop',
    'members': ['Kurt Wagner'],
}, {
    'id': '9924',
    'name': 'Dire Straits',
    'members': ['Mark Knopfler'],
}]

# keys are matched against one or more indices
artists = List(artists, indices=('id', 'name'))
print artists['0488'] == artists['Lambchop']

# fuzzy matching
artists = List(artists, indices=('id', 'title'), fuzzy=True)
print artists['strait']

# extract the value, not the metadata
artists = List(artists, indices=('id', 'title'), facet='title')
print artists['9924'] == 'Dire Straits'So why would you want to do any of this? You probably don’t.addressablecan be useful for certain DSL or library code where you
want to give the end users some freedom to code things their way, when
you need to be able to very easily refer to certain things that are
weirdly named or when there’s multiple common ways of referring to
something and you want the flexibility to mix-and-match.