Saravanan666/pypi-org huggingface dataset:
Package: fest
Facebook Event State TransferSync public facebook page events to Google Calendar.PrerequisitesBefore beginning you will need to create and configure afacebook appand use it to acquire a page access token for Graph API.You will also need to set up a Googleservice accountto acquire a credentials file to authenticate with Google APIs.InstallationInstallfestusing pip:pipinstallfestBasic UseUse clients for facebook's Graph API and Google's Calendar API to createFacebookPageandGoogelCalendarobjects, then synchronize:importfacebookfromgoogleapiclientimportdiscoveryimportfest# Connect to Graph API & Calendar APIgraphapi=facebook.GraphAPI('<facebook-page-token>')calendarapi=discovery.build('calendar','v3',cache_discovery=False)# Get Page/Calendar objectspage=fest.FacebookPage(graphapi,'<facebook-page-name-or-id>')gcal=fest.GoogleCalendar(calendarapi,'<google-calendar-id>')# Sync Calendar <= Pagereq=gcal.sync(page,time_filter='upcoming')res=req.execute()DeploymentSeveral methods of deployment are provided.AWSA pair ofterraformmodulesmodule are provided to deploy this tool as a Lambda function on AWS and invoke it on a cron using CloudWatch.# WARNING Be extremely cautious when using secret versions in terraform# NEVER store secrets in plaintext and encrypt your remote state# I recommend applying the secret versions in a separate workspace with no remote backend,# or curating them manually in the console or AWS CLI.resource"aws_secretsmanager_secret_version""facebook"{secret_id=module.facebook_gcal_sync.facebook_secret.idsecret_string="my-facebook-app-token"}resource"aws_secretsmanager_secret_version""google"{secret_id=module.facebook_gcal_sync.google_secret.idsecret_string=file("./path/to/my/svc/acct/creds.json")}modulefacebook_gcal_sync{source="amancevice/facebook-gcal-sync/aws"version="~> 1.0"facebook_page_id="<facebook-page-id>"facebook_secret_name="facebook/my-app"google_calendar_id="<google-calendar-id>"google_secret_name="google/my-svc-acct"}HerokuAterraform modulemodule is provided to deploy this tool as a Heroku application.modulefacebook_gcal_sync{source="amancevice/facebook-gcal-sync/heroku"app_name="<unique-app-name>"facebook_page_id="<facebook-page-id>"google_calendar_id="<google-calendar-id>"google_credentials_file="<path-to-google-service-credentials>"facebook_page_token="<facebook-page-access-token>"}Alternatively, deploy with one click:
Package: festo-edcon
festo-edconfesto-edconis a python package which bundles modules to facilitate operation of Festo electric drives (currently via EtherNet/IP and Modbus) using PROFIDRIVE. Documentation can be foundhereand in theexamplesdirectoryInstallationReleaseThe latest release is available in the public PyPi repo.
Install via pip:pip install festo-edconFrom git repoYou can also install directly from the git repo.Clone the repositorygit clone <git-url> <destination>Change into the clone directorycd <destination>Install via pippip install .UsageMotionHandler-edrive.motion.MotionHandlerThe motion module which aims to replicate the function set of the Siemens SinaPos function block (both using telegram 111).ComModbus-edrive.com_modbus.ComModbusThe Modbus/TCP communication driver used for transmitting modbus traffic between host and drive.ComEthernetip-edrive.com_modbus.ComEthernetipThe EtherNet/IP communication driver used for transmitting EtherNet/IP traffic between host and drive.Profidrive-profidriveContains telegram definitions that are currently supported by EDrives running PROFIDRIVE via Modbus/TCP and EtherNet/IP:Telegram 1Telegram 9Telegram 102Telegram 111CLI-clifesto-edconis the main entry point to the CLI.
It supports various subcommands which execute some basic functions.For more information use the help flag  (festo-edcon -h).Subcommandspositionis a subcommand to execute very basic positioning tasks.pnuis a subcommnad to read or write PNUs.parameter-set-loadis a subcommand to load a complete parameter set to a drive.tg1is a subcommnad to run a test sequence using telegram 1.tg9is a subcommnad to run a test sequence using telegram 9.tg102is a subcommnad to run a test sequence using telegram 102.tg111is a subcommnad to run a test sequence using telegram 111.
Package: festpay-sdk
FestPay payment page SDKThis is a set of libraries in the Python language to ease integration of your service
with the Payment Page.Please note that for correct SDK operating you must have at least Python 3.5.Payment flowInstallationInstall with pippipinstallfestpay-sdkGet URL for paymentfrompayment_page_sdk.gateimportGatefrompayment_page_sdk.paymentimportPaymentgate=Gate('secret')payment=Payment('402')payment.payment_id='some payment id'payment.payment_amount=1001payment.payment_currency='USD'payment_url=gate.get_purchase_payment_page_url(payment)payment_urlhere is the signed URL.Handle callback from FestPayYou'll need to autoload this code in order to handle notifications:frompayment_page_sdk.gateimportGategate=Gate('secret')callback=gate.handle_callback(data)datais the JSON data received from payment system;callbackis the Callback object describing properties received from payment system;callbackimplements these methods:callback.get_payment_status()Get payment status.callback.get_payment()Get all payment data.callback.get_payment_id()Get payment ID in your system.
Package: festung
[![Build Status](https://travis-ci.org/figome/python-festung.svg?branch=master)][buildstatus]
[![Version](https://img.shields.io/pypi/v/festung.svg?style=flat-square)][version]Festung DBAPI for PythonThis library provides a [Database API v2.0] to [Festung].[build status]:https://travis-ci.org/figome/python-festung[version]:https://pypi.python.org/pypi/festung[Database API v2.0]:https://www.python.org/dev/peps/pep-0249/[Festung]:https://github.com/figome/festung
Package: fetchabi
fetch abiA quick python script used to fetch an ethereum smart contracts ABI, if it is available on etherscan.How to useSimply import the fetch-abi function and use the contract address as an argument. Target smart contract must be verified thus have its ABI available on etherscan.from fetchabi import *
abi = fetch_abi("0xe11c90922BB5d6fe661B44039DA64c04b5B153E9")
print(abi)Gives{
    "abi": [
        {
            "inputs": [],
            "stateMutability": "nonpayable",
            "type": "constructor"
        },
        {
            "stateMutability": "payable",
            "type": "fallback"
        },
        {
            "inputs": [],
            "name": "implementation",
            "outputs": [
                {
                    "internalType": "address",
                    "name": "",
                    "type": "address"
                }
            ],
            "stateMutability": "view",
            "type": "function"
        },
        {
            "stateMutability": "payable",
            "type": "receive"
        }
    ]
}
Package: fetchai-babble
BabbleA simple python library for interacting with the Fetch.ai messaging service (called Memorandum)Quick ExamplefrombabbleimportClient,Identity# create a set of agents with random identitiesclient1=Client('agent1.....',Identity.generate())client2=Client('agent1.....',Identity.generate())# send a message from one client to anotherclient1.send(client2.delegate_address,"why hello there")# receive the messages from the other clientformsginclient2.receive():print(msg.text)DevelopingInstall dependenciespoetry installRun examplespoetry run ./examples/simple-e2e.pyRun testspoetry run pytestRun formatterpoetry run black .
Package: fetchai-ledger-api
Ledger Python APIPython library code for interacting with the Fetch.ai ledger platform.Installation$ pip3 -U fetchai-ledger-apiExamplesThe project is a component of a larger ecosystem of projects for developing on the Fetch.ai's platform. Please check out some of the links below:Developer PortalRepo ExamplesDeveloping with the libraryMake sure that the library is uninstalled from the system (or use a virtualenv) then use the following commnad:$ python3 setup.py developRunning the unit testsThe project uses pytest for running the unit tests. Simple run the following command to exectute all the of tests$ pytestLicenseThis application is licensed under the Apache software license (see LICENSE file). Unless required by
applicable law or agreed to in writing, software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.Fetch.AI makes no representation or guarantee that this software (including any third-party libraries)
will perform as intended or will be free of errors, bugs or faulty code. The software may fail which
could completely or partially limit functionality or compromise computer systems. If you use or
implement the ledger, you do so at your own risk. In no event will Fetch.ai be liable to any party
for any damages whatsoever, even if it had been advised of the possibility of damage.
Package: fetcharoo
fetcharoofetcharoo is a Python library for downloading PDF files from a webpage. It provides support for specifying recursion depth and offers the option to merge downloaded PDFs into a single file.FeaturesDownload PDF files from a specified webpage.Specify recursion depth to control how many levels of links to follow when searching for PDFs.Choose to merge downloaded PDFs into a single file or store them as separate files.Simple and easy-to-use Python interface.RequirementsPython 3.10 or higherThird-party libraries:requests,PyMuPDFInstallationUsing pipYou can install fetcharoo using pip:pipinstallfetcharooUsing PoetryIf you are using Poetry to manage your project, you can install fetcharoo as a dependency:poetryaddfetcharooIf you don't have Poetry installed, you can install it by following the instructions on theofficial Poetry website.Getting StartedTo get started with fetcharoo, follow these steps:Install the library using pip or Poetry (see the Installation section above).Import thedownload_pdfs_from_webpagefunction from thefetcharoomodule.Use the function to download PDFs from a webpage, specifying the URL, recursion depth, mode (merge or separate), and output directory.Here's a basic example:fromfetcharooimportdownload_pdfs_from_webpage# Download PDFs from a webpage and merge them into a single filedownload_pdfs_from_webpage(url='https://example.com',recursion_depth=1,mode='merge',output_dir='output')Advanced Usagefetcharoo provides additional options for customizing the behavior of the library:To download PDFs and store them as separate files, set themodeparameter toseparate:download_pdfs_from_webpage(url='https://example.com',recursion_depth=1,mode='separate',output_dir='output')To control the recursion depth, adjust therecursion_depthparameter. For example, to follow links up to two levels deep, setrecursion_depth=2.ContributingContributions to fetcharoo are welcome! If you'd like to contribute, please follow these steps:Fork the repository on GitHub.Create a branch for your changes.Make your changes and commit them to your branch.Submit a pull request with your changes.We appreciate any contributions, whether it's fixing bugs, adding new features, or improving documentation.SupportIf you encounter any issues or have questions about using fetcharoo, please open an issue on the GitHub repository. We'll do our best to assist you.ChangelogPlease refer to the CHANGELOG.md file for a summary of changes in each release.Authors and Acknowledgmentsfetcharoo was developed by Mark Lifson. I'd like to thank all contributors and users for their support.LicenseThis project is licensed under the MIT License. See the LICENSE file for details. The MIT License allows for broad permissions, including use, modification, distribution, and sublicensing of the software.Update - May 7th, 2023Added new features to fetcharoo:merge_pdfsfunction to merge multiple PDFs into a single file
Package: fetchas
fetchasFetch URLs as search engine robot ("fetch as")Show content or headers of a given URL with the HTTP "User-Agent" header
set to a search engine robot. Defaults to Googlebot.Online help:usage: fetchas [-h] [-r] [-I] [-a ROBOT_AGENT] url

Fetch URLs as search engine robot.

positional arguments:
  url

optional arguments:
  -h, --help            show this help message and exit
  -r, --follow-redirects
                        Follow redirects, if any occur
  -I, --headers         Show only response headers
  -a ROBOT_AGENT, --robot-agent ROBOT_AGENT
                        ROBOT_AGENT should be one of the following values
                        (default: 'googlebot'): default, desktop, googlebot,
                        mobile, googlebot-mobile, googlebot2, bingbot,
                        bingbot-mobile, browser, iphone, pixel
Package: fetch-bduss-baiduid
fetch-bduss-baiduid简单方便 BDUSS 和 BAIDUIDInstallationNot available yetpip install fetch-bduss-baiduidTo validate installationpython -c "import fetch_bduss_id; print(fetch_bduss_id.__version__)"
# 0.0.1 或当时版本号Usage先用Chrome浏览器登录 baidu。python -m fetch_bduss_id如果成功了的话，BDUSS存在系统剪贴板里。ctrl-v调用。程序里调用：import pyperclip
from fetch_bduss_id import fetch_bduss_id

bduss, baiduid = fetch_bduss_id()
print(bduss, baiduid)
# 输出： 你的 BDUSS 和 BAIDUID
# 并可从系统剪贴板里拷出 BDUSSTODO浏览器没有百度的cookies时，利用chromedriver登入获取 BDUSS。Firefox浏览器
Package: fetchcode
FetchCode is a library to reliably fetch code via HTTP, FTP and version control
systems. It can work using plain HTTP and FTP URLs, as well asPackage URLsand version control (VCS) URLs
as used in Python pip and as specified inSPDX Package Download LocationHomepage and support:https://github.com/nexB/fetchcodeWhy FetchCode?It is surprisingly difficult to have a simple API to consistently fetch code
from package repositories, version control repositories and APIs: each site
and each package manager has its own unique and peculiar ways. FetchCode goal
is to abstract all these details and make it easy to fetch things reliably.Development installationClone the repo:git clone https://github.com/nexB/fetchcodeThen install all the requirements using:configure --devRunning testsTo run test suite use:pytest -vvsUsageFetch a code archive and get afetchcode.fetch.Responseobject back:>>> from fetchcode import fetch
>>> f = fetch('https://github.com/nexB/fetchcode/archive/ab65b2e645c889887227ea49eb3332d885fd0a54.zip')
>>> f.location
'/tmp/tmp_cm02xsg'
>>> f.content_type
'application/zip'
>>> f.url
'https://github.com/nexB/fetchcode/archive/ab65b2e645c889887227ea49eb3332d885fd0a54.zip'Fetch some package metadata and get afetchcode.packagedcode_models.Packageobject back:>>> from fetchcode import package
>>> list(package.info('pkg:rubygems/files'))
[Package(type='rubygems', namespace=None, name='files', version=None)]LicenseSPDX-License-Identifier: Apache-2.0Copyright (c) nexB Inc. and others.
Package: fetchcommandwrapper
Aboutfetchcommandwrappercombines
download toolaria2with variableGENTOO_MIRRORSto speed up distfile downloads ofPortageby downloading from multiple mirrors at the same time.fetchcommandwrapperintegrates with Portage
through variablesFETCHCOMMAND(andRESUMECOMMAND), hence the name.InstallationSystem-wide installation in Gentoo#sudoemerge-avapp-portage/fetchcommandwrapperYou can then append linesource /usr/share/fetchcommandwrapper/make.confto file/etc/portage/make.confto ease integration with Portage.Development from a Git clone#pipinstall--user--editable.
Package: fetch-content-providers-and-resolvers
Finds content providers/resolvers on Android devicesSome things you have to know:You might need root accessI have only tested it against BlueStacks / Windows 10 / Python 3.9.$pipinstallfetch-content-providers-and-resolversfromfetch_content_providers_and_resolversimportContentProviderResolverFetcheradb_path="C:\\Users\\Gamer\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe"deviceserial="localhost:5875"cpr=ContentProviderResolverFetcher(adb_path=adb_path,deviceserial=deviceserial,folder="data/",# As far as I know, this folder exists on any Android device, so you don't have to change anythingfolder_for_temp_files=r"F:\ctestprov",# Folder to store the temp dex filesripgrep_path="rg.exe",# Download RipGrep https://github.com/BurntSushi/ripgrep/releases/download/13.0.0/ripgrep-13.0.0-x86_64-pc-windows-gnu.zip)cpr.connect_to_adb()cpr.get_all_files()# Find all dex files / If you want to limit the packages to scan, you can modify cpr.dfcpr.pull_files()# Copy the files to the hard drivecpr.extract_content_providers()cpr.check_results(exit_keys="ctrl+x",print_output=True,timeout=None,)# If you press ctrl+x you can kill a query which got stuck, you can also set a timeout for each querydf=cpr.get_all_results_checked()# returns checked resultsdf1=cpr.get_all_results()# returns unchecked results
Package: fetchctg
fetchctgThe clinicaltrials.gov is a wonderful resource to explore completed, ongoing and planned clinical trials. However using the APIs can be a bit tedious, especially when there is high level of heretogenity is involved in the results published on the website.In order to help with this issue., this fetch-ctg library contains helper functions to fetch formatted safety data from the clinicaltrials.gov API.Free software: MIT licenseTutorialHow to install$pipinstallfetchctgBasic Usageimportctgfetchasctf# Get serious adverse events from trial id NCT01859988df=get_sae("NCT01859988")# Save non-serious adverse events to excel file in local directorysave_oae("NCT01859988")# Get non-serious adverse events from trial id NCT01859988df=get_oae("NCT01859988")# Save serious adverse events to excel file in local directorysave_sae("NCT01859988")# Get all (serious and non-serious) adverse events from trial id NCT01859988df=get_all_ae("NCT01859988")# Save all (serious and non-serious) adverse events to excel file in local directorysave_all_ae("NCT01859988")
Package: fetch-data
fetch-dataDownload remote data (HTTP, FTP, SFTP) and store locally for data pipeline.This package was created out of the frustration that it is very difficult to download data easily withintake.fetch-datais a mash-up offsspecandpoochmaking it easy to download multiple files and store all the info, making it good for data pipeline applications.InstallationCurrently, this package ispip install git+https://github.com/lukegre/fetch-data.gitBasic usageUse the download function directly:flist=fd.download(url)The file will be downloaded to the current directory and will be populated with a readme file, cached file list, and logging information.Using with YAML catalogsUse the catalog YAML entryimportfetch_dataasfdcat=fd.read_catalog(cat_fname)flist=fd.download(**cat['entry_name'])The catalog should be structured as shown below:entry_name:url:remote path to file/s. Can contain *dest:where the file/s will be stored - can have optional {} placeholders that will be replacedmeta:# this will be written to the README filedoi:url to the data sourcedescription:info about the datacitation:how to cite this datasetplaceholder:value# optional will replace values in destProject based on thecookiecutter science project template.
Package: fetch-deepl
fetch-deeplFetch translation text from a deepl-fastapi API.Install itpipinstallfetch-deepl# pip install git+https://github.com/ffreemt/fetch-deepl# poetry add git+https://github.com/ffreemt/fetch-deepl# git clone https://github.com/ffreemt/fetch-deepl && cd fetch-deeplUse itfromfetch_deeplimportfetch_deeplprint(fetch_deepl("Tell me and I forget. Teach me and I remember. Involve me and I learn."))# 告诉我，我就忘了。教导我，我就记住。让我参与，我就学print(fetch_deepl("书山有路勤为径"))# There is a path to the mountain of books and diligence is the pathprint(fetch_deepl("There is a path to the mountain of books and diligence is the path",from_lang="en",to_lang="de"))# Es gibt einen Weg zum Berg der Bücher und Fleiß ist der Wegprint(fetch_deepl("书山有路勤为径",from_lang="zh",to_lang="de"))# Es gibt einen Weg durch die Berge des Lernens und des FleißesSupported languages can be obtained from deepl's homepage, as of today:frompprintimportpprintfromfetch_deeplimportlang_dictpprint(lang_dict){'bg':'Bulgarian','cs':'Czech','da':'Danish','de':'German','el':'Greek','en':'English','es':'Spanish','et':'Estonian','fi':'Finnish','fr':'French','hu':'Hungarian','id':'Indonesian','it':'Italian','ja':'Japanese','lt':'Lithuanian','lv':'Latvian','pl':'Polish','pt':'Portuguese','ro':'Romanian','ru':'Russian','sk':'Slovak','sl':'Slovenian','sv':'Swedish','tr':'Turkish','zh':'Chinese (simpl.)'}
Package: fetch-embed
fetch-embed[]fetch multilingual embed from embed.ttw.workers.devInstall itpipinstall-Ufetch-embedUse itMake use of the helper functionembed_textendpointsfor two models (dim-52 and dim-768)via cloudflare:https://embed.ttw.workers.dev/embed/andhttps://embed.ttw.workers.dev/embed_la/In case you cannot accessembed.ttw.workers.dev, you may usettw.hopto.org(hosted by noip.com) instead.Swagger UI: Self-docs for these endpointshttps://embed.ttw.workers.dev/docshttps://ttw.hopto.org/docsModel 1: multilingual, dim-512The default endpoint ishttps://embed.ttw.workers.dev/embed/fromfetch_embed.embed_textimportembed_textres=embed_text(["test a","测试"])print(res.shape)# (2, 512)Model 2: language agnostic, dim-768endpoint:https://embed.ttw.workers.dev/embed_la/fromfetch_embed.embed_textimportembed_textendpoint="https://embed.ttw.workers.dev/embed_la/"res=embed_text(["test a","测试"],endpoint=endpoint)print(res.shape)# (2, 768)Consult theembed_text.__doc__(e.g.print(embed_text.__doc__)) or its source code for more details.Access the API directlyfromfetch_embedimportfetch_embedres=fetch_embed("test me")print(res.shape)# (1, 512)print(fetch_embed(["test me","测试123"]).shape# (2, 512)# to turn off live progress barres=fetch_embed("test me",livepbar=False)# brief docshelp(fetch_embed)# fetch_embed(texts:Union[str, List[str]], endpoint:str='http://ttw.hopto.org/embed/', livepbar:bool=True) -> numpy.ndarrayFetchembedfromendpoint.Plug inendpoint = "https://embed.ttw.workers.dev/embed_la/"for Model 2, e.g.,importnumpyasnpfromfetch_embedimportfetch_embedendpoint="https://embed.ttw.workers.dev/embed_la/"res=fetch_embed("test me",endpoint=endpoint)print(np.array(res).shape)# (1, 768)
Package: fetch-ethercodes
SummaryFetch and generate ethercodes data for arpwatch.DescriptionFetch current IEEE MA-L Assignments file (oui.csv) from IEEE.org,
and generate ethercodes.dat for arpwatch consumption.Fetch oui.csv only, if the timestamp is newer (unless --force is given).
Similar, generate ethercodes.dat only, if the timestamps don't match
(again, unless --force is given). Use option --keep to (re)generate
ethercodes.dat from an existing oui.csv.NotesThe timestamps of oui.csv fluctuate in a 2 seconds range(!). Therefore
compensate the fluctuation by taking a deltat tolerance factor into
account.UsageUsage: fetch-ethercodes.py [-hVvfkt][-T sec][-O ouifile][-o outfile][-p spec]
       -h, --help           this message
       -V, --version        print version and exit
       -v, --verbose        verbose mode (cumulative)
       -f, --force          force operation
       -k, --keep           keep existing http://standards-oui.ieee.org/oui/oui.csv
       -t, --timestamp      print timestamp
       -T, --deltat sec     tolerance in timestamp comparison
                            (default: 2.5 sec.)
       -O, --ouifile file   IEEE.org host
                            (default: http://standards-oui.ieee.org/oui/oui.csv)
       -o, --outfile file   arpwatch ethercodes
                            (default: ethercodes.dat)
       -p, --patch spec     patch specfile with updated timestampExample run$ fetch-ethercodes.py -v
check http://standards-oui.ieee.org/oui/oui.csv
oui file size: 2264884
oui file date: Wed, 26 Sep 2018 08:06:13 GMT
no local file oui.csv found
fetch http://standards-oui.ieee.org/oui/oui.csv
no local file ethercodes.dat found
parse oui.csv
value 0:1:c8 exists already: "THOMAS CONRAD CORP.", "CONRAD CORP."
value 8:0:30 exists already: "NETWORK RESEARCH CORPORATION", "ROYAL MELBOURNE INST OF TECH"
value 8:0:30 exists already: "NETWORK RESEARCH CORPORATION", "CERN"
generate ethercodes.dat with 25433 entries
successful
timestamp: 20180926_080613An additional toolquery-ethercodes.pyis provided, that allows to query the
ethercodes.dat database.