Saravanan666/pypi-org huggingface dataset:
Package: reddit-regex-counter
reddit-regex-counterCount the number of regular expression matches within a subreddit.DescriptionThis package is a wrapper forpsaw. It allows
the user to easily count the number of matches of a regular expression within
a certain period of time within a subreddit. The regular expression matches
are stored in a dictionary, with the matches themselves being the keys, and
the number of occurrences as the values.InstallationTo download and install directly frompypi, run the
following command:pip3 install reddit-regex-counterAlternatively, to directly install from the Github resource repository,
please first clone this repository, then run:pip3 install .Usageusage: reddit-regex-counter [-h] [-s START] [-e END] -n NAME -p PATTERN

Count the number of regex matches within a subreddit

optional arguments:
-h, --help            show this help message and exit
-s START, --start START
                        The starting date of the search period, in the format
                        of %Y-%m-%d (e.g. 2020-01-31)
-e END, --end END     The starting date of the search period, in the format
                        of %Y-%m-%d (e.g. 2020-02-01)
-n NAME, --name NAME  The name of the subreddit
-p PATTERN, --pattern PATTERN
                        The regular expression pattern for matchingExample Output$ reddit-regex-counter \
    -s 2020-05-17 \
    -e 2020-05-18 \
    -n news \
    -p "\b[A-Z]{3}\b"
Match:  Count:
USA     59
PPP     58
NOT     52
AND     40
CEO     35
YOU     32
GOP     32
THE     31
WHO     29
CNN     28
CCP     27
PPE     27
CIA     23
ALL     22
LOL     19
FBI     18
...Licensereddit-regix-counter - count the number of regex matches within a subreddit

Copyright (C) 2020  Fufu Fang

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

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.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.
Package: redditreplier
A simple Python module that simplifies creating Reddit bots that reply to comments based on criteria you specify.All you need to do is write a parser method that is passed into the Replier class that will parse a Reddit message that returns whether or not you should reply to said message as well as the text to reply with, and redditreplier will take care of the rest. It will communicate with the Reddit API using praw, continually watching whatever subreddits you specific.Please checkout the GitHub repository for more info. (https://github.com/naiyt/reddit-replier)
Package: redditreport
RedditReportPython package created fortrendsreport.appThis package relies onprawlibrary to communicate with Reddit API. To install it:pip install praw==7.1.4
pip install redditreportClassesRedditUserIt represents a Reddit account to interact with the Reddit API. Its only methodget_reddit_instancereturns aprawReddit instance.RedditPostIt represents the Reddit post. It contains aprawsubmission object and some post data:sub_nametitleurlscorenum_commentsIts only methodas_dictreturns a Python dict object with the data stored in it.You don't need to use this class unless you want to modify what the report contains.RedditReportIt represents the actual Reddit report. In order to work, it needs to be passed in some initial attributes:reddit-> aprawReddit instance. You can get it usig RedditUser'sget_reddit_instancemethod.subs_list-> a Python list object with the names (as strings) of the subreddits you do want to include in the report.lines_per_sub-> a maximum post limit per sub in the report.The report data is stored in itsreport_dataattribute as a Python dict.It has two methods:generate_datawhich populatesreport_datadict with RedditPost's objects.serializewhich transform every object insidereport_datainto a dict of strings.Examplefrom redditreport.core import RedditUser as ru
from redditreport.core import RedditReport as rr

# Your Reddit API credentials.
# More info: https://www.geeksforgeeks.org/python-praw-python-reddit-api-wrapper/
client_id = 'your-client-id'
client_secret = 'your-client-secret'
user_agent = 'your-user-agent'
reddit_user = ru.RedditUser(client_id, client_secret, user_agent)

# Reddit object instance from praw library
reddit_instance = reddit_user.get_reddit_instance()

# RedditReport instance
subs_list = ['pics', 'askreddit']   # must be a list
lines_per_sub = 3   # must be an integer
reddit_report = rr.RedditReport(reddit_instance, subs_list, lines_per_sub)

# Pulls data from Reddit
report_data = reddit_report.generate_data()

# Serializes it
serialized_report_data = reddit_report.serialize()
Package: reddit-rss-reader
Reddit RSS ReaderThis is wrapper around publicly/privately available Reddit RSS feeds. It can be used to fetch content from front page, subreddit, all comments of subreddit, all comments of a certain post, comments of certain reddit user, search pages and many more. For more details about what type of RSS feed is provided by Reddit refer these links:link1andlink2.*Note: These feeds are rate limited hence can only be used for testing purpose. For serious scrapping register your bot atappsto get client details and use it withPraw.InstallationInstall via PyPi:pipinstallreddit-rss-readerInstall from master branch (if you want to try the latest features):gitclonehttps://github.com/lalitpagaria/reddit-rss-readercdreddit-rss-reader
pipinstall--editable.How to useRedditRSSReaderrequire feed url, hence referlinkto generate. For example to fetch all comments on subredditr/wallstreetbets-https://www.reddit.com/r/wallstreetbets/comments/.rss?sort=newNow you can run the followingexample-importpprintfromdatetimeimportdatetime,timedeltaimportpytzaspytzfromreddit_rss_reader.readerimportRedditRSSReaderreader=RedditRSSReader(url="https://www.reddit.com/r/wallstreetbets/comments/.rss?sort=new")# To consider comments entered in past 5 days onlysince_time=datetime.utcnow().astimezone(pytz.utc)+timedelta(days=-5)# fetch_content will fetch all contents if no parameters are passed.# If `after` is passed then it will fetch contents after this date# If `since_id` is passed then it will fetch contents after this idreviews=reader.fetch_content(after=since_time)pp=pprint.PrettyPrinter(indent=4)forreviewinreviews:pp.pprint(review.__dict__)Reader returnRedditContentwhich have following information (extracted_textandimage_alt_textare extracted from Reddit content viaBeautifulSoup) -@dataclassclassRedditContent:title:strlink:intid:strcontent:strextracted_text:Optional[str]image_alt_text:Optional[str]updated:datetimeauthor_uri:strauthor_name:strcategory:strThe output is given with UTF-8 charsets, if you are scraping non-english reddits then set the environment to use UTF -exportLANG=en_US.UTF-8exportPYTHONIOENCODING=utf-8
Package: reddit-sauce-harvester
reddit-sauce-harvesterA command program tool to harvest links (sauces) from reddit post comments.InstallationFrom PyPIpipinstallreddit-sauce-harvesterFrom Sourcegitclonehttps://github.com/mehq/reddit-sauce-harvester.gitcdreddit-sauce-harvester
pythonsetup.pyinstallUsagersharvester[OPTIONS]SUBREDDITOptions-v,--versionShowtheversionandexit.
-d,--delayFLOATDelaybetweenrequestsinseconds.
-s,--sort[hot|new|rising|top_all|top_hour|top_day|top_week|top_month|top_year]Sortorderofsubredditposts.
-u,--url-patternTEXTOnlymatchprovidedurlpattern(s)(hasprecedenceover--exclude-url-pattern).
-x,--exclude-url-patternTEXTExcludeprovidedurlpattern(s).
--helpShowthismessageandexit.
Package: reddit-scraper
reddit_scraperDescriptionInstallpipinstallreddit_scraper# orpip3installreddit_scraperUsagefromkcuimportkjsonfromreddit_scraper.reddit_scraperimportRedditScraper# posts = RedditScraper.get_posts('askreddit', max_count=10)# print(len(posts))id_='hyuiqg'post=RedditScraper.get_post(id_,comments_min_score=250)j=post.jsondelj['post_dict']delj['comments_dict']kjson.save(id_+'.json',j)
Package: redditsfinder
redditsfinder - reddit user infoIt's in a good state again with some quality of life improvements.pip3 install redditsfinderA program to get reddit user post data.Running redditsfinder
---------------------
    Test it on yourself to make sure it works.
        redditsfinder someusername

    Basic usage
        redditsfinder username
        redditsfinder [options] username_0 username_1 username_2 ...

    With an input file
        -f or --file.
        redditsfinder [options] -f line_separated_text_file.txt

    Examples
        - just print the summary table to stdout
            $ redditsfinder someusername

        - save data locally and print the summary table to stdout
            $ redditsfinder --write someusername

        - just save data locally without printing
            $ redditsfinder --write --quiet someusername

        - download pictures
            $ redditsfinder -pd someusername

    Optional args
        --pics returns URLs of image uploads
        -pd or --pics --download downloads them
            -quiet or -q turns off printingDemoDownloading Imagesredditsfinder -pd someusernameCreating a commandredditsfinder someusername
Package: reddit-stock-sentiment
Reddit Stock SentimentSimple class using spacy and nltk to identitify stocks and sentiment on Reddit forumsFree software: MIT licenseDocumentation:https://reddit-stock-sentiment.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2021-08-01)First release on PyPI.
Package: reddit-tablify
UsagecreateRedditTable(obj, headers=[], justifyString='c', outputfile='', index='index', includeIndex=False)Basic Usage just pass in a dictionary and you get a table output to console with no ordering of headers,
all columns center justified and no index includedimport rtablify as rtablify

dictionary = {"apple": {'a': 1, 'b' : 2}, "banana" : {'a': 4, 'b' : 6}}
rtablify.createRedditTable(dictionary)

Output:
a|b
:-:|:-:
1|2
4|6Include a list of headers to enforce a header orderrtablify.createRedditTable(dictionary, headers = ['b', 'a']])

Output:
b|a
:-:|:-:
2|1
6|4Include a justify string of either 'r' for right 'c' for center and 'l' to justify columns,
if you don't provide enough characters it will fill with the last in the string.So if you had 7 columns and wanted the first left justified and all the rest centered you could pass in a string of
'lc' or 'lcccccc' both would have the same results.Bug to fix in future relases is handle if justifyString is too long for now don't do that.rtablify.createRedditTable(dictionary, justifyString = 'll')

Output:
a|b
--:|--:
1|2
4|6If you include an outputfile name it will be created in the directory with a name provided and will not print to the console.If leave on includeIndex = True (default false) The index will added into the table. If you do not specify an index name it will be called index.
If you want an index it is best to include a header list to let the function know where you want the index to be.rtablify.createRedditTable(dictionary, headers= ['index','a','b'], includeIndex = True)

Output:
index|a|b
:-:|:-:|:-:
apple|1|2
banana|4|6
Package: reddit-to-sqlite
reddit-to-sqliteSave data from Reddit to SQLite. Dogsheep-based.Inserts records of posts and comments into a SQLite database.  Can
be run repeatedly safely; will refresh already-saved results (see Reload, below).
Createspostsandcommentstables, plus anitemsview with a unified
view.Usagereddit-to-sqlite r/python
reddit-to-sqlite u/catherinedevlin 
reddit-to-sqlite --helpBy default, writes to a localreddit.dbdatabase (change with--db).Authorizingreddit-to-sqlite will look for a file of authorization info (location determined
by --auth, defaults to~/.config/reddit-to-sqlite.json) and, if not found, will
query the user and then save the info there.  You will need a Reddit username and
password, and you will need toregister your app with Redditto get a client_id
and client_secret.  (More instructions)LimitsWhether used for users or for subreddits, can't guarantee getting all
posts or comments, becauseReddit's API only supplies the last 1000 items for each API call, and does
not support pagination;Comments nested under a single post won't be retrieved if they are deeply
nested in long comment chains
(seereplace_more)Reloadreddit_to_sql can be run repeatedly for a given user or subreddit, replacing previously saved
results each time.  However, to save excessive API use, it works backward through time and
stops after it reaches the timestamp of the last saved post, plus an overlap period (default
7 days).  That way, recent changes (scores, new comments) will be recorded, but older ones
won't unless--post_reloadis increased.  If posts keep getting comments of interest long
after they are posted, you can increase--post_reload.When loading an individual user's comments, by default reddit_to_sql stops just 1 day after
reaching the most recent comment that is already recorded in the database.  However, if you're
interested in comment scores, you may want to impose a longer--comment_reload, since scores
may keep changing for longer than a single day after the comment is posted.Notesauthoris saved in case-sensitive form, so case-insensitive searching withLIKEmay be helpful.
Package: reddit_view
# this will out put a list of links to the slideshow file# where list_of_subreddits is a file with a list of subreddits$reddit_view-s`cat~/list_of_subreddits|tr"\n"","`&>~/slideshow$reddit_view-s`cat~/bin/list_of_subreddits|tr"\n"","`-ohot&>~/slideshow$reddit_view-ir-sfunny,science,machineporn-ohot,top-p1&>~/slideshow# to view$cat~/slideshow|xargsfeh-D5--auto-zoom-g800x800-Bblackfor more see the programs -h help option
Package: reddit-wall
Wallpaper Downloader for RedditThis program downloads wallpapers from subreddits and multireddits of your choosing.ConfigurationThe configuration file is located at~/.config/reddit-wall.conf.Since this relies onPRAW, you'll need to get an API key, secret, and user agent. The instructions on how to do that can be foundhere. Once you have this info, the program should pick up your PRAW config from yourpraw.inifile automatically.You'll also need a client id and secret from Imgur. Instructions for that arehere. If you don't provide an api key, it will simply skip imgur albums when downloading.
Package: reddrip
So, you are busy with the stuff, but don’t want to miss a picture in
gonewild^Wmotivationalpics? Then, this is the project for you.InstallationYou will need to have Redis instance ready. Then, the fastest way is to pip it:pip install reddripPip will download and install the dependencies for you.RunningWhat you need is a configuration file. Take a look atexample.cfgone to get
the idea.After that, run it:reddrip run -c /path/to/configuration.cfgAlso, you may use-vto get more verbosity.At any moment, you may query Redis database to get some stats:reddrip stat -c /path/to/configuration.cfgHistoryThis code was born one evening after playing withpraw.LicenseThis is GPLv3 or later code. See the LICENSE file if you must.
Package: reddutils
ReddutilsThis is ReddTea's small package compiling useful self-made functions for an astrophysical context.OverviewReddutils contains many functions and classes for personal use.
Some of them may be of use for the community.DependenciesThis code makes use of:NumpypandasScipyPyAstronomy (http://www.hs.uni-hamburg.de/DE/Ins/Per/Czesla/PyA/PyA/index.html)tqdm (https://pypi.python.org/pypi/tqdm)tabulatematplotlib.pyplotipywidgetsIPython.displayMost of them come with conda, if some are missing they can be easily installed with pip.InstallationIn the console type in your work folderpipinstallreddutilsUsageCorrelatorFor a pandas dataframe or three-column table:fromreddutilsimportcorrelatorasrc
importpandasaspddf=pd.read_csv('data.csv')cor=rc.correlator()cor.display(df)ExodusUse for visualising the NASA Exoplanet Archive:fromreddutilsimportexodus#exopop = exodus.Exoplanet_Archive()exopop=exodus.Exoplanet_Archive('NasaExoplanetArchive')#exopop = exodus.Exoplanet_Archive('ExoplanetEU2')#exopop = exodus.Exoplanet_Archive('ExoplanetsOrg')exopop.display()Try out the histogram mode:exopop.display_hist()Fourier Transform VisualiserFor visualising fourier transforms and the nyquist limit.fromreddutilsimportfourierfou=fourier.fourier()fou.display()PeriodogramFor a pandas dataframe:fromreddutilsimportperiodogramasrp
importpandasaspddf=pd.read_csv('data.csv')per=rp.LSP()per.display(df)
Package: reddutils-test
ReddutilsThis is ReddTea's small package compiling useful self-made functions for an astrophysical context.OverviewReddutils contains many functions and classes for personal use.
Some of them may be of use for the community.DependenciesThis code makes use of:NumpypandasScipyPyAstronomy (http://www.hs.uni-hamburg.de/DE/Ins/Per/Czesla/PyA/PyA/index.html)tqdm (https://pypi.python.org/pypi/tqdm)tabulatematplotlib.pyplotipywidgetsIPython.displayMost of them come with conda, if some are missing they can be easily installed with pip.InstallationIn the console type in your work folderpipinstallreddutilsUsageCorrelatorFor a pandas dataframe or three-column table:fromreddutilsimportcorrelatorasrc
importpandasaspddf=pd.read_csv('data.csv')cor=rc.correlator()cor.display(df)ExodusUse for visualising the NASA Exoplanet Archive:fromreddutilsimportexodusexopop=exodus.NASA_Exoplanet_Archive()exopop.display()Fourier Transform VisualiserFor visualising fourier transforms and the nyquist limit.fromreddutilsimportfourierfou=fourier.fourier()fou.display()PeriodogramFor a pandas dataframe:fromreddutilsimportperiodogramasrp
importpandasaspddf=pd.read_csv('data.csv')per=rp.LSP()per.display(df)
Package: rede-api
API RedeDocumentação da API:Conciliação.:https://conciliationrede.docs.apiary.ioCredenciamento.:https://affiliationrede.docs.apiary.ioForma de uso:from rede import api

r = api.RequestsConciliacao(
    COLOCAR_SEU_USUARIO,
    COLOCAR_SUA_SENHA,
    COLOCAR_SEU_USERNAME_REDE,
    COLOCAR_SEU_PASSWORD_REDE
)

params = {
    'personType':'JURIDICA',
    'documentNumber':'3422594000117'
}

result = r.consultarEstabelecimentoComercial(params)

print(result)A package faz a autenticação, gera um token de acesso e com esse token consulta os estabelecimentos comerciais do CNPJ 3422594000117Métodos disponíveisTodos os métodos disponíveis na documentação da rede foram implementados, sendo eles.:CredenciamentoRealizar Proposta de Credenciamento (criarPropostaCredenciamento)Consultar Proposta de Credenciamento por Id (consultarPropostaCredenciamentoPorId)Consultar Estabelecimento Comercial (consultarEstabelecimentoComercial)Cancelar Estabelecimento Comercial (cancelarEstabelecimentoComercial)Consultar Preços (consultarPrecos)Consultar MCCs (consultarMCCs)Realizar Lead Credenciamento (createLeadCredenciamento)ConciliaçãoConsultar Vendas (consultarVendas)Consultar Parcelas (consultarParcelas)Consultar Pagamentos - Visão Sumarizada CIP (consultarPagamentosSumarizadosCIP)Consultar Pagamentos - Visão Ordem de Crédito (Sem método, API EM CONSTRUÇÃO)Consultar Recebíveis (Sem método, API EM CONSTRUÇÃO)Consultar Recebíveis - Visão Sumarizada (consultarRecebiveisSumarizados)Consultar Débitos - Visão Detalhada (consultarDebitos)Consultar Débitos - Visão Sumarizada (Sem método, API EM CONSTRUÇÃO)Consultar Lista de Ajustes de Débito (consultarListaAjusteDebitos)AmbienteAté o exato momento a rede só disponibilizou o ambiente de homologação, porém para selecionar o ambiente basta criar uma estância da classe da seguinte formar = api.RequestsConciliacao(
    COLOCAR_SEU_USUARIO,
    COLOCAR_SUA_SENHA,
    COLOCAR_SEU_USERNAME_REDE,
    COLOCAR_SEU_PASSWORD_REDE,
    True
) # Desta forma seleciona automaticamente o Sandbox (Homologação está selecionado como ambiente)

prd = api.RequestsConciliacao(
  COLOCAR_SEU_USUARIO,
  COLOCAR_SUA_SENHA,
  COLOCAR_SEU_USERNAME_REDE,
  COLOCAR_SEU_PASSWORD_REDE,
  False
) # Desta forma seleciona-se o ambiente de produçãoTO-DOValidar bodies em métodos POST para verificar se todos os campos obrigatórios estão presentesValidar todos os query string parameters obrigatórios estão presentes na URLCriar mensagem amigável para o usuário quando faltar um parametro obrigatórioCaso resultados retornem paginados criar método recursivo para busca de todos os dados em somente uma chamada
Package: redecanais
Oredecanaisajuda você a assistir vários filmes via linha de comando comfacilidade:Instalação:pipinstallredecanaisoupipinstallgit+https://github.com/cleitonleonel/redecanais.gitUso dentro do módulo:pythonredecanais.py--url<name>...
pythonredecanais.py--all<name>...pythonredecanais.py--category<name>...
pythonredecanais.py--genre<name>...
pythonredecanais.py--page<name>...
pythonredecanais.py--host<name>...pythonredecanais.py--stream<name>...
pythonredecanais.py--search<name>...
pythonredecanais.py--select<name>...
pythonredecanais.py--external-player<name>...
pythonredecanais.py--renderer-ip<name>...
pythonredecanais.py(-h|--help)pythonredecanais.py--versionOpções:python-mredecanais<options>'-u','--url',help='Use o link de uma determinada página para extrair informações...''-a','--all',help='Use True ou False para extrair ou não todo conteúdo de uma determinada página...''-c','--category',help='Use para definir uma categoria.''-g','--genre',help='Use para definir um gênero.''-p','--page',help='Use para especificar uma página.''--host',help='Defina o host.''--stream',help='Use com um link embed para abrir o vídeo.''--tv-channels',help='Use para definir o uso de canais de tv.''--search',help='Use para buscar filmes por título.''--select',help='Use True ou False para abrir o menu de seleçao dos filmes...''--external-player',help='Use para definir o uso de um player externo.''--renderer-ip',help='Use para definir o IP do dispositivo chromecast.'Recomendado:python-mredecanais--page2--all--select

python-mredecanais--searchbatman--select

python-mredecanais-gterror-cdublado--page1--select

python-mredecanais-gterror-cdublado--page1--select--external-player

python-mredecanais-gterror-cdublado--page1--select--external-player--renderer-ip10.0.0.2

python-mredecanais-tv--searchglobo--select--external-playervlc--renderer-ip10.0.0.2Importando o módulo:fromredecanais.redecanaisimportChannelsNetworkif__name__=='__main__':cn=ChannelsNetwork()films=cn.search('batman')print(films)cn.select_film(films,play=True)
Package: redelvlib
WHAT IS redelv?The program ‘redelv’ is a third-party role playing game scenario editor system
interoperable with the Delver Engine by Glenn Andreas. Besides modifying the
scenario file of a Delver-based game (e.g. “Cythera Data”), it can create and
apply patches and perform other manipulations of Delver Archives.redelv is based on the python module delv, which was itself prepared based on
the DelvTechWiki’s technical documentation project, which can be found here:http://www.ferazelhosting.net/wiki/INSTALLING
python setup.py installHOW TO USE IT
Run the command ‘redelv’ from your command line after installing.
It’s a GUI program, so you just mess with it until you figure it out.
Make backups.The suggested workflow is to use redelv on a copy of “Cythera Data” that is
on a virtual disk shared with a Mac Emulator (e.g. BasiliskII or SheepShaver).
After making your desired mods, you can use redelv to make a patch that will
modify an unmodified copy of “Cythera Data” to match your modified one.LICENSE
Free software under the GPL3. (As required by using delv, which is GPL3,
not LGPL3.) The developers of delv politely ask you not to use delv to create
versions of the “Cythera Data” file modified to bypass the shareware
restrictions, a request that also applies to redelv.