Saravanan666/pypi-org huggingface dataset:
Package: aclient
aclient安装说明使用pip或其他 PyPi 软件包进行安装pip install aclient使用 aclient 发送异步请求您可以试试：importrefromaclientimport*aclient=AsyncClient()# 自定义解析函数 注意; 函数必需是异步的asyncdefparse(response,**kwargs):text=awaitresponse.text()# 测试: 获取 title 文本 - 百度一下pattern=re.compile(f"<title>(.*?)</title>")title=pattern.findall(text)[0]returntitle# 请求地址 可以发送大量地址url="https://www.baidu.com"# urls列表格式urls=[urlfor_inrange(2)]result=aclient.get(urls,custom_parse=parse)# 打印item数据print(result)# 结果# result = {'0': '百度一下', '1': '百度一下'}# urls字典格式urls={f"第{i}个":{"url":url,"timeout":5}foriinrange(2)}result=aclient.get(urls,custom_parse=parse)# 打印item数据print(result)# 结果# result = {'第0个': '百度一下', '第1个': '百度一下'}
Package: aclimatise
For the full documentation, refer to theGithub Pages Website.aCLImatise is a Python library and command-line utility for parsing the help output
of a command-line tool and then outputting a description of the tool in a more
structured format, for example aCommon Workflow Language tool definition.Currently aCLImatise supports bothCWLandWDLoutputs, but other formats will be considered in the future, especially pull
requests to support them.Please also refer toThe aCLImatise Base Camp, which is a database of pre-computed tool definitions
generated by the aCLImatise parser. Most bioinformatics tools have a tool definition already generated in the Base Camp,
so you may not need to run aCLImatise directly.aCLImatise is now published in the journalBioinformatics. You can read the application note here:https://doi.org/10.1093/bioinformatics/btaa1033.
To cite aCLImatise, please use the citation generator provided by the journal.ExampleLets say you want to create a CWL workflow containing the common Unixwc(word count)
utility. Runningwc--helpreturns:Usage: wc [OPTION]... [FILE]...
  or: wc [OPTION]... --files0-from=F
Print newline, word, and byte counts for each FILE, and a total line if
more than one FILE is specified.  A word is a non-zero-length sequence of
characters delimited by white space.

With no FILE, or when FILE is -, read standard input.

The options below may be used to select which counts are printed, always in
the following order: newline, word, character, byte, maximum line length.
  -c, --bytes            print the byte counts
  -m, --chars            print the character counts
  -l, --lines            print the newline counts
      --files0-from=F    read input from the files specified by
                           NUL-terminated names in file F;
                           If F is - then read names from standard input
  -L, --max-line-length  print the maximum display width
  -w, --words            print the word counts
      --help display this help and exit
      --version output version information and exit

GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Full documentation at: <http://www.gnu.org/software/coreutils/wc>
or available locally via: info '(coreutils) wc invocation'If you runaclimatise explore wc, which means “parse the wc command and all subcommands”,
you’ll end up with the following files in your current directory:wc.cwlwc.wdlwc.ymlThese are representations of the commandwcin 3 different formats. If you look atwc.wdl, you’ll see that it
contains a WDL-compatible tool definition forwc:version 1.0
task Wc {
  input {
    Boolean bytes
    Boolean chars
    Boolean lines
    String files__from
    Boolean max_line_length
    Boolean words
  }
  command <<<
    wc \
      ~{true="--bytes" false="" bytes} \
      ~{true="--chars" false="" chars} \
      ~{true="--lines" false="" lines} \
      ~{if defined(files__from) then ("--files0-from " +  '"' + files__from + '"') else ""} \
      ~{true="--max-line-length" false="" max_line_length} \
      ~{true="--words" false="" words}
  >>>
}
Package: acls
@cls- Class Made Aware to DecoratorThe purpose of this library is to provide possibility to create decorators, especially in super classes, with current classclsas argument.
Everything are centered with our newclsmodule, keyword, magic, or what every you think it would be.Getting StartedInstallationInstall bypipfrom PyPI:pipinstallaclsExampleA typical snippet looks like:fromfunctoolsimportwrapsimportclsclassBase(metaclass=cls.ClsMeta):@clsdefdecor(cls,decor_arg):defwrap(func):@wraps(func)defwrapper(self):# do something with `func`retval=func(self)# do something with `retval`returnretvalreturnwrapperreturnwrapclassExtended(Base):@cls.decor('some arg')deffunc(self):# do somethingpassThe magic is that you can use@cls.decorinExtendedclass, which is inheritance fromBase.
What is more, with in the decoratorBase.decor, argumentclswill be assigned with the correct current class.
In this example, it would simply be a reference toExtended.
This would be helpful if you want to make use of some class property here in the decorator.MagicWell, there is no magic. I created a delegator in class namespace to enable both class possible to use@cls.
So, it is not the moduleclsas we imported on the top.
I use this to make it more consistent looking, and fool some interpreters likepylint.
No offense, just want to make them less noisy.LimitationsUnfortunately, This work is based oncustomizing python class creation.
I have to make use of__prepare__, which isintroducedonly topython 3.
That means there is no known possible backward compatibility withpython 2now.
The code is tested against python 3.5+.Please let me know if you come up with an idea how to manipulate class creation in python 2.There are a couple of issues, with which I am talking. Contributions are welcome.Known issuerelying on length of arguments andcallable()to support optional arguments in decoratornot compatible with@classmethod, or many other decoratorsmakepylintreally noisyno documents :see_no_evil:!LicenseMIT License, Copyright (c) 2019 guoquan
Package: aclsum
ACLSum: A New Dataset for Aspect-based Summarization of Scientific PublicationsThis repository contains data for our paper "ACLSum: A New Dataset for Aspect-based Summarization of Scientific Publications" and a small
utility class to work with it.HuggingFace datasetsYou can also use Huggin Face datasets to load ACLSum (dataset link).
This would be convenient if you want to train transformer models using our dataset.Just do,fromdatasetsimportload_datasetdataset=load_dataset("sobamchan/aclsum")Our utility classIf you want to see what's in our data more carefully, the following example code on how to use our utility class may be helpful.You can install the library with the dataset via pip, just run,pipinstallaclsumthen you can load the dataset from your python code as,fromaclsumimportACLSum# Load per split ("train", "val", "test")train=ACLSum("train")# One data sample (= paper)document=train[0]# Three summaries on each aspect (dict[aspect, summary])document.summaries# Get all the sentences from the paper (we only work with abstract, introduction, and conclusion sections) (list[str])document.get_all_sentences()# You can specify sections to extract sentences fromdocument.get_all_sentences(["abstract","conclusion"])# Get highlight labels (list[0 or 1])document.get_all_highlights()# Get highlighted sentences (list[str])document.get_all_highlighted_sentences()
Package: acltldr
ACLTLDRThis is a python-based CLI tool used to generate summaries for ACL conference papers onthis page.Installationpip install acltldrUsageAn example command to generate summaries for the proceedings of EACL 2021.
Following command will generate a jsonl file with all the data, and a markdown file for the post.acltldr https://raw.githubusercontent.com/acl-org/acl-anthology/master/data/xml/2021.eacl.xml \
        ./ \
	--prefix "2021.eacl" \
	--use-gpu
Package: aclustermap
Theaclustermappackage takes aYAMLizedpandas DataFrame as input, with optional formatting keywords, and outputs a Seaborn clustermap .png image:cat example.yaml | aclustermap > example.pngIf YAMLizing a pandas DataFrame is a new concept, here is a quick tutorial.Let's create a Python modulegenerate_example.pyimport pandas, yaml;

# Generate random data with make_blobs to yield interesting clustering behavior
from sklearn.datasets import make_blobs; 
example = pandas.DataFrame(make_blobs(n_samples=36, centers=3, n_features=10)[0])

# Convert the DataFrame to a dict
df_dict = example.to_dict()

# Convert the dataframe to a dict, then YAMLize the dict
yml = yaml.dump(df_dict)

# Print to stdout
print(yml)Here is a one-liner that combines the previous code to generate this dataframe, safe it to a file, and then output it as a clustermap to example.png:python generate_example.py > example.yaml
cat example.yaml | aclustermap > example.pngSaving the dataframe to a file is not necessary, as it can be piped directly to aclustermap:python generate_example.py | aclustermap > example.pngaclustermapuses the simplest possible way to tweak the visualization, which is to pass a second YAML dict containing keyword argumnets forseaborn.clustermapandsee also,seaborn.set_context,pyplot.setpwith the Artist being the clustermap'sxticklabelsoryticklabels, orpyplot.rcParams.The formatting must be enclosed in a dict labeled according to the function it applies to. Here is the default formatting, which will be used if no formatting is specified.
Otherwise, simplycata YAMLized nested dictionary with a structure similar to the following.format:
  seaborn:
    clustermap:
      cmap: CET_CBL1
      annot: true
    set_context:
      context: notebook
  pyplot:
    setp:
      xticklabels:
        rotation: 0
      yticklabels:
        rotation: 0
    rcParams:
      font.size: 12A convenient way to specify minor formatting tweaks directly at the command line is with a HereDoc:(python generate_example.py; cat <<EOF) | python -m aclustermap > example.png
format:
  seaborn:
    clustermap:
      annot: false

EOF
Package: acm-dl-searcher
A simple command line tool to collect the entries on a particular venue and in acm and run searches on them.Installpipinstallacm-dl-searcherUsageIf getting the entries from theCHI 16Conference:To get the entries of a particular venue:acm-dl-searcherget10.1145/2858036--short-name"CHI 16""This will download all the entries and their abstracts. The short-name provided can be anything. The first parameter expected foramc-dl-searchergetis the doi of the venue.To list all the venues saved:acm-dl-searcherlistTo search the from the saved venues:acm-dl-searchersearch"adaptive"This will search all the venues obtained throughacm-dl-searcherget, and list out the paper and titles that contain the phrase “adaptive” in the abstract or title. Currently the searcher uses a fuzzy search with a maximum difference of 2.To narrow the search to particular venue(s) use the option--venue-short-name-filter:acm-dl-searchersearch"adaptive"--venue-short-name-filter"CHI"This will list out the matches from venues whoseshort namecontain “CHI”.To print out the abstracts as well use the option--print-abstracts:acm-dl-searchersearch"adaptive"--print-abstractsTo view the results on the browser use the option--html:acm-dl-searchersearch"adaptive"--htmlCreditsThis package was created withCookiecutterand thebriggySmalls/cookiecutter-pypackageproject template.
Package: acmdrunner
Ascetic Command RunnerNot all of our projects are using either django or anotherGodframework.
So, once we start our hobby project, would be great to put into the game some commands.
For example, maybe we need for our hobby project simple command test which loads custom TestRunner, etc
In this case this package maybe handy for you!InstallationSimply run in your bash:pipinstallacmdrunnerUsageIn yourdjango like manage.pycommand loader, you need to trigger following:importosfromacmdrunnerimportLoader...makeallyourpreparations,initializeprojectsettings,etc...Loader.load_from_directory(os.path.dirname(__file__))Loader.load_from_package('rit.app')Loader will search recursively in passed folder for folders with name management.
And try to load from folders found file acr_commands.pyAn example of the file acr_commands.py:fromacmdrunner.dispatcherimportCommandDispatchercommand_dispatcher=CommandDispatcher()defexecute(*args):passcommand_dispatcher.register_command('test',execute)register_commandregisters specific command and handler for this command.
Your commands should implement execute method. Better to inherit from BaseCommand.
But as it is ascetic, you can simply pass class with execute method implemented.
That’s all!To run command, please trigger following call:fromyour_package_placeimportcommand_dispatchercommand_dispatcher.execute_command(command_name,*args,**kwargs)Real usage exampleIf you want to load all commands from specific namespace, you can implement following:packages_to_traverse=('rit.app','rit.core')forpackageinpackages_to_traverse:Loader.load_from_package(package[0])Loader.load_from_directory(os.path.dirname(os.getcwd()))
Package: acmeasync
ACMEasyncAsyncIO ACME client for Python 3.Why?Moar async moar better. Seriously though, I wanted to utilize Python's asyncio to create an automatically certifying proxy server that "just works".How?You can use the library as is, seeacmeasync/__main__.pyandacmeasync/certbot2.pyas guides for spinning your own implementations, or use the built in tls reverse proxy (currently raw TCP only).To run the proxy:exportDOMAINS="example.com,example.net"exportPORT=80# or whatever port you wish to run the ACME challenge http server on, you need root to serve on 80, or you can forward 8080 if you're running in a docker container for example.exportEMAIL="youremail@example.com"exportPROXIES="8081:towel.blinkenlights.nl:23,8082:towel.blinkenlights.nl:23"# format: localport:remotehost:remoteport,...exportDIRECTORY_URL="https://acme-v02.api.letsencrypt.org/directory"acmeleproxyIt's recommended you run as root so that proxy processes can drop privileges and lose access to your private keys, but this is optional.API documentation incoming soon...But why Python?Yeah, I know, the GIL, the proxy server uses multiprocessing to spawn a subprocess per connection, which should give much better performance. This kinda thing exists the nodejs world already, why not python too?RequirementsPulled in by setup.py:acmeaiohttpaiohttp-requestsRequired from your OS:python3-openssl
Package: acme-bleach
BleachRemove unsightly visible characters from your code. Inspired by theAcme::BleachPerl moduleby Damian
Conway.InstallationYou can installBleachviapipfromPyPI:$pipinstallacme-bleachUsageLet's start with the following Python script,hello.py:print("Hello, world!")BleachingTo bleach it, run the following command:$bleachbleachhello.py-ohello-bleached.pyThe result is a bleached version of the original script. The contents ofhello-bleached.pyare (representing tabs with»»»»and spaces with·):# coding=bleach
»»»»···»»»»»»»»»»»»»»»»»···»»»»»·»»»»»»»··»»·»»»»»»»·»»»··»»···»»»»»···»·»»»»»»»
»»»»»»»»·»»»·»»»»»»»»»»»»»»»»»»»·»»»»»»»»»»»·»»»»»»»·»»»»»»»·»»»»»»»»»»»»»»»··»»»»»»·»»»·»»»··»»··»»»»»»
»»»»··»»··»»»»»»»»»»··»»····»»»»»»»»·»»»··»»»»»»»»»»»»»»·»»»»»»»»»»»»»»»»»»»»»»»···»···
»»»»··»»····»»»»···»»»»»·»»»»»»»··»»··»»»»»»»»»»··»»»»»»·»»»»»»»»»»»»»»»·»»»»»»»»»»»»»»»·
»»»»»»»»·»»»»»»»»»»»·»»»»»»»»»»»·»»»·»»»»»»»·»»»»»»»»»»»»»»»·»»»·»»»RunningYou can run the bleached file usingbleach run:$bleachrunhello-bleached.pyHello, world!UnbleachingYou can unbleach the file usingbleach unbleach:$bleachunbleachhello-bleached.py-ohello-unbleached.py$cathello-unbleached.pyprint("Hello, world!")Installing the bleach codecRunning scripts withbleach runis far too much effort. If you want to run bleached scripts directly, you can install
thebleachcodec:$bleachinstallWrote /home/stefans/bleach/.venv/lib/python3.10/site-packages/bleach.pth$pythonhello-bleached.pyHello, world!Installing the codec will attempt to write a.pthfile to thesite-packagesdirectory of the current Python
interpreter. Note theimportin the.pthfile will be evaluated every time the current Python runs, so there is a
tiny amount of overhead.LicenseDistributed under the terms of theMIT license,Bleachis free and open source software.CreditsThis project was generated from a variant of@cjolowicz'sHypermodern Python Cookiecuttertemplate.
Package: acmecontentcollectors-pkg-rioatmadja2018
# README #### Background
Python wheel to help collect information about the Islamic State from the website, social medias, and videos.### LICENSE
MIT LicenseCopyright (c) 2020 Rio AtmadjaPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: acme-dash-board-pkg-rioatmadja2018
# README ####ACME(Armed Conflict in the Middle East)### DESCRIPTIONThis is Bellevue University Data Science Milestones to study the Islamic State recruitments using social media.### DEPENDENCIES
- acmecontentcollectors-pkg-rioatmadja2018==0.1.7511608612412 (Note: under development)
- dash### LICENSE
MIT LicenseCopyright (c) 2020 ratmadjadsPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: acmen
AcmeNAcmeN is an ACME(RFC8555) client implemented in Python.Note:AcmeN is still under actively development, there will be some breaking changes until the first stable version v1.0.0 is released. Please keep an eye on the change log.Quick StartInstall AcmeN using pip:pipinstallacmenGenerate account key using openssl:opensslecparam-genkey-noout-namesecp384r1-outaccount.keyCreate a python file namedmain.pyas follows and modify necessary parameters:importloggingfromacmenimportAcmeNfromacmen.handlersimportCloudflareDnsHandlerlogging.basicConfig(level=logging.INFO)acme=AcmeN('account.key')handler=CloudflareDnsHandler('<your_api_token>')acme.register_account(contact=['mailto:you@your-mail-provider.tld'])acme.get_cert_by_domain('example.com',['www.example.com','alt1.example.com'],handler)After a few seconds, you will get your certificate and key file in the working directory.For more information, please refer toAcmeN docs.(Chinese Simplified)
Package: acmenewscollectors-pkg-rioatmadja2018
# DSC680: Acme News Collectors #This is a helper library to collect news articles, which includes news contents, video links, and images links; using Selenium Python library.###DependenciesSeleniumNumpyPandasPyMySQLBeautiful SoupPyTestChrome Driver###PhantomJS Installation- On Ubuntu 20.04 LTS machine, please installlibgconf-2-4- Go tohttps://phantomjs.org/download.htmland Download the latest phantomjs
- Example: wgethttps://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2&& tar xvfj phantomjs-2.1.1-linux-x86_64.tar.bz2
- Copy or move to the desired location###Run Tests* pytest tests###Developer Info*rioatmadja2018@gmail.com### License###MIT LicenseCopyright (c) 2020 Rio AtmadjaPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
Package: acmens
acmensA fork ofacme-nosudo. It uses ACMEv2 protocol and requires Python 3.acmensmay be used for getting a new SSL certificate, renewing a SSL
certificate for a domain, and revoking a certificate for a domain.It's meant to be run locally from your computer.prerequisitesopenssl or libresslpython3pipvirtualenv (if you want to use the repo version)installationpipinstallacmensOr, if you would like to use the repo version:cd/path/to/acmens# init virtual environmentmakevenv# activate virtual environment..venv/bin/activate# put acmens in your PATHmakedevelop# note that any changes you make to acmens.py will be instantly reflected# in the acmens in your PATH.getting/renewing a certificateFirst, generate an user account key for Let's Encrypt:opensslgenrsa-aes2564096>user.key
opensslrsa-inuser.key-pubout>user.pubNext, generate the domain key and a certificate request:# Generate domain keyopensslgenrsa-aes256-outdomain.key4096# Generate CSR for a single domainopensslreq-new-sha256-keydomain.key-outdomain.csr# Or Generate CSR for multiple domainsopensslreq-new-sha256-keydomain.key-subj"/"-addext"subjectAltName = DNS:example.com, DNS:www.example.com">domain.csrLastly, runacmens:acmens--account-keyuser.key--emailmail@example.com--csrdomain.csr>signed.crtdns challengeIf you want to use the DNS challenge type provide it using the--challengeflag.acmens--account-keyuser.key--emailmail@example.com--challengedns--csrdomain.csr>signed.crtThis will prompt you to update the DNS records to add a TXT record.revoking a certificateThis:acmens--revoke-kuser.key--crtsigned.crtwill revoke SSL certificate insigned.crt.
Package: acme-rofl
ACME ROFLACME Respond Or Forward ListenerThis simple listener does two things:Respond to http requests for files in the .well-known directoryForward all other requests via 301 Moved Permanently, redirecting
to the same URL but using https.Leave it running.  Run certbot periodically.SystemdThere's a systemd service that you might want to enable.  If you
installed this via pip, you'll find/usr/local/share/acme-rofl/acme-rofl.service.  Symlink that wherever
your systemd scripts live.  On Debian that could be one of several
places, and one of them is/etc/systemd/system.Then, tell systemd there's a new script:systemctl daemon-reload
Package: acmetk
ACME ToolkitACMEtk's main objective is the integration of Let's Encrypt-like services
into large decentralized networks by means of a centrally hosted service
that operates like a standard ACME CA on the client-facing side,
but relays ACME messages regarding certificate issuances to a
specified external CA.PyPI:https://pypi.org/project/acmetk/Docs:https://acmetk.readthedocs.io/