Saravanan666/pypi-org huggingface dataset:
Package: pastastore
pastastoreThis module storesPastastime series and models in a
database.Storing time series and models in a database allows the user to manage time
series and Pastas models on disk, which allows the user to pick up where they
left off without having to reload everything.InstallationInstall the module withpip install pastastore.For installing in development mode, clone the repository and install by typingpip install -e .from the module root directory.For plotting background maps, thecontextilyandpyprojpackages are
required. For a full install, including optional dependencies for plotting and
labeling data on maps, use:pip install pastastore[optional]Windows users
are asked to installrasteriothemselves since it often cannot be installed
usingpip.rasteriois a dependency ofcontextily.UsageThe following snippets show typical usage. The first step is to define a
so-calledConnectorobject. This object contains methods to store time series
or models to the database, or read objects from the database.The following code creates a PasConnector, which uses Pastas JSON-styled
".pas-files" to save models in a folder on your computer (in this case a
folder calledpastas_dbin the current directory).importpastastoreaspst# create connector instanceconn=pst.PasConnector(name="pastas_db",path=".")The next step is to pass that connector to thePastaStoreobject. This object
contains all kinds of useful methods to analyze and visualize time series, and
build and analyze models.# create PastaStore instancepstore=pst.PastaStore(conn)Now the user can add time series, models or analyze or visualize existing
objects in the database. Some examples showing the functionality of the
PastaStore object are shown below:importpandasaspdimportpastasasps# load oseries from CSV and add to databaseoseries=pd.read_csv("oseries.csv")pstore.add_oseries(oseries,"my_oseries",metadata={"x":100_000,"y":400_000})# read oseries from databaseoseries=pstore.get_oseries("my_oseries")# view oseries metadata DataFramepstore.oseries# plot oseries location on mapax=pstore.maps.oseries()pstore.maps.add_background_map(ax)# add a background map# plot my_oseries time seriesax2=pstore.plot.oseries(names=["my_oseries"])# create a model with pastasml=ps.Model(oseries,name="my_model")# add model to databasepstore.add_model(ml)# load model from databaseml2=pstore.get_models("my_model")# export whole database to a zip filepstore.to_zip("my_backup.zip")For more elaborate examples, refer to theNotebooks.
Package: pastawrap
pastaWRAPpastaWRAPis a Python wrapper forR-based Awesome Toolkit for PASTA,
more commonly known asratPASTA- an
R package used for processing and visualising data from startle experiments in
rodents or experiments measuring grip strength in rodents. Currently, pastaWRAP only
supports ratPASTA functionality for startle experiments, with plans for adding
griPASTA (grip strength test) functionality wrapping at a later date. The input data
for this package is created with aPASTAsolution (Platform for Acoustic STArtle),
described in detail here:Virag, D., Homolak, J., Kodvanj, I., Babic Perhoc, A., Knezovic, A.,
Osmanovic Barilar, J., & Salkovic-Petrisic, M. (2020). Repurposing a
digital kitchen scale for neuroscience research: a complete hardware and
software cookbook for PASTA. BioRxiv, 2020.04.10.035766.https://doi.org/10.1101/2020.04.10.035766Using the same platform for measuring grip strength in rodents is
described here:Homolak, J., Virag, D., Kodvanj, I., Matak, I., Babic Perhoc, A.,
Knezovic, A., Osmanovic Barilar, J., Salkovic-Petrisic, M. (2020).
griPASTA: A hacked kitchen scale for quantification of grip strength in
rodents. BioRxiv, 2020.07.23.217737.https://doi.org/10.1101/2020.07.23.217737
Package: paste2
PASTE2PASTE2, the extension of PASTE, is a method for partial alignment and 3D reconstruction of spatial transcriptomics slices when they do not fully overlap in space.There are three main functions:src/paste2/PASTE2/partial_pairwise_align: Given a pair of ST slices and their overlap percentage, find a partial alignment matrix. Note: In a multi-sample dataset, partial_pairwise_align should be called on each pair of adjacent slices separately.src/paste2/model_selection/select_overlap_fraction: Decide the overlap percentage (s parameter of partial_pairwise_align) between two input ST slices. Note: In a multi-sample dataset, each pair of adjacent slices could have a different overlap percentage, hence each pair of adjacent slices might have a different estimate of s to pass to partial_pairwise_align.src/paste2/projection/partial_stack_slices_pairwise: Given a sequence of consecutive ST slices and the partial alignments between them, project all slices onto the same 2D coordinate system. 3D reconstruction can be done by assiging a z-value to each slice.Additionally,src/paste2/PASTE2/partial_pairwise_align_histologyuses both gene expression and histological image information for computing the partial alignment matrix.InstallationPASTE2 is available on PyPI athttps://pypi.org/project/paste2/. To install PASTE2, runpip install paste2.Quick StartWe included a tutorial in this repo (tutorial.ipynb). The tutorial should cover the basics you need to run PASTE2 on your own dataset. Additionally, the documentation of each function is in the source code.ContactIf you encounter any problem running the software, please contact Xinhao Liu atxl5434@princeton.eduReferenceLiu, X., Zeira, R., & Raphael, B. J. (2023). Partial alignment of multislice spatially resolved transcriptomics data. Genome Research, 33(7), 1124-1132.
Package: paste2sms
This project is now included in `toto2titi <https://pypi.org/project/toto2titi/>`_. It can be safely uninstalled once `toto2titi` has been installed.paste2smsis a small tool which send the content of your clipboard as a SMS: do you want to share that cool link you just found (on your computer) to your friend? Copy it, and runpaste2smsto send it as a SMS.
Package: pastebinapi
PASTEBIN API# Module made by @venaxyt on Github
import pastebinapi

username = "pastebin account username"
password = "pastebin account password"
api_key = "account api_key findable here https://pastebin.com/doc_api

# Check an account
pastebinapi.check(username, password, api_key)
>>> Output : [username] Valid account

# Get the token of an account
pastebinapi.token(username, password, api_key)
>>> Output : [username] Token : account token

# Upload a paste on an account
privacity = "2"  # 0 : public | 1 : unlisted | 2 : private
content = "That's my text"
title = "Venax paste"
pastebinapi.paste(username, password, api_key, privacity, title, content)
>>> Output : [>] Successfully uploaded :
>>> Output : [>] Pastebin text page : https://pastebin.com/pasteid
>>> Output : [>] Pastebin text /raw : https://pastebin.com/raw/pasteidDownload:pip install pastebinapi
Package: pastebin-archiver
Pastebin ArchiverWhat is this?This app retrieves new posts made on Pastebin.com and stores them offline in a database. You can see the latest public posts it will retrievehere.Why?Some of the pastes posted to Pastebin contain interesting or sensitive data, and sometimes pastes are deleted by their poster or Pastebin staff. Running an instance of this archiver lets you retrieve deleted pastes and build a large dataset to run queries against.Pastebin API infoImportant:This archiver uses thePastebin Scraping APIwhich requires a whitelisted IP address and a Lifetime Pro account to use.More info here.InstallationInstall from PyPI (recommended)Ensure you have Python 3.7+ installed.Runpip install pastebin_archiverDone! Jump down to theUsagesection to get started.Install from sourceEnsure you have Python 3.7+ and poetry installed$python--version
Python3.7.4
$poetry--version
Poetry0.12.17Clone the git repositorygitclonehttps://gitlab.com/jonpavelich/pastebin-archiver.gitInstall the dependencies$cdpastebin-archiver
$poetryinstallRun it!$poetryrunpastebin-archiverRun unit testsInstall from source (see the section above)Runpoetry run python -m unittestUsageCommand line usageIf you installed the package using pip, then you can simply runpastebin-archiver:$pastebin-archiver# Run with default settings$pastebin-archiver--help# Print available command line optionsPython usageIf you'd prefer to use the package in your own code, you can do so like this:# Import the packagefrompastebin_archiverimportPastebinArchiver# (Optional) configure logginglogging.basicConfig(level=logging.DEBUG)# Run the applicationapp=PastebinArchiver()app.main()Important:app.main()does not return, it runs forever looking for new pastes to fetch.ConfigurationThe log target and log level can be controlled with options (--logfileand--loglevel) or environment variables (LOG_FILEandLOG_LEVEL).DatabaseBy default, the fetched data will be saved to a SQLite database file in your working directory calledpastebin.db. You can change this behaviour by passing in a database connection string using the--databaseoption or theDATABASEenvironment variable. For example:$pastebin-archiver--database'postgresql://user:pass@localhost/mydatabase'Important:You'll need extra packages to connect to databases other than SQLite.
For PostgreSQL, you'll need to runpip install psycopg2-binary(or if you installed from source, you can runpoetry install -E pgsql)For detailed info on connection strings and a list of database packages you can use, seethe SQLAlchemy documentation.ContributingIf you find any bugs or have any suggestions to improve the project, pleaseopen an issueon GitLab.
Package: pastebin-bisque
The Pastebin Bisque is a small Python utility that uses BeautifulSoup to scrape a user’sPastebinprofile. All public pastes from that user are downloaded to disk. Optionally, the pastes can be saved to a single.zipfile.There is no rate-limiting protection built-in. Read about thePastebin Request Limitsif you anticipate generating a large number of requests. The file name provided by the Pastebin user will be prepended with the short URL that Pastebin provides. This allows a single directory with all pastes and no duplicates and makes the original URL fairly easy to reconstruct.TL;DR - Scrape all public Pastebin pastes from a user.Free software: GNU Lesser General Public License v3 or later (LGPLv3+)📦 Installationpip install pastebin-bisque📚 Documentationhttps://pastebin-bisque.readthedocs.io/💻 DevelopmentTo run all the tests run:toxConsider using this to run the tests in parallel:tox -p autoNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog1.0.0 (09/10/2023)v1.0.0: 🍰 Now On PyPIWith this release,pastebin-bisqueis now available on PyPI. You can install it with:pip install pastebin-bisqueThis release is timed as an early celebration of the 🦄🌈original author’s 🍰 birthday.0.3.0 (12/11/2022)v0.3.0: 🤖🤝 Human and Bot FriendlyThis release is friendly for both humansandmachines. Thanks toyour feedback, I pushed a new release that should make for a much better experience all around.What’s ChangedBump urllib3 from 1.25.8 to 1.26.5 by@dependabotAddress feedback in#6by Brie Carranza in#80.2.0 (05/13/2020)v0.2.0: Tidied UpThis version has neater output.0.1.0 (03/01/2020)v0.1.0: Inaugural ReleaseThis is the first release of Pastebin Bisque! All of the initial bugs have been squashed! There is documentation and a demo. 😸
Package: pastebin-cli
pastebin-cliCommand-line interface to paste code/text to pastebin.com, written in pure
Python without any external dependency. If your operating system has an old
Python version: this software works from Python 3.5 to 3.8.Note: the command-line works fine but still needs some API features, like
listing user pastes.InstallationYou can either install it usingpip:pipinstallpastebin-clior downloadpastebin.pyexecutable and put in your$PATH(you can rename it
topastebin).Usage$pastebin--help
usage:pastebin[-h][--log-level{CRITICAL,ERROR,WARNING,INFO,DEBUG,NOTSET}][--api-keyAPI_KEY]{paste,get}...

optionalarguments:-h,--helpshowthishelpmessageandexit--log-level{CRITICAL,ERROR,WARNING,INFO,DEBUG,NOTSET}--api-keyAPI_KEY

Subcommands:{paste,get}pastePasteafilegetGetaspecificpaste$./pastebinpaste--help
usage:pastebinpaste[-h][--expires-in{N,10M,1H,1D,1W,2W,1M,6M,1Y}][--privacy{public,unlisted,private}][--file-formatFILE_FORMAT]filename

positionalarguments:filename

optionalarguments:-h,--helpshowthishelpmessageandexit--expires-in{N,10M,1H,1D,1W,2W,1M,6M,1Y}--privacy{public,unlisted,private}--file-formatFILE_FORMAT
Package: pastebinfs
Pastebin.com as a python file objectA small python library with little dependencies to usepastebin.comas file like objects
Don't take it serious it's just a project to have some funTODOAdd support for none buffered filesAdd encoding optionsAdd missing testsinstallgitpip install .pypipip install pastebinfsExampleuser_key=pastebinfs.sync.pastebin_auth(api_key,username,password)withpastebinfs.sync.pastebin_open("test.txt","w",api_key,user_key)asf:f.write("hello pastebin this is a test")withpastebinfs.sync.pastebin_open("test.txt","r",api_key,user_key)asf:print(f.read())# yields "hello pastebin this is a test"print(pastebinfs.os.stat("test.txt",api_key,user_key))# st_birthtime == 1297953260 # last update time# st_key == '0b42rwhf' # paste key (this changes on every write)# st_mode == 1  # paste visibility mode (unlisted)# st_size == 29 # paste size (note in binary mode the size will be len(base64(input)))
Package: pastebinpy
PasteBinPyAn easy to learn, use, and contribute to api for python.Getting StartedTo get your pastebin api key, create or login to your pastebin accounthere> after creating your account,head over to the api documentationand grab your api key underYour Unique Developer API Key—Exampleimportpastebinpyaspbp# All thats needed for a successfull responsepbp.paste("api_key","title","body")pbp.paste("api_key","title","body",raw=1,expiry="10M",privacy="1",format="python")pastebinpy.paste()API_KEYcan be retrieved by making a pastebin account and getting your api key fromthis linkCONTENTis thebodyof the paste, the inside that your user will be looking at.TITLEis at the top of the paste, users will probably not notice this, but its a good attribute to still use.PRIVACYhas two values,0being public, and1being unlisted, meaning only people with the pastebin link can view it.EXPIRYis defining the expiration time and/or time limit that you give your paste. Allowed variables are below.N = Never
10M = 10 Minutes
1H = 1 Hour
1D = 1 Day
1W = 1 Week
2W = 2 Weeks
1M = 1 Month
6M = 6 Months
1Y = 1 YearRAWis the toggle attribute for obtaining a raw pastebin link, with1equaling the raw pastebin link, and0being the default, returning the normal pastebin link.FORMATis the selected language attribute to format and color the content given.(e.g HTML, PHP, LUA, PYTHON, BF, CSS, CPP, CSHARP, RUBY, RAILS, etc)Created by css / cesiyi
Package: pastebin_python
PastebinPythonA completehttp://pastebin.comAPI wrapper for PythonSample Usage"""
Creating paste from file...

"""
from pastebin_python import PastebinPython
from pastebin_python.pastebin_exceptions import PastebinBadRequestException, PastebinNoPastesException, PastebinFileException
from pastebin_python.pastebin_constants import PASTE_PUBLIC, EXPIRE_10_MIN
from pastebin_python.pastebin_formats import FORMAT_NONE, FORMAT_PYTHON, FORMAT_HTML

pbin = PastebinPython(api_dev_key='<unique api key>')

try:
        pbin.createAPIUserKey('<username>','<password>')
        print pbin.createPasteFromFile('/home/six519/Downloads/email.html', 'Email format testing 2...', FORMAT_HTML, PASTE_PUBLIC, EXPIRE_10_MIN)
except PastebinBadRequestException as e:
        print e
except PastebinFileException as e:
        print eCode DocumentationYou can read the documentation at:http://pythonhosted.org/pastebin_python/
Package: pastebin-replace
pastebin-replaceSmall, simple python package to replace a file with raw code from Pastebin.InstallationFrom Sourcepipinstall.With pip (PyPI)pipinstallpastebin-replaceUsageWithin Python Scriptpbreplace(path,link)Terminalpbreplace<path><link>ExampleSuppose you have an empty file namedtest.txtlocated inC:\Users\Yourname\Downloads\test.txt. And you know a public Pastebinhttps://pastebin.com/hcv2WRnXcontaining some text. You want the content oftest.txtto be like the text on the Pastebin link.You can write this with Python:frompastebin_replaceimportpbreplacepbreplace(r"C:\Users\Yourname\Downloads\test.txt","https://pastebin.com/hcv2WRnX")Or directly from terminal:pbreplaceC:\Users\Yourname\Downloads\test.txthttps://pastebin.com/hcv2WRnXNoteReplaced file can't be recovered. Be careful on the path you provided.BackgroundWhy did I make this? I need this package for a specific usage in my Google Colab workflow.Special Thankspastebin-as-filerepo for the PyPI directory format. I'm a noob and just learned about Python package stuff tonight :D
Alsogdownfor pyproject.toml and__main__.pyreference.
Package: pastebin-uploader-SockYeh
Pastebin-UplaoderThis is just a normal pastebin uploader (that works) with alot of kwel features!Source CodeSupport Me!Bitcoin address:39J66CZbPB3uTbdzbvXrBdpo75MTZVwymbEthereum address:0x649158AF89d517872C500E0494d87c7d8926B492Litecoin address:MEMVARxfVGjkWFNo8efsvhkR7fy99VWVYK
Package: pasteboard2
Pasteboard2Pasteboard2 is a simple Python module and command line tool to get content and
its types from the macOS pasteboard (clipboard). The implementation relies onPyObjCand is modeled after theSwiftprogrampbv.Command Line UsageTop LevelUsage: pb2 [OPTIONS] COMMAND [ARGS]...

╭─ Options ──────────────────────────────────────────────────────────────────────────╮
│ --help          Show this message and exit.                                        │
╰────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ─────────────────────────────────────────────────────────────────────────╮
│ clear            Empties the pasteboard.                                           │
│ clip             Print the content of the pasteboard if it's a string.             │
│ types            List the content types of the current pasteboard.                 │
│ version          Outputs the version number.                                       │
╰────────────────────────────────────────────────────────────────────────────────────╯Clip SubcommandUsage: pb2 clip [OPTIONS]

 Print the content of the pasteboard if it's a string.

╭─ Options ──────────────────────────────────────────────────────────────────────────╮
│ --type  -t      TEXT  The type of content to get [default: public.utf8-plain-text] │
│ --help                Show this message and exit.                                  │
╰────────────────────────────────────────────────────────────────────────────────────╯Testgit clone https://github.com/bwagner/pasteboard2.git
cd pasteboard2
python -m venv ~/venv/pb2
source ~/venv/pb2/bin/activate
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pytest
deactivate
rm -rf ~/venv/pb2TODOpbvoffers reading from
several pasteboards. We should, too.Requirementspyobjctyperpytest (for development)Contributegit clone https://github.com/bwagner/pasteboard2.git
cd pasteboard2
source ~/venv/pb2/bin/activate
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pre-commit installAlternativeshttps://pypi.org/project/pasteboard/https://github.com/tobywf/pasteboardbut it's no longer maintained (checked 20230710)https://pypi.org/project/tacky/https://github.com/friedenberg/tacky
Package: pastebot
# pastebot[pastebot](http://weibo.com/pastebot) 是一个监控 pastebin 的敏感内容，并发微博的 bot### 安装使用 pip 安装:```$ pip install -U pastebot```或使用 GitHub 安装```$ pip install -U git+https://github.com/fate0/pastebot.git```或使用源码安装:```$ python setup.py install```### 使用基本命令:```$ pastebotUsage: pastebot [OPTIONS] COMMAND [ARGS]...Options:--version   Show the version and exit.-h, --help  Show this message and exit.Commands:serve  开始运行 pastebotweibo  生成 weibo access token```生成 weibo access token```$ pastebot weibo -hUsage: pastebot weibo [OPTIONS]生成 weibo access tokenOptions:--key TEXT     微博 App Key  [required]--secret TEXT  微博 App Secret  [required]--domain TEXT  微博安全域名  [required]-h, --help     Show this message and exit.$ pastebot weibo --key 1234 --secret 123123123123 --domain yourodmain.cominput auth_code: asdfsdfsdf返回 access_token: you_access_token过期时间: 37.329166666666666h用户 uid: 111111```使用 `pastebot serve` 运行监控```$ pastebot serve -hUsage: pastebot serve [OPTIONS]开始运行 pastebotOptions:--token TEXT     微博 access token  [required]--dsn TEXT       sentry dsn--pool INTEGER   线程池大小--qps FLOAT      qps--timeout FLOAT  请求 timeout-h, --help       Show this message and exit.$ pastebot serve --token you_access_token```### 参考* [PasteHunter](https://github.com/kevthehermit/PasteHunter)* [dumpmon](https://github.com/jordan-wright/dumpmon)
Package: pastecat
pastecatPaste clipboard image to file on Windows/macOS.RequirementsRuns on Windows/macOS.Sorry, I have not test on Windows yetRequires Python 3.7 or later.Installpip3 install pastecatUsageusage: pastecat.py [-h]
                   [-f [{BLP,BMP,BUFR,CUR,DCX,DDS,DIB,EPS,FITS,FLI,FTEX,GBR,
                         GIF,GRIB,HDF5,ICNS,ICO,IM,IPTC,JPEG,JPEG2000,MPEG,
                         MPO,MSP,PALM,PCD,PCX,PDF,PIXAR,PNG,PPM,PSD,SGI,SUN,
                         TGA,TIFF,WEBP,WMF,XBM,XPM}]]
                   [--version]
                   [filename]

Paste clipboard image to file onWindows/macOS.

positional arguments:
  filename              Output filename. If the filename is `-`, image is written to stdout.

optional arguments:
  -h, --help            show this help message and exit
  -f [{BLP,BMP,BUFR,CUR,DCX,DDS,DIB,EPS,FITS,FLI,FTEX,GBR,GIF,GRIB,HDF5,
       ICNS,ICO,IM,IPTC,JPEG,JPEG2000,MPEG,MPO,MSP,PALM,PCD,PCX,PDF,PIXAR,
       PNG,PPM,PSD,SGI,SUN,TGA,TIFF,WEBP,WMF,XBM,XPM}]
                        Output file format. Default is PNG. If not specified,
                        format is determined from the filename.
  --version             show program's version number and exitLicenseCopyright 2020 Atsuo IshimotoSee LICENSE for detail.