Saravanan666/pypi-org huggingface dataset:
Package: pasteconnect
Pasteconnect packagePasteConnect is a Python library for interacting with Pastebin. It allows you to check account validity, authenticate, create pastes, delete pastes, and retrieve raw paste content.InstallationPython 3.7 or higher is required.You can install PasteConnect usingpip:+$ pip install pasteconnectInstall from source repository+$ pip install git+https://github.com/heartlog/pasteconnect.gitGetting StartedTo get(create) yourusername,password» login to yourpastebin accountafter creating your account,head over to the api documentationand grab yourapi_keyunderYour Unique Developer API KeyUsagefrompasteconnectimportPasteConn# Sync Clientpastebin=PasteConn(username,password,api_key)# Account_status(check validity of account)account_status=pastebin.check_account()print(account_status)title="My Paste Title"content="This is the content of my paste."# Paste text to pastebinpaste_url=pastebin.create_paste(title,content,privacy=1)print(f"Paste created:{paste_url}")Initialize clientpastebin = PasteConn(username, password, api_key)-required for other modules to workReferGetting Startedusername="username"password="*******"api_key="123456abcdefg"# Define Clientpastebin=PasteConn(username,password,api_key)Alternatively, you can initialize withpredefined environment variablespastebin=PasteConn()# with pre define env varCheck account existancepastebin.check_account()Check validity of pastebin.com account.result=pastebin.check_account()print(result)# Response: '[heartlog] is Valid Account. User key : "user_key"'AuthenticationTo authenticate and get youruser_key:pastebin.auth()Getuser_keyusing give credentials.result=pastebin.auth()print(result)# Response: "user_key"pastebin.create_paste(title, content, privacy=1)# 0 : public | 1 : unlisted | 2 : privateprivacy=1# (default - private)title="Title of paste"content="""HelloThis is multiline text"""pastebin.create_paste(title,content,privacy=1)pastebin.delete_paste(url)url="https://pastebin.com/kZATAWhe"result=pastebin.delete_paste(url)print(result)# Response: "Paste Removed"Get raw contentTo retrieve the raw content of a paste using its URL or ID:pastebin.get_raw_content(url)frompasteconnectimportget_rawresult=get_raw(url)print(result)Alternatively, you can use theget_rawfunction:url="https://pastebin.com/kZATAWhe"result=pastebin.get_raw_content(url)print(result)# Response: "Content of paste"Made with ❤️ byHeartlogSpecial Thanksvenaxyt forpastebinapi. Helped a lot in project. 😁
Package: pastecord
pastecordApi wrapper for pastecord.comusageCreate a new pastecord document:frompastecordimportcreate_documentdocument=create_document('print("Hello World!")')print(document)# Document('wivewoniki')print(document.url)# https://pastecord.com/wivewonikiprint(document.read())# print("Hello World!")Save a pastecord document:frompastecordimportDocumentd=Document('https://pastecord.com/wivewoniki')d.save('document.txt')
Package: pasted-client
PipeSTDINor upload files to a raw paste. Get a URL back. Go be productive.By default,pasteduses a hosted paste service,pasted.tech. You can also deployyour own instanceof the service and use it instead.InstallationFrom PyPi:$ pip install pasted-clientCommand line usageGiven a file:$ cat somefile
Lorem ipsum.Pipe the file topastedand get back a URL to a raw paste of that file:$ cat somefile | pasted
http://pasted.com/89001a7fbbe57e6921a91b2ba166fa98e1579cd2.rawDo whatever you want with the URL. Curl it, email it, whatever:$ curl http://pasted.tech/89001a7fbbe57e6921a91b2ba166fa98e1579cd2.raw
Lorem ipsum.You can also paste multiple files without a pipe:$ pasted /path/to/file1 /path/to/file2 /path/to/file3
https://pasted.tech/pastes/294b43b2cec9919063be1a3b49e8722648424779.raw
https://pasted.tech/pastes/3c56f1d7f112e09002627d24b82446431df5039a.raw
https://pasted.tech/pastes/f9372ce11a7370c54135f3c708131de123caf90f.rawPython library usageTo usepasted.tech:>>> c = pasted.Client()
>>> url = c.create_paste('Lorem ipsum.')
>>> print(url)
http://pasted.tech/89001a7fbbe57e6921a91b2ba166fa98e1579cd2.rawAlternatively, if you’re using your own deployment ofpasteraw, pass your own API endpoint to the
client:>>> c = pasteraw.Client('http://pasted.example.com/api/pastes')Usage is otherwise identical to usingpasted.tech.
Package: pastegevent
With pastegevent package you can run your WSGI applications on top of gevent’s
high performace HTTP server.ConfigurationJust useegg:pastegevent#geventas use directive value of your server
configuration section:[server:main]
use = egg:pastegevent#geventIf you need to pastegevent to monkey patch stdlib modules for you, useegg:pastegevent#gevent_patched. This will monkey patch all, except DNS
subsystem:[server:main]
use = egg:pastegevent#gevent_patchedBut no DNS patching is performed due to inability to reinitialize libevent’s DNS
subsystem after forking.Using of asynchronous DNS resolving with evdnsIf your application relies heavy on asyncronous DNS resolving, you probably
still need to patch stdlib to use evdns to resolve domain names. Fortunately
there are few steps to workaround issue with evdns initialization.First thing to do is to be sure not not make any network interactions before
server startup, so libevent (and its DNS subsystem in particular) will be not
be initialized before daemonization. That means no network code in WSGI
application factory.Then you should configure server to use non-patched version of gevent server
factory:[server:main]
use = egg:pastegevent#geventand patch DNS yourself in application factory:def app(global_config, **settings):
    from gevent.monkey import patch_all
    patch_all()
    return wsgi_appNow your application can take the advantages of asyncronous DNS resolving.
Package: pastegevent3
PasteGevent3===========Python 3 compatible fork of PasteGevent by Andrey Popp.With pastegevent package you can run your WSGI applications with gevent's highperformace HTTP server.Just use *egg:pastegevent#gevent* spec in use directive of your server configuration section:[server:main]use = egg:pastegevent#geventIf you need to pastegevent to monkey patch stdlib modules for your, use*egg:pastegevent#gevent_patched*. This will monkey patch all, except DNSsubsystem:[server:main]use = egg:pastegevent#gevent_patched
Package: pastegram
pastegram-pyA set of simple functions to upload and fetch pastes onpaste.uploadgram.me.API DocumentationMethodsupload_paste(contents: bytes, filename: str) -> UploadedPaste:Uploads a paste.argumentrequireddefaultcontentsyesfilenamenopasteReturns: theUploadedPastefetch_paste(url: str) -> strFetches the paste and returns the contents as string.argumentrequireddefaulturlyesReturns: The paste's contents as stringTypesUploadedPasteAn uploaded pasteFieldsfieldtypedescriptiontokenstrAn unique token that can be used to delete the pastedownloadIdstrThe paste's download idkeybytesThe paste's decryption key as bytesMethodsUploadedPaste.get_url() -> strGets the paste's shareable urlErrorsParseErrorRaised when an error occurs while parsing. May be thrown byfetch_paste()APIErrorRaised when an error occurs while fetching/parsing an API reponse. May be thrown byupload_paste()ExamplesUpload a paste and fetch it backfrompastegramimportupload_paste,fetch_paste,UploadedPastedefmain():print('uploading paste...')paste:UploadedPaste=upload_paste(b'hello')print(paste.token)print(paste.get_url())print('re-downloading paste...')contents:str=fetch_paste(paste.get_url())print(contents)if__name__=='__main__':main()
Package: pastegram-cli
pastegram-cliA CLI tool to use Pastegram from the terminalInstallingsudopipinstallpastegram-cli# install globallyExamplesUploadingpastegram-cliuploadmy-file.txtor read from STDIN# implicit uploadpastegram-cli<my-file.txtorcatmy-file.txt|pastegram-cliFetching a pastepastegram-clifetch"https://paste.uploadgram.me/61d7737a9ae36g#AmX76Y3RDgh_xfHB2ktgVYcT76jjCXMmMs7xPYSbqoc"# outputs to STDOUTor write the output to a filepastegram-clifetch"https://paste.uploadgram.me/61d7737a9ae36g#AmX76Y3RDgh_xfHB2ktgVYcT76jjCXMmMs7xPYSbqoc"-othe-paste.txtDeleting a pastepastegram-clideleteTOKEN# TOKEN is the 49 characters long string you get after uploading a paste
Package: pastehunter
PasteHunterPasteHunter is a python3 application that is designed to query a collection of sites that host publicly pasted data.
For all the pastes it finds it scans the raw contents against a series of Yara rules looking for information that can be used
by an organisation or a researcher.SetupFor setup instructions please see the official documentationhttps://pastehunter.readthedocs.io/en/latest/installation.htmlSupported InputsPastehunter currently has support for the following sites:pastebin.comgist.github.com # Gistsgithub.com # Public commit activity feedslexy.orgstackexchange # There are about 176!Supported OutputsPastehunter supports several output modules:dump to ElasticSearch DB (default).Email alerts (SMTP).Slack Channel notifications.Dump to JSON file.Dump to CSV file.Send to syslog.POST to URLSupported SandboxesPastehunter supports several sandboxes that decoded data can be sent to:CuckooViperFor examples of data discovered using pastehunter check out my postshttps://techanarchy.net/blog/hunting-pastebin-with-pastehunterandhttps://techanarchy.net/blog/pastehunter-the-results
Package: paste_it
Paste itPaste it is a python script that I made to upload files to pastebin using requests. it aims to be fast and light and hence doesn't support a large array of options. Currently paste_it reads from json.config in the directory its launched from, in the future it may support reading from appdata dirs using theappdirspython library. I don't intened for this to be used as a library but it can be used as one if you wish to, all functions do have docstrings incase you do decied to use this a library.Usageusage: paste_it [-h] [--format FORMAT] [--private PRIVATE] [--title [TITLE]] path

positional arguments:
  path               file who's contents you want to paste on pastebin

optional arguments:
  -h, --help         show this help message and exit
  --format FORMAT    format of the file contents. you can find the avalible formats at https://pastebin.com/doc_api
  --private PRIVATE  if your file should be privte, 0 public, 1 unlisted, 2 Private (only allowed in combination with api_user_key, as you have to be logged into your account to
                     access the paste)
  --title [TITLE]    the title of your paste
Package: pastekan
Pastekanpastekan adalah website paste kode / teks sederhana.installpip install pastekanpenggunaanpastekan myfile.txtatauecho "hi" | pastekanoptions$ pastekan -h
pastekan - a CLI client for pastekan server.

Usage:
    pastekan [-r] [-]
    pastekan [-r] FILE

-             read from stdin.
FILE          read from a file.

-h --help     show this message.
-v --version  show version information.
-r --raw      return a URL to the raw paste data.
Package: pastel
Pastel is a simple library to help you colorize strings in your terminal.It comes bundled with predefined styles:info: greencomment: yellowquestion: black on cyanerror: white on redFeaturesUse predefined styles or add you own.Disable colors all together by callingwith_colors(False).Automatically disables colors if the output is not a TTY.Used incleo.Supports Python2.7+,3.5+andPyPy.Usage>>>importpastel>>>print(pastel.colorize('<info>Information</info>'))'Information'# Green string by default>>>print(pastel.colorize('<fg=red;options=bold>This is bold red</>'))'This is bold red'Installationpip install pastel
Package: pastelaria
🌮 PASTELARIAThis repository is a cli that automatically creates api boilerplates for some python frameworksMade with love byThais. - CX software engineer at Luizalabs (Magalu)PrerequisitesThis repository assumes that Python 3.10 or newer is used.InstallationUsepipto download project dependencies:pipinstallpastelariaDependenciespipinstallcutieCommand Line Interface (CLI)A CLI will be installed through the package via pip. To get help on any option, just add the--helpflag when invoking the CLI.to get the list of commands do:pastelaria--helpTo start building the boilerplate, do:pastelariainitSelect framework and database options.⚠️ The project is under construction, due to this some boilerplates are still being built and will be released soonContributingThis is an open source work, feel free to contribute, ideas and criticism are welcome.First of all, please check out theCONTRIBUTINGguide.Feel free to start a thread about github issues or contact me atthaisribeirodn@gmail.comFinallyThank you for making it this far, we are in the beginning, we expect contributions and patience for the finalization of the CLI
Package: pastelib
pastelib v0.6.1========A Python library for interfacing with various pastebins; forked from the now-defunct lodgeitlib with permission.At the moment, I am just making available the source code of the old lodgeitlib. I intend to work on itin the near future, however, and put it back on PyPI.Lodgeitlib is documented here: https://pythonhosted.org/lodgeitlib/index.htmlAccording to the author, he removed the package from PyPI because the pocoo.org pastebin (the main implementationof lodgeit at the time) became defunct. However, there are several pastebins still around that use spacepaste,a successor to lodgeitlib (including bpaste.net), and I am using the software in a personal project, so I'm forkingit and making it publicly available once again.The source is still under the MIT license, as the original was.Credits:--------* Ben Rosser <rosser.bjr@gmail.com>: Author of fork* Sebastian Wiesner <swiesner@lunaryorn.com>: Original Author
Package: pasteme-cli
PasteMeis a RESTful pastebin
service. Install this CLI tool and paste right from your command-line
interface.docstestspackageSetup & InstallationSince PasteMe provides API endpoints, you can install the following
Python package and paste your source codes and code snippets using your
CLIs or Terminals.$pipinstallpasteme-cliUsage$pasteme[OPTIONS]file.pyPASTE-><URL>To paste with the following attributes, run the command with the specified options and values.title->"Here is the Title"(default:Untitled)line_start->20(default:Firstline)line_end->35(defalut:Lastline)language->C++(default:PlainText)expiresat->Onemonth(default:Oneweek)$pasteme--start20--end35--title"Here is the Title"--languagecpp-x1mprogram.cppYou will have your 15 lines of code highlighted in C++ ready to share. Also visit the manual by typing$ pasteme--helpand you have more
hints on the options and arguments.LicensePasteMe is being licensed under theMIT
License.Special Thanks toHashnodePlanetScaleDrop support for Python 3.6
Package: pastemyst
pastemyst-pyapi wrapper forpastemystwritten in python 3.12.installinstall using pip:$ pip install pastemystrequirementsHere's the libraries used to create the wrapper:trio^0.24.0httpx^0.26.0usageyou can find a simple usage example intest.py.or take a look at thetestsfolder.contributionfeel free to make a pull request or open an issue. all help is welcome.
Package: pastep
Pastep ApiCode EasilyPastep is a code sharing websiteImport the moduleUser one of functions? Magic ?FeaturesSearchTrendingPaste infoAccount infoQuick TutorialWe made this module for our users to be more comfortable while using our APISimple usage:LicenseMITContact me at Discord:https://discord.gg/mRnF6ypYyuFree Software, Hell Yeah!
Package: pasteplayer
# PasteplayerPasteplayer is a (very) thin python wrapper around mpv to allow easy on-the-fly playlist editing (like pasting youtube URLs)It's also available on pypi! Simply run `pip install pasteplayer`; after that, run the `pasteplayer` command from anywhere.## UsageUpon startup, you will be asked for a valid URL or file name.All usual mpv keyboard shortcuts still work, e.g.:* `space` to play/pause* `>` to skip to the next title in the playlist* `<` to go to the previous title* `m` to mute* …Additionaly, you can press `a` to add a new item to the playlist or `c` for more playlist editing commands:* `r NUMBER` to remove item at position NUMBER* `m FROM TO` to move an item### Command line arguments```usage: pasteplayer.py [-h] [-p KEY VALUE] [URL/PATH [URL/PATH ...]]simple queue player for mpvpositional arguments:URL/PATHoptional arguments:-h, --help            show this help message and exit-p KEY VALUE, --property KEY VALUEset mpv property KEY to VALUE. See all availableproperties with 'mpv --list-properties'-v, --video           Enable video. Shorthand for '-p video auto'```### Potentially useful properties* `video`: `auto`/`no` to enable/disable video* `mute`: `yes`/`no` to mute audio (without disabling it)* `fullscreen`: `yes`/`no`* `osc`: `yes`/`no` to enable/disable on-screen-controller (the one that appears when you move the mouse)
Package: pastepwn
pastepwn - Paste-Scraping Python FrameworkPastebinis a very helpful tool to store or rather share ascii encoded data online. In the world of OSINT, pastebin is being used byresearchers all around the worldto retrieve e.g. leaked account data, in order to find indicators about security breaches.Pastepwnis a framework to scrape pastes and scan them for certain indicators. There are several analyzers and actions to be used out-of-the-box, but it is also easily extensible - you can create your own analyzers and actions on the fly.Please note:This framework isnotto be used for illegal actions. It can be used for querying public Pastebin pastes for e.g. your username or email address in order to increase your own security.⚠️ Important noteIn April 2020 Pastebindisabled access to their scraping APIfor a short period of time. At first people weren't able to access the scraping API in any way, but later on they re-enabled access to the API setup page. But since then it isn't possible to scrape "text" pastes. Only pastes with any kind of syntax set. That reduces the amount of pastes to a minimum, which reduced the usefulness of this tool.Setting up pastepwnTo use the pastepwn framework you need to follow these simple steps:Make sureto have aPastebin premiumaccount!Install pastepwn via pip (pip3 install pastepwn)¹Create a file (e.g.main.py) in your project root, where you put your code in²Fill that file with content - add analyzers and actions. Check theexampleimplementation.¹ Note that pastepwnonly works with python3.6 or above²(If you want to store all pastes, make sure to set up amongodb,mysqlorsqliteinstance)Behind a proxyThere are 2 ways to use this tool behind a proxy:Define the following environment variables:HTTP_PROXY,HTTPS_PROXY,NO_PROXY.When initializing the PastePwn object, use theproxiesargument.proxiesis a dict as defined inrequests' documentation.TroubleshootingIf you are having troubles, check out thewiki pagesfirst.
If your question/issue is not resolved there, feel free tocreate an issueorcontact me on Telegram.Roadmap and ToDosCheck thebug trackeron GitHub to get an up-to-date status about features and ToDos.REST API for querying paste data (will be another project)Add a helpful wiki with instructions and examples
Package: paster
A generic pastebin posting toolSupported Paste services:Dpaste(http://dpaste.com/)
A django base simple and popular pastebinPastebin(http://pastebin.com/)
The very famous pastebin. Complete version 3 api supportedAdd support for more services easilyUsageDopstr -h,pstr paste -h,pstr list -hfor helpExamplesPaste some content> pstr paste “some content”Paste through the familiar piping> git diff | pstr pastePaste to the service pastebin> pstr paste -s pastebin “some content”Paste file contents (deprecated after piping support)> pstr paste -f path/to/file/filename.extensionPaste git diff (deprecated after piping support)> pstr paste -c “git diff”List available syntax/languages/formats> pstr list syntaxList available pastebin services> pstr list servicesFor the lazyAliaspstr pasteto something likepand doecho foo | pUse a config file to store settings
Package: pasteraw
Pipestdindirectly to a raw pastebin. Get a URL back. Go be productive.InstallationFrom PyPi:$ pip install pasterawCommand line usageGiven a file:$ cat somefile
Lorem ipsum.Pipe the file topasterawand get back a URL to a raw paste of that file:$ cat somefile | pasteraw
http://cdn.pasteraw.com/9lvwkwgrgji5gbhjygxgaqcfx3hefpbDo whatever you want with the URL. For example, open it in your web browser:$ open $(!!)Python library usageTo usepasteraw.com:>>> c = pasteraw.Client()
>>> url = c.create_paste('Lorem ipsum.')
>>> print(url)
http://cdn.pasteraw.com/9lvwkwgrgji5gbhjygxgaqcfx3hefpbIf you’re using your own deployment ofpasteraw, pass your own API endpoint to the
client:>>> c = pasteraw.Client('http://pasteraw.example.com/api/v1')
Package: pasterfu
PasterfuPython program that opens a link with a command read from a database.Link pasterfu with a program to make links from that program open into
program of your choice.Make your own rule database defining what link to open in what wayMade especially to use with RSS feed readers like newsboat. Or any other
program where you might want to open a specific in a manner based on the link
you are opening.RequirementsPython 3.8 or newerPyperclipwill be installed when
installing pasterfu with pipIn Ubuntusudo apt install python3With Windows download and installPython 3You could consider selectingAdd Python to PATHduring installInstallInstallPython 3-RequirementsRunpip install pasterfuCreate your config file rules.ConfigurationFor more info checkWiki Configurationpasterfu will work with OS default browser even without configsLinuxYou propably need to use a command like:pip3 install --upgrade pasterfuOr:python3 -m pip install --upgrade pasterfuWindowsIf you installed python without setting up path you need to include path when
running pip.py.exe -m pip install --upgrade pasterfuUsagepasterfu --link LINKReplace the "LINK" with the link you wish to open. CheckWiki Usagefor more info.WindowsIf you installed python without setting up path you need to include path when
running pasterfu.For Python 3.8:%LOCALAPPDATA%\Programs\Python\Python38\Scripts\pasterfu.exe --link LINKConfigurationsTo see your current configurationspasterfu --config.Set default browser of your choicepasterfu --config --edit 0 --input "firefox"Default browser will be used if link to be opened has no match in database
rules.OS default internet browser will be used if no matching key is found.Read more atWiki Configuration.DatabaseTo see your current rules runpasterfu --dbRules can be added/edited withpasterfu --db --edit 0 --input "https://www.twitch.tv/"If--editis given ID number that doesen't exist yet a new rule will be
created.Adding command valaues into rule:pasterfu --db --edit 0x0 --input "firefox"Giving--edit 0x0means in rule #0 command #0--input"firefox"Database file can be found in~/.config/pasterfu.json. Or in%USERPROFILE%\Documents\pasterfu.jsonfor Windows.Example 1Open link using the link argument.pasterfu -l "https://gitlab.com"Example 2Open link piping into stdin.echo "https://gitlab.com" | pasterfuExample 3Make rule to open gitlab pages.pasterfu -d 0 "https://gitlab.com"Example 4Make rule to open rule #1 type links in Firefox:`pasterfu -de 1x0 -i "firefox"`Example 5Set your default browser.pasterfu -ce 0 "firefox"Example 6By using '%clip' you can copy a link withpyperclip.pasterfu -de 1x0 -i "%copy"DevelopingTODO list found hereWiki TODOTests can be run with./run_testsorrun_tests.bat. These requireflake8andpytest. Both can be found inPyPI.