Saravanan666/pypi-org huggingface dataset:
Package: fbref2pandas
FBREF2PANDAS - Export FBRef data to Pandas DataframeA scraper that directly gives football(not soccer) data from FBRef website directly to Pandas dataframe. Major teams and leagues supported.Project RepositoryContribute to the Project so that everyone can benefit from it.Disclaimer : This package in no way tries to take away from the work of FBRef.com I love that website and just needed a package that makes my life easierTo install the package(it just requirespandas!!) :pip install fbref2pandasAfter installation, create aMatchLogsLinkobject by providing it the following arguments(instrformat) :team_id : The identifier of the team. Generally, as I have noticed, fbref uses a particularidfor each of the team. It is a 8 character string that uniquely identifies a football team. See this table foridof some popular teams.Team IDTeam Name'206d90db''Barcelona''53a2f082''Real-Madrid''db3b9613''Atletico-Madrid''e31d1cd9''Real-Sociedad''2a8183b3''Villarreal'Just copy theteam_idand pass as the first argument.year: Theyearfor which the data is required. Theyearis in the format2022-2023(for 2022-23 season). Pass this as second argument in theMatchLogsLinkobject.comp_id: Thecomp_idis also one of the variables that fbref maintains internally, as far as I can deduce. Thecomp_idis of the formcXXX, and can be found from the fbref website. See this table below for some commoncomp_idComp IDCompetition Name'c8''Champions-League''c12''La-Liga''c19''Europa-League''c122''UEFA-Super-Cup''c569''Copa-del-Rey''c646''Supercopa-de-Espana''c882''Europa-Conference-League'log_type: I love how many stats are available in the fbref website. These are just awesome for your next project. Thelog_typecould be any of these values:Log Type'scores_and_fixtures''shooting''goalkeeping''passing''pass_types''goal_and_shot_creation''defensive_actions''possession''miscellaneous_stats'After passing these 4 parameters to theMatchLogsLinkobject, most of the task is done. Just create a newDataobject, and pass the aboveMatchLogsLinkobject. An example of this would be :link = MatchLogsLink('206d90db', '2022-2023', 'c12', 'shooting')
# print(link)  

data = Data(link)If the link is correct, there shouldn't be a problem. Now, to get the data as aDataFrameobject, just call the functionfbref2pandas()of theDataobject. The functions returns the data as a pandasDataframe. If the link is incorrect, an exception is raised. Just double check if the data from the table above. Enjoy the data.To get the data asDataFrame:df = data.fbref2pandas()Note : I comply with all the rules given for the data use in thesports reference website, and I believe that it is in fair use. Not many requests will be taken from this package.Note : Help would be really appreciated to expand this package. Create a PR and add whatever you could scrape from links of FBRef. Great PRs will be merged on small notices.
Package: fbrefdata
FBrefDatais a scraper of football data fromFBref. The library is forked fromSoccerDataby@probberechts.Why FBrefData?WhileSoccerDatadoes a great job at scraping data fromFBref, it has some limitations
that I wanted to address. These limitations are, likely, due to the fact that it was originally built to scrape and
combine data from different sources, which is why this library focuses onFBrefonly.Some of the changes I wanted to introduce inFBrefDataare:I wanted to store the dataframes that are obtained from scraping instead of storing the HTML pages themselves, thus
reducing the amount of disk space required to cache the data;I wanted to support all competitions for whichFBrefprovides advance stats data, including the ones in the
Southern emisphere and the Major League Soccer, and not just the top five European leagues;I wanted to remove the leagues selected by default, thus giving the users full control of which leagues they want to
scrape.FBrefDataforked from version 1.4.1 ofSoccerDataand will start its versioning from 0.1.0. The improvements
listed above, along with other minor changes, will be officially available starting from version 1.0.0. Nonetheless,
I will still merge improvements made to the FBref module of SoccerData for as long as it's possible.InstallationpipinstallfbrefdataUsageimportfbrefdataasfd# Create scraper class instance for the 2018-2019 Premier Leaguefbref=fd.FBref('ENG-Premier League','2018-2019')# Fetch dataframesschedule=fbref.read_schedule()Supported leaguesAs of now,FBrefDatasupports the following leagues:Argentina: Primera DivisiónBelgium: Pro LeagueBrazil: Série AEngland: Premier League, EFL ChampionshipFrance: Ligue 1, Ligue 2Germany: Fußball-Bundesliga, 2. Fußball-BundesligaItaly: Serie A, Serie BMexico: Liga MXNetherlands: EredivisiePortugal: Primeira LigaSpain: La Liga, Segunda DivisiónUnited States/Canada: Major League SoccerUEFA: Champions League, Europa League, Europa Conference LeagueCONMEBOL: Copa LibertadoresIfFBrefstarted providing advanced stats for leagues that aren't supported yet, please open an issue.Disclaimer:As this library relies on web scraping, any changes to the scraped websites will break the package. Hence,
do not expect that all code will work all the time. If you spot any bugs, then pleasefork it and start a pull request.
Package: fbro
fbrofbrois an interactive console file browser for AWS S3.InstallationpipinstallfbroPlease note that this tool will not work on Windows, because Windows does not support curses.UsageYou can start it withfbro. Then a list of all your AWS S3 buckets will be
shown. You can use the arrow keys (↑/↓) and select one
by going to the→. You can go back by pressing←.s3://martin-thoma/
- enzado/
- correlation.jpg
- testfile.txt
Package: fBrowser
fBrowser | Quick-start Your Selenium ProjectThis library was created in order to help users quick-start their webscraping project. It includes several useful functions including a browser handler, new tab functionality, and more.Installation$ pip3 install fBrowserUsageBrowser HandlerYou can decorate your function with a browserHandler. This will create the driver and properly quit it if an exception occurs or when the program ends.fromtimeimportsleepfromfBrowserimportbrowserHandler@browserHandler()defmain(driver):driver.get('https://www.google.com')sleep(5)main()You can also pass in these optional arguments:@browserHandler(path='',firefox=False,proxy='<host/ip>:<port>',headless=True,implicitWaitTime=60,incognito=True)New TabRun a function in a new tab of Chrome. It will automatically close and switch contexts when it finishes executing.You can use thenewTabfunction to decorate your selenium functions. Doing so will execute your function in a new tab of the browser. Your decorated function must have its first parameter for the webdriver.fromtimeimportsleepfromfBrowserimportbrowserHandler,newTab@newTabdefloadTheVerge(driver):driver.get('https://www.theverge.com')sleep(2)@browserHandler()defmain(driver):driver.get('https://www.google.com')sleep(2)loadTheVerge(driver)main()LoginUse this helper function to login into a site. Simply pass in your email / username and your password. (This function assumes that the input tags in the form have attributes @type=username, @type=email, or @type=password).importfBrowserfromfBrowserimportbrowserHandler@browserHandler()defmain(driver):driver.get('https://stackoverflow.com/users/login')fBrowser.login(driver,email='testing@gmail.com',password='abc123')main()Fill InputsQuickly fill multiple inputs with either a single value or multiple values.importfBrowserfromfBrowserimportbrowserHandler@browserHandler()defmain(driver):driver.get('example.com')# A list of xpaths to the inputsxpaths=['//*[@name="foo"]','//*[@name="bar"]','//@name="fooBar"']# Fill with multiple valuesfBrowser.fillInputs(driver,xpaths,['value1','value2','value3'])# Or pass in one valuefBrowser.fillInputs(driver,xpaths,'hello world')main()Human TypeDon't want to get flagged as a bot? Fill your inputs using a human-like typing speed.importfBrowserfromtimeimportsleepfromfBrowserimportbrowserHandler@browserHandler()defmain(driver):driver.get('https://www.google.com')chatInput=driver.find_element_by_xpath('//*[@name="q"]')# Will input the string at a human-like typing speedfBrowser.humanType(driver,chatInput,'Hello world!')sleep(5)main()ContributingFork it (https://github.com/FastestMolasses/fBrowser/fork)Create your feature branch (git checkout -b feature/fooBar)Commit your changes (git commit -am 'Add some fooBar')Push to the branch (git push origin feature/fooBar)Create a new Pull Request
Package: fbs-autobook-at-hkust
FBS AutoBook @ HKUSTFBS AutoBook @ HKUST is a Python & Streamlit app that automates booking facilities through the HKUST Facility Booking
System (FBS).PrerequisitesPythonI use Python 3.11 for development, but I guess Python 3.10 / 3.9 should work fine too.Chrome BrowserFor automate logging in to FBS (since there are some restrictions on the login process). I use Chrome 116.0, and I
think any Chrome version should work.UsageInstall the package through pip:pip install fbs-autobook-at-hkustAfter successful installation, run the app with the following command:fbs-autobook-at-hkustYou shall see your browser window open with the app running.OverviewThe app has the following pages:Welcome PageUsers can login with their ITSC credentials or a saved token. A disclaimer highlights that use of the app is at the
user's own risk and may contradict HKUST's booking requirements.Choose Facilities, Timeslot Date & Time RangeUsers select which facilities to book, along with the desired booking date and time range. The app retrieves all
available timeslots matching the criteria for future booking attempts.Review and ConfirmA summary of the selected facilities and timeslots is shown for the user to review and confirm before proceeding. If FBS
is open, the app shows the actual available timeslots. Otherwise, it displays the user-specified date and time range.BookThe app automatically attempts to book the selected timeslots when they become available. Unavailability is often due to
FBS closure or the 7-day advance booking limit. The result of each booking attempt is displayed as a success or failure
message.FeaturesAutomated booking of multiple facilities when timeslots open upLogin with ITSC credentials / tokenCustom selection of facilities, timeslot date and timeslot time rangeReview & Confirm the facilities before bookingStatus updates during booking processMessages on successful / fail bookings with reasonsTech StackPythonStreamlit for app UIDisclaimerThis app contradicts HKUST's requirement for manual booking. Use at your own risk! The developer is not responsible for
any consequences.
Package: fbscraper
# fbscraperScrape all images and videos from a facebook profile.Requirements:- python3.4+- A backend for `pyvirtualdisplay` such as `xvfb` or `xserver-xephyr` (sudoapt-get install xvfb xserver-xephyr)- Chrome webdriver(https://sites.google.com/a/chromium.org/chromedriver/downloads)Setup:`sudo python3 setup.py install`
Package: fbsd_gpio
Requirements:Python 2.7 or 3.4cffiHow to installPython package on FreeBSD 11 have problem when using python source that needed to compile thing, so the easiest way is to use the binary packages uploaded to pypi:pipinstall--only-binaryfreebsd-11fbsd_gpioHow to useThe fbsd_gpio module expose two classes, GpioController and GpioPinUse gpio controller unit 0 (/dev/gpioc0) and list all the pins name:fromfbsd_gpioimportGpioControllergpioc=GpioController(0)forpiningpioc:print(pin)Set pin 127 to output and logical value 1fromfbsd_gpioimportGpioController,GPIO_VALUE_HIGHgpioc=GpioController(0)gpioc.pin_output(127)# The two following lines are equivalentgpioc.pin_set(127,GPIO_VALUE_HIGH)gpioc.pin_high(127)Alternativelly you can use the GpioPin class:fromfbsd_gpioimportGpioPin,GPIO_VALUE_HIGHpin=GpioPin(127,unit=0)pin.ouput=True# The following lines are equivalentpin.set(GPIO_VALUE_HIGH)pin.high()pin(GPIO_VALUE_HIGH)Or use the name of the pin directly:fromfbsd_gpioimportGpioController,GPIO_VALUE_HIGHgpioc=GpioController(0)gpioc.gpioled0.output=True# The three following lines are equivalentgpioc.gpioled.set(GPIO_VALUE_HIGH)gpioc.gpioled0.high()gpioc.gpioled0(GPIO_VALUE_HIGH)Get the value of a pin:fromfbsd_gpioimportGpioPinpin=GpioPin(128,unit=0)ifpin.input:print('Pin is input mode')elseprint('Pin is output mode')# The two following lines are equivalentvalue=pin.get()value=pin()Toggle the value of a pin:fromfbsd_gpioimportGpioPinpin=GpioPin(128,unit=0)pin.toggle()Change the name of a pin:fromfbsd_gpioimportGpioPinpin=GpioPin(128,unit=0)pin.name='green_led'
Package: fb-streamlit-auth
fb-streamlit-authSimple component that implements Firebase authentication.Example usage:importstreamlitasstfromfb_streamlit_authimportfb_streamlit_authst.write('''## Hello- world''')user=fb_streamlit_auth("<apiKey>","<authDomain>","<databaseURL>","<projectId>","<storageBucket>","messagingSenderId","appId","measurementId")st.write(user)The implementation, right now, is really crude. The API is subject to change. Theuserobject returned by fb_streamlit_auth is None if the user is not logged in.
When the user is logged in the object also contains the custom claims associated to the user. In this way the app can check for claims to block or allow access.InspirationMy main source of inspiration was themsal_streamlit_authentication library
Package: fbterminal
Facebook on Terminal===[![Pypi Version](https://pypip.in/v/fbterminal/badge.png)](https://crate.io/packages/fbterminal) [![Downloads](https://pypip.in/d/fbterminal/badge.png)](https://crate.io/packages/fbterminal) [![Build Status](https://travis-ci.org/decached/fbterminal.png?branch=master)](https://travis-ci.org/decached/fbterminal)Access Facebook on Terminal- Check Notifications, Messages- Check who's online- Post a status- Fire a custom FQL query (for the geeks)- And More... (Coming Soon)Requirements---- [Python 2.7/3.3]- [Pip](http://pypi.python.org/pypi/pip) `$ apt-get install python-pip`- [Requests](http://docs.python-requests.org/en/latest/) `$ pip install requests`Installation---1. Fast Forward`$ pip install fbterminal`OR1. Clone the Repository`$ git clone git://github.com/decached/fbterminal.git``$ python setup.py install`2. Go to Facebook Developers -> https://developers.facebook.com/apps/ and create a new app3. Copy the APP ID and APP SECRET to ~/.fbterminalRunning---- Check online friends:`$ fbterminal -o`- Post message:`$ fbterminal -p 'Hello World'`Copyright and Licence---Released under MIT LicenceCopyright (c) 2013 Akash Kothawale → http://decached.com
Package: fbtimer
Track time in FreshBooks via the command line.Installation and RequirementsFreshBooks-Timer has been written for Python 2.7 and 3.3+.To install (either from PyPI or source):$ pip install fbtimeror from source:$ python setup.py installUsageGetting StartedTo get started, runfbtimerand follow the steps to authorize it
against your FreshBooks account.$ fbtimer

First we need access to your FreshBooks account. Press a key to open your browser and obtain an authorization code
Press any key to continue ...This should open your browser and send you to FreshBooks to authorize.
If not, we’ll prin the URL for you to go to. After authorizing, you will
be directed to a page showing you the authorization code needed in the
next step:Please go to <FreshBooks auth URL> and authorize access.
Enter the authorization code:Commands$ fbtimer --help

Usage: fbtimer [OPTIONS] COMMAND [ARGS]...

Options:
  -o, --stdout   Enable logging to stdout. Helpful for debugging.
  -v, --verbose  Enable debug logging.
  --version      Show the version and exit.
  --help         Show this message and exit.

Commands:
  details  Update timer details
  discard  Stop and delete the current timer
  log      Stop the timer and log it
  logout   Log out and delete any authorization data.
  pause    Pause current timer.
  show     Show any currently running timers.
  start    Start or resume timers.

$ fbtimer start --help

Usage: fbtimer start [OPTIONS]

  Start or resume timers.

Options:
  -d, --details  Fill out timer details when started.
  --help         Show this message and exit.Usage ExamplesLogging Time# fbtimer
No running timer

# fbtimer start
Timer started at 2:50 PMDo some work. And when you’re ready to log:$ fbtimer
Running: 0:25:39, started at 2:50 PM

$ fbtimer details
Recent Clients:
1. Internal (My Business)
2. Gordon Shumway
3. William Tanner
0. Go back

$ 1
Setting client to Date Dude
Update:
1. Client
2. Project
3. Service
4. Note
0. Quit

$ 0
$ fbtimer log
Your time has been loggedSetting details right away# fbtimer start -d
Timer started at 2:50 PM
Recent Clients:
1. Internal (FreshBooks)
2. Jenn Kim
3. Date Dude
4. lolpdf (PDF Man)
0. Go backTake a break$ fbtimer pause
Timer paused

$ fbtimer
Paused: 0:15:43, started at 2:50 PM

$ fbtimer start   // To resume
Timer started at 3:26 PMNever mind$ fbtimer
Running: 0:25:39, started at 2:50 PM

$ fbtimer discard
Discarding timer

$ fbtimer show   // Same as fbtimer
No running timer
Package: fb-tools
These are Python modules for common used objects, error classes and functions.Author: Frank Brehm (<frank@brehm-online.com>)Liste der VMWare-OS-Identifier:https://www.vmware.com/support/orchestrator/doc/vro-vsphere65-api/html/VcVirtualMachineGuestOsIdentifier.htmlListe ce VMWare Virtual Hardware Versions:https://kb.vmware.com/s/article/1003746
Package: fbu
PyFBUImplementation of the Fully Bayesian Unfolding algorithm described inphysics.data-an/1201.4612.
The software is based on the Bayesian statistical modeling packagePyMC3.DependenciesPyFBU is tested on Python 3.6.3 within Anaconda 4.3.30 and depends on PyMC 3.InstallationThe use of an isolated Python environment is recommended:conda create --name fbuenv
source activate fbuenvPyMC 3 can be installed using condaconda install -c conda-forge pymc3The following packages also need to be installedconda install mkl
conda install numpy
conda install mkl-serviceAnd this export needs to be added to your bashrc or similar to avoid waringsexport MKL_THREADING_LAYER=GNUor pippip install git+https://github.com/pymc-devs/pymc3The latest stable version of PyFBU can be installed using pip.pip install fbuAlternatively one can check out the development version of the code from theGitHubrepository:git clone https://github.com/pyFBU/fbu.gitUsageAsimple tutorialto help you get started.
Package: fbupkeep
FBUPKEEP is basically a task executor engine. Its primary purpose is to run maintenance
tasks forFirebird® servers and databases, but could be easily extended to run other
tasks of various type.Built-in tasks:Logical (gbak) database backup and restore.Database sweep.Collection of database statistics (gstat).Update index statistics in database.Rebuild of user indices in database.Removal of old files.FBUPKEEP is designed to run on Python 3.5+, and usesFDBFirebird driver.
Package: fb-waba-manager
Facebook Whatsapp Business Account ManagerHandle some facebook whatsapp business account manager functionalities.FYI:wabastands for WhatsApp Business AccountUsageConstructorfromfb_waba_managerimportFbWabaManageraccess_token='my_access_token'business_id='my_business_id'fwm=FbWabaManager(access_token,business_id)MethodsThe following methods are provided:All methods accept thenotify_requestparameter, if the given value isTruethe method will always return the requested data and aboolindicating if a new request was made to the GraphAPI.Ps.: All methods aregenerators.list_business_wabasRetrieve a list of allwaba objectsof yourbusinessParametersTypenotify_requestsbool(optional)forwinfwm.list_business_wabas():print(w)# Example of a waba object:# {#   'id': '21312312321',#   'name': 'Some name',#   'currency': 'USD',#   'timezone_id': '25',#   'business_type': 'ent',#   'message_template_namespace': 'gafsdf_2132_213_asd'# }list_waba_phone_numbersRetrieve a list of allphone number objectsof yourwabaParametersTypewaba_idstrnotify_requestsbool(optional)waba_id='1231434'forpninfwm.list_waba_phone_numbers(waba_id):print(pn)# Example of a phone number object:# {#   'verified_name': 'My number name',#   'display_phone_number': '+55 73 1234-5678',#   'quality_rating': 'GREEN',#   'thread_limit_per_day': 1000,#   'id': '132354254546'# }list_business_phone_numbersRetrieve a list of allphone number objectsof allwabasof yourbusinessParametersTypewabaslist(optional)notify_requestsbool(optional)forpninfwm.list_business_phone_numbers():print(pn)# You can pass a list of wabas# the objects must have at least the id keymy_wabas=[{'id':'12342443'},{'id':'56355465'}]forpninfwm.list_business_phone_numbers(my_wabas):print(pn)list_message_templatesRetrieve a list of allmessage templates objectsof yourwabaParametersTypewaba_idstrnotify_requestsbool(optional)waba_id='1231434'formtinfwm.list_message_templates(waba_id):print(mt)# Example of a phone number object:# {#     "name": "my_message_template_name",#     "components": [#         {#             "type": "BODY",#             "text": "Obrigado pelo contato, at\u00e9 a pr\u00f3xima.\\n\\n:)"#         }#     ],#     "language": "pt_BR",#     "status": "APPROVED",#     "category": "ACCOUNT_UPDATE",#     "id": "16453353"# }ReferenceThewaba,business,phone numberandmessage templatedefinition or properties can be found atFacebook's oficial documentation
Package: fbwisher
Automated Facebook Birthday WishThis is a simple python script which automatically sends personalized birthday wishes to all your Facebook friends who have birthdays at that day on their timeline.NOTE : This script is originally built for Chrome browser on windows OS. With slight modifications, it can be easily used on different browsers or OS.Clone this repo usinggit clone https://github.com/shiv-aay/facebook-b-day-wisherGo to that directorycd facebook-b-day-wisherDependenciesThis script requires python3 and selenium installed. Download any version of python3 fromhere.For selenium with python installed just run the following code in powershell or in terminal:pip install -r requirements.txtSetup for other broswersNote:To use it with firefox usedriver=webdriver.Firefox()Then you should download the geckodriver fromhere.Further instructions are given in the script itself as commentsSimilar instructions to be followed for Edge.RunJust run the script using python in powershell or in terminal like:python facebook_automatic_birthday_wish.pyEnter login credentials, password(unechoed) onceIn case, you want to reset your credentials or choices, just deletecredentials.txtfile inside the cloned folder.
Package: fc
Build StatusPyPIEnables Python to be functionally chain-styled.DocumentSimplified Chinese documentshere.If you are interested in me,you can follow myBlog([STRIKEOUT:一波软广2333])。How to use?install form pypi:$ pip install fcand you just importFc,like this:from fc import Fcthen you can enjoy lambda like Kotlin/JS:fromfcimportFcl=(Fc([1,2,3,4,5]).map(lambdax:x+1).filter(lambdax:x>4).print()# [5, 6].map(lambdax:x+1).print()# [6, 7].cat([8,9]).print()# [6, 7, 8, 9].add(10).print()# [6, 7, 8, 9, 10].catHead([1,2,3,4,5]).print()# [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].limit(3).done())assertl==[1,2,3]You can check this thistest fileand understand more.Have Fun ;)