Saravanan666/pypi-org huggingface dataset:
Package: fedora-planet-messages
JSON schema definitions for messages published by Fedora planet.Seehttp://json-schema.org/for documentation on the schema format. Seehttps://fedora-messaging.readthedocs.io/en/latest/messages.htmlfor
documentation on fedora-messaging.TestingTo test this schema you need to create a python virtual environment and install test-requirements.txt.
See the instructions bellow:python-mvenv.venv..venv/bin/activatepipinstall-rtest-requirements.txtAfter test environment is created, you can run tests by typingtox.
Package: fedora-sig-onboard
fedora-sig-onboardfedora-sig-onboardis a simple tool to onboard a Fedora package onto the relevant SIG. It will attempt to add the SIG to the package ACL, update the Bugzilla assignee and add the package toAnitya. Rust and Golang packages are currently supported, and will be respectively onboarded onto theRust SIGand theGo SIG.InstallationOn Fedora Linux 38 or later:dnf install fedora-sig-onboardotherwisepip install 'git+https://pagure.io/fedora-sig-onboard.git'UsageAdd your dist-git and Anitya to the configuration file in~/.config/fedora-sig-onboard/fedora-sig-onboard.conf:[api]
dist_git_token = YOUR_DIST_GIT_TOKEN_HERE
anitya_token = YOUR_ANITYA_TOKEN_HERETo onboard a package:$ fedora-sig-onboard onboard rust-escape_string
[rust-escape_string] updating ACL
[rust-escape_string] updating Bugzilla assignees
[rust-escape_string] adding to release monitoring
$Multiple packages can also be specified, and will be processed in sequence. If no package is specified,fedora-sig-onboardwill attempt to infer the package name from the current directory.Licensefedora-sig-onboardis MIT licensed.
Package: fedora-test-auth
Test AuthThis is a very basic app to test authentication in the Fedora infrastructure.ConfigurationYou can configure the app using a configuration file, you need to point to this
file with theTESTAUTH_SETTINGSenvironment variable.In the configuration file you can set:SECRET_KEY: a unique secret key for signing cookies (see the Flask documentation)OIDC_CLIENT_SECRETS: the path to theclient_secrets.jsonfile for OIDC authOIDC_SCOPES: the list of OIDC scopes to request from the serverOPENID_ENDPOINT: the URL of the OpenID server endpointOPENID_ASK_FOR: the list of attributes to request from the serverOPENID_ASK_FOR_OPTIONAL: the list of attributes to optionaly requestOIDCTest the OIDC authentication system using the/oidcpath. You must have set a client secrets file by doing:$ pip3 install oidc-register
$ oidc-register https://iddev.fedorainfracloud.org/openidc/ http://localhost:5000/oidcWherehttps://iddev.fedorainfracloud.org/openidc/is the URL of the OIDC server endpoint.OpenIDTest the OpenID authentication system using the/openidpath. There is no server-side configuration to do.
Package: fedorov
A python package to initialize different crystal structures. Named after the Russian mathematician, crystallographer and mineralogist:Evgraf Fedorov. This package provides methods to generate any user defined crystal structures in both 2D and 3D systems, and includes access to 590 known crystal structures defined inAflow. Users can use this package to obtain the necessary data in form of numpy array to use for softwares such asHOOMD-Blueto construct any systems with specific crystal structure for simulation and analysis. In addition, the package also provides access to all the 3D space group, 2D plane group as well as point group operations that allows user to apply different symmetry operations.InstallationInstall with pipTo install the package with the package managerpip, execute$pipinstallfedorov--userTo upgrade the package, simply execute the same command with the--upgradeoption.$pipinstallfedorov--user--upgradeInstall from sourceAlternatively you can clone thegit repositoryand execute thesetup.pyscript to install the package.gitclonehttps://github.com/glotzerlab/fedorov.gitcdfedorovpythonsetup.pyinstall--userDocumentationDocumentation link: Website link to be addedYou can also build the documentation with sphinx:You can install sphinx using conda:condainstallsphinxor pip:pipinstallsphinxTo build the documentation, run the following commands in the source directory:cddocmakehtml# Then open _build/html/index.htmlTo build a PDF of the documentation (requires LaTeX and/or PDFLaTeX):cddocmakelatexpdf# Then open _build/latex/fedorov.pdfQuickstartThis package provides methods to generate known or user defined crystal structures. For example, to generate any known crystal structures from thislist:importnumpyasnpfromfedorovimportSpaceGroup,Prototype,AflowPrototypefromfedorovimportconvert_to_box# generate the exact prototype provided by Aflow, use prototype_index [0, 589]prototype_index=5new_structure=AflowPrototype(prototype_index=prototype_index,print_info=True,set_type=True)basis_vectors,type_list=new_structure.get_basis_vectors()lattice_vectors=new_structure.get_lattice_vectors()Lx,Ly,Lz,xy,xz,yz=convert_to_box(lattice_vectors)More example can be foundhere.TestingYou can test this package by executing:python-mpytesttests/within the repository root directory.CreditsSeeCredits.
Package: feds.py
feds.pyAfeds.lolAPI wrapper for Python.InstallationInstall feds.py with pippip3installfeds.pyUsage/Examplesimportfedsclient=feds.Client()client.login_with_credentials('username','password')client.set_name('test')# Change biolink's display nameclient.set_link('test')# Change biolink's URLclient.set_avatar('https://i.imgur.com/xxxxxxx.png')# Change biolink's profile pictureclient.set_background('https://i.imgur.com/xxxxxxx.png')# Change biolink's background pictureclient.set_bio('test')# Change biolink's bioimportfedsclient=feds.Client()client.login_with_session('PHPSESSID')client.set_name('test')# Change biolink's display nameclient.set_link('test')# Change biolink's URLclient.set_avatar('https://i.imgur.com/xxxxxxx.png')# Change biolink's profile pictureclient.set_background('https://i.imgur.com/xxxxxxx.png')# Change biolink's background pictureclient.set_bio('test')# Change biolink's bio>>>importfeds>>>importjson>>>>>>data=feds.fetch('https://feds.lol/1').get_data()>>>>>>print(json.dumps(data,indent=4)){"style":1,"url":"https://feds.lol/1","avatar":"https://i.imgur.com/hZpOceo.jpeg","background":"https://i.imgur.com/zx6en3Q.gif","name":"b","views":"5869","bio":"test","spotify":"spotify:track:3AIxrqGApkV8E7uH0x2xF3?si=490a05333d6a4692","links":[{"name":"GITHUB","url":"https://github.com/addi00000"}]}ContributingFeature additions and bug fixes/reports are welcome. Please open an issue or pull request.LicenseThis project is licensed under the AGPL License - see theLICENSEfile for details.
Package: fedwatch
fedwatch========Library for watching fedmsg messages and running arbitrary scripts in a nice wayThink of fedwatch as simple converter from fedmsg json messages into shellarguments for scripts.Dependencies============* fedmsg (duh!)* python-dpath (https://github.com/akesterson/dpath-python)Usage=====To use fedwatch you will need to create a configuration file (by default readfrom /etc/fedwatch.conf) and scripts that are to be run when messages ofinterest arrive (by default /etc/fedwatch.d).When interesting message arrives, fedmsg converts json data into arguments forshell scripts and runs each script in <em>script-dir</em> based onconfiguration. First argument is always topic so that scripts can handledifferent topics.Real life example of configuration file:{"org.fedoraproject.prod.git.receive": {"args": ["msg/commit/username","msg/commit/repo","msg/commit/branch","msg/commit/rev","msg/commit/summary"]}}Above configuration means fedwatch will be waiting for <em>git.receive</em>topic and will pass 6 arguments to any scripts in <em>script-dir</em>:1. org.fedoraproject.prod.git.receive (topic)2. FAS username of commiter3. repository (package) name4. branch name5. revision (SHA hash of commit)6. commit summary (1st line of git commit)To see list of possible topics and data included in them seehttp://fedmsg.readthedocs.org/en/latest/topics/
Package: fedwire
# Change Log## [v0.1.2](https://github.com/narmitech/fedwire-python/tree/v0.1.2)
[Full Changelog](https://github.com/narmitech/fedwire-python/compare/v0.1.1…v0.1.2)Fix amount and make tests more explicit (https://github.com/narmitech/fedwire/pull/6)## [v0.1.1](https://github.com/narmitech/fedwire-python/tree/v0.1.1)
[Full Changelog](https://github.com/narmitech/fedwire-python/compare/v0.1.0…v0.1.1)Fix originator tag (https://github.com/narmitech/fedwire/pull/2)## [v0.1.0](https://github.com/narmitech/fedwire-python/tree/v0.1.0)
[Full Changelog](https://github.com/narmitech/fedwire-python/compare/…v0.1.0)Add interfacesHome-page:https://github.com/narmitech/fedwire-pythonAuthor: Narmi
Author-email:support@naritech.comLicense: Apache 2.0
Description: UNKNOWN
Platform: UNKNOWN
Provides-Extra: dev
Package: feed2exec
feed2execis a simple program that runs custom actions on new RSS
feed items (or whateverfeedparsercan read). It currently has
support for writing into mailboxes (Maildirfolders) or executing
commands, but more actions can be easily implemented through
plugins. Email are saved as multipart plain/HTML and can be sent to
arbitrary folders.ExamplesSimple run with no side effects:feed2exec parse https://www.nasa.gov/rss/dyn/breaking_news.rss --output echo --args '{item.title}'Saving feed items to a Maildir folder:feed2exec add "NASA breaking news" https://www.nasa.gov/rss/dyn/breaking_news.rss --folder nasa
feed2exec fetchThis creates the equivalent of this configuration file in~/.config/feed2exec.ini:[DEFAULT]
output = feed2exec.plugins.maildir
mailbox = ~/Maildir

[NASA breaking news]
folder = nasa
url = https://www.nasa.gov/rss/dyn/breaking_news.rssSend new feed items to Transmission:feed2exec add "Example torrent list" http://example.com/torrents/feed --output transmission --folder /srv/incomingSend new feed items to Mastodon, using thetootcommandline
client:feed2exec add "My site" http://example.com/blog/feed --output exec --args 'toot post "{item.title} {item.link}"'Send new feed items to Twitter, using the tweet commandline client
frompython-twitter:feed2exec add "My site on twitter" http://example.com/blog/feed --output exec --args 'tweet "{item.title:.40s} {item.link:.100s}"'Show feed contents:feed2exec add "NASA breaking news" https://www.nasa.gov/rss/dyn/breaking_news.rss --output echo --args "{item.title} {item.link}"
feed2exec fetchMultiple feeds can also be added with the OPML import command. See theusagedocument for more information including known issues and
limitations.InstallationThis can be installed using the normal Python procedures:pip install feed2execIt can also be installed from source, using:pip install .It can also be ran straight from the source, using:python -m feed2execImportantfeed2exec is explicitly written for Python 3. It may be
possible to backport it to Python 2 if there is
sufficient demand, but there are too many convenient
Python3 constructs to make this useful. Furthermore,
all dependencies are well-packaged for Py3 and the
platform is widely available. Upgrade already.The program may also be available as an official package from your
Linux distribution.Source,documentationandissuesare available on
GitLab.Notefeed2exec relies on thefeedparsermodule to parse feeds
and as such has all the bugs and limitations of that
modules. In particular, feeds with non-standard dates will
break the parser, unless thedateparsermodule is
installed.Why the name?There are alreadyfeed2tweetandfeed2imapout there so I
figured I would just reuse the prefix and extendbothprograms at
once.Design informationSee thedesigndocument for more information about how and why the
program was built. The design document also features a comparison with other
similar software.
Package: feed2fedi
Feed2Fedi is a Python bot that reads RSS feeds and automatically posts them to a Fediverse instance. It supports
instances running Mastodon, Takahe, and Pleroma.
Feed2Fedi has been inspired byfeed2toot.FeaturesFeed2Fedi posts toFediverseinstances.Feed2Fedi attaches a picture to the post if the feed item contains a “media_thumbnail”.Feed2Fedi can monitor multiple RSS/ATOM feeds at onceFeed2Fedi is fully open-source, so you don’t have to give an external service full access to your social media accountsThere is also someDocumentationfor Feed2Fedi.If you’d like to delete older posts from your Fediverse account look intoFedinesiaas a tool that might
work for you.DisclaimerThe developers of Feed2Fedi hold no liability for what you do with this script or what happens to you by using this
script. Abusing this scriptcanget you banned from Fediverse instances, so make sure to read up on proper usage
for each site.Setup and usageFeed2Fedi is available on PyPi.org and I recommend installing it with pipx using the command below:pipx install feed2fediOnce installed you can start it by issuing thefeed2fedicommand.During the first run it will prompt for some values and create aconfig.inifile with sensible starting settings.Then edit theconfig.inifile and add the RSS/ATOM feed in the feeds section and remove the sample feed. Detailed
information about config options is available in thedocumentation.Support Feed2FediA big thank you to the good folk over atCharChawho have allowed me to test Feed2Fedi against their
instance that is based onRebasedandSoapbox.There are a number of ways you can support Feed2Fedi:Create an issue with problems or ideas you have with/for Feed2FediYou canbuy me a coffee.You can send me small change in Monero to the address below:Monero donation address:84oC6aUX4yyRoEk6pMVVdZYZP4JGJZk4KKJq1p7n9ZqLPK8zH3W1vpFAnSxDQGbwmZAeXrE4w4ct6HqAXdM1K9LfCAxZx4uChangelogSee theChangelogfor any changes introduced with each version.LicenseFeed2Fedi is licensed under theGNU Affero General Public License v3.0
Package: feed2mail
Feed2MailMonitor a list of atom feeds and send an email digest with updates.Installationpip install feed2mailConfigStore a JSON file containing a single object with keys of atom feed URLs and an empty value (or specify an ISO8601 timestamp to set the oldest time you care about). Specify it at runtime with--config-path(or--config). On a successful run, this file will be updated with new timestamps.{"https://github.com/mattclement/feed2json/commits/master.atom":""}Mail is sent via SMTP with STARTTLS. Use the program arguments (--mail-<user|password|host|to>) or environment variables (FEED_MAIL_<USER|PASS|HOST|TO>).
Package: feed2maildir
Read RSS/Atom feeds in your favourite, maildir-compatible email client.RequirementsPython 3.2+feedparserpython-dateutilUsageJust runfeed2maildir, which should be placed in your $PATH by setup.py.
You will need a JSON configuration file at$HOME/.f2mrcthat looks like
this:{"db":"~/.f2mdb","maildir":"~/mail/feeds","feeds":{"Coding Horror":"http://feeds.feedburner.com/codinghorror/","Commit Strip":"http://www.commitstrip.com/en/feed/","XKCD":"http://xkcd.com/rss.xml","What If?":"http://what-if.xkcd.com/feed.atom","Dilbert":"http://feed.dilbert.com/dilbert/daily_strip?format=xml","BSDNow":"http://feeds.feedburner.com/BsdNowOgg"}}Note that the last element in a dict must not be followed by a comma, because
Python’s json.loads() says so.There are a bunch of command-line arguments to overwrite the config file:optional arguments:
    -h, --help  show this help message and exit
    -c <file>   override the config file location (~/.f2mrc)
    -d <file>   override the database file location (~/.f2mdb)
    -m <dir>    override the maildir location (None)
    -s          strip HTML from the feeds
    -S <prog>   strip HTML from the feeds using an external program
    -l          just write the links without the updateTo check for updates regularly, just toss it into cron to run once every hour
or so.Strip HTMLfeed2maildircan strip the HTML tags from the feed using a built-in HTML
stripper (option-s) or using an external program (option-S<prog>)In this last case, the program must read the HTML from it standard input and
return it stripped via the standard output.The<prog>can be the name of a program or it can be a full shell command.
In that case don’t forget to quote the full command.Here is an example of usingpandocto convert HTML to Markdownfeed2maildir -S 'pandoc --from html --to markdown_strict'
Package: feed2mb
Feed2mb updates a microblog account from a xml feed.
It’s a free alternative to services like Twitterfeed.To install feed2mb:install tweepy:http://github.com/joshthecoder/tweepyinstall feedparser:http://www.feedparser.org/Install it with: python setup.py install or download and instal it with easy-install: easy-install feed2mbRunning:You need to set your feed and your microblog account.You need to create a configuration file. You can see a sample with the commandfeed2mbx -p. It will looks like:[global]
interval = 00:05
consumer_key = consumer_key
consumer_secret = consumer_secret

[twitter]
url = http://example.com/rss
oauth_token = oauth_token
oauth_secret = oauth_secret
mode = title
items = 5
shortener = is.gd
service = twitterThe url is the url for the feed that you want to publish, mode can be ‘text’ (140 chars of your post text) or ‘title’ (your post title, with a link). The interval should be in the global section and is the interval in which the feed2mb will publish your last posts. In the sample, feed2mb will check the provided feed each hour. The shortener will let you choose the shortener service, and the options now are is.hd, migre.me and tinyurl. The default will be tinyurl.Since the oauthcapylpse, you can’t use http basic auth to update itens on twitter. You should register a application onhttp://dev.twitter.com/and get yout Oauth 1.0a access tokens.You can add how many sections for services as you like.Run it with the command feed2mb. It will update your microblog with your latest posts, in the interval that you have set.You can contact me atwalter@waltercruz.com. Have fun!
Package: feed2twitter
Feed2twitter updates a twitter account from a xml feed.
It’s a free alternative to services like Twitterfeed.To install feed2twitter:install python-twitter:http://code.google.com/p/python-twitter/install feedparser:http://www.feedparser.org/Install it with: python setup.py installRunning:You need to set your feed and your twitter account.You need to create a configuration file. You can see a sample with the commandfeed2twitter -p. It will looks like:[global]
url = http://example.com/rss
username = twitter_user
password = twitter_password
mode = text
interval = 01:00
items = 5The url is the url for the feed that you want to publish, mode can be ‘text’ (140 chars of your post text) or ‘title’ (your post title, with a link). The interval is the interval in which the feed2twitter will publish your last posts. In the sample, feed2twitter will check the provided feed each hour.Run it with the command feed2twitter. It will update your twitter with your latest posts, in the interval that you have set.Kudos to Gleicon da Silveira (http://zenmachine.wordpress.com/about/), that give me a idea of the code in a post of his blog.You can contact me atwalter@waltercruz.com. Have fun!
Package: feed2zinnia
Feed2zinnia is package allowing you to import from RSS or Atom feeds.InstallationInstall the package on your system:$ pip install feed2zinniaRegister the'zinnia_feed'in yourINSTALLED_APPS.Importing from a feedSimply run this command to start the importation on your blog.$ python manage.py feed2zinnia http://url.of/the/feedFor the options execute this.$ python manage.py help feed2zinnia
Package: feedancy
feedancyThe client is provided with async and sync adapters.To install the async version with all its dependencies use:pipinstallfeedancy[asyncio]To install the sync version with all its dependencies use:pipinstallfeedancy[sync]To install both versions with all their dependencies use:pipinstallfeedancy[asyncio,sync]Client instantiation examplefromfeedancyimportnew_client,Configurationfromfeedancy.lib.adapter.requestsimportRequestsAdapterclient=new_client(RequestsAdapter(),Configuration(host="<your openapi server URL>"))
Package: feedancy-client
feedancy-clientThe client is provided with async and sync adapters.To install the async version with all its dependencies use:pipinstallfeedancy-client[asyncio]To install the sync version with all its dependencies use:pipinstallfeedancy-client[sync]To install both versions with all their dependencies use:pipinstallfeedancy-client[asyncio,sync]Client instantiation examplefromfeedancy_clientimportnew_client,Configurationfromfeedancy_client.lib.adapter.requestsimportRequestsAdapterclient=new_client(RequestsAdapter(),Configuration(host="<your openapi server URL>"))
Package: feedbackgpt
FeedbackGPTFeedbackGPT is a simple-to-use mechanism for improving LLM responses based on human feedback. Currently, this library wraps LLMs provided by OpenAI and exposes a chat interface that is almost identical in usage to those provided by OpenAI.DocumentationComing soon!Getting StartedInstallationpip install feedbackgptExample UsageRun LocallyThis example stores and retrieves feedback locally. It is for demo/prototyping purposes and any provided feedback will be deleted between runs.fromfeedbackgptimportFeedbackGPT# Insert your own OpenAI KeyOPEN_AI_KEY="YOUR_OPEN_AI_KEY"# Initialize FeedbackGPTfeedback_gpt=FeedbackGPT(OPEN_AI_KEY)# Example message that is sent to LLMmessages=[{"role":"user","content":"17077 is a prime number"}]# Before feedback is added, the model responds incorrectlyresponse=feedback_gpt.chat(messages,temperature=0)response_message=response.choices[0].message.contentprint(response_message)# Outputs:# No, 17077 is not a prime number. It can be divided evenly by 7 and 2441.# Provide feedback on how FeedbackGPT can better respond next timefeedback="The correct answer is 17077 IS a prime number. It is NOT divisible by either 7 or 2441."feedback_gpt.feedback(messages,response_message,feedback)# After feedback is added, the FeedbackGPT responds to the message correctlyresponse=feedback_gpt.chat(messages,temperature=0)response_message=response.choices[0].message.contentprint(response_message)# Outputs:# Yes, 17077 is a prime number.Run Persistent Feedback MemoryFeedbackGPT integrates with Pinecone in order to store feedback that persists across sessions. In order to leverage persistent feedback, you'll first need tocreate a Pinecone accountand retrieve your API Key and environment. You can then initialize FeedbackGPT as follows:fromfeedbackgptimportFeedbackGPT# Insert your own OpenAI KeyOPEN_AI_KEY="YOUR_OPEN_AI_KEY"# Specify Pinecone API Key and Environmentpinecone_options={"pineone_key":"YOUR_PINECONE_API_KEY","pinecone_environment":"YOUR_PINECONE_ENVIRONMENT"}# Initialize FeedbackGPT with Pinecone Optionsfeedback_gpt=FeedbackGPT(OPEN_AI_KEY,pinecone_options=pinecone_options)# Example message that is sent to LLMmessages=[{"role":"user","content":"17077 is a prime number"}]# Before feedback is added, the model responds incorrectlyresponse=feedback_gpt.chat(messages,temperature=0)response_message=response.choices[0].message.contentprint(response_message)# Outputs:# No, 17077 is not a prime number. It can be divided evenly by 7 and 2441.# Provide feedback on how FeedbackGPT can better respond next timefeedback="The correct answer is 17077 IS a prime number. It is NOT divisible by either 7 or 2441."feedback_gpt.feedback(messages,response_message,feedback)# After feedback is added, the FeedbackGPT responds to the message correctly# NOTE: The pincone index may take a few seconds to update. So, feedback may not be immediately reflected.response=feedback_gpt.chat(messages,temperature=0)response_message=response.choices[0].message.contentprint(response_message)# Outputs:# Yes, 17077 is a prime number.