Saravanan666/pypi-org huggingface dataset:
Package: bazema-linker
Bazema linkerApplication building relations between drugs,
scientific publications, pubmed, journals and
clinical trials.The output is a JSON file.Design+-------------------------+
   | input folder            |
   |   + drugs.csv           |
   |   | pubmed.csv          |
   |   | pubmed.json         |
   |   + clinical_trials.csv |
   +-------------------------+
               +         move valid
               |         files    +------------------+
               v           +----> |  archive folder  |
      +--------+-------+   |      +------------------+
      |                |+--+
      | bazema_linker  |
      | python job     |     move invalid
      |                |±--+ files
      +----------------+   |      +------------------+
               +           +----> |  errors folder   |
               |                  +------------------+
               v
+-----------------------------+
|  output folder              |
|   + result_2020_10_06.json  |
+-----------------------------+Once the job is done, the input files are moved to anarchivefolder.
Invalid files (name invalid, format invalid, parsing impossible)
are moved to anerrorsfolder.Structure of input filesdrugs.csv, 2 columns=atccodeanddrugpubmed.csv, 4 columns=id,title,dateandjournalpubmed.json, same structure as a JSONclinical_trials.csv, 4 columns=id,scientific_title,dateandjournalStructure of generated output[
    {
        "drug": "drug name",
        "clinical_trials": [
            {
                "title": "title of article",
                "date": "2020-01-01"
            }, {...}
        ],
        "pubmed": [
            {
                "title": "title of article",
                "date": "2020-01-01"
            }, {...}
        ],
        "journals": [
            {
                "date": "2020-01-01",
                "journal": "journal name"
            }, {...}
        ]
    },
    {...}
]UsageRequirementsPython >= 3.6Installationvirtualenv -p python3 venv
source venv/bin/activate

pip install bazema_linkerDisplay usagebazema_linker -hExamplebazema_linker --input_dir data --output_dir resultDevelopment# Install
virtualenv -p python3 venv
source venv/bin/activate
make install

# Build
make test # coverage tests
make linter # runs pylint
make buildAd-hoc Top journalsYou can get the name of the journal with the most different drugs using
the scripttop_journals.pyand a result file produced bybazema_linker.Usage# no depedency required
python top_journals.py result/result_2020-10-06.json

# output
Journal with most different drugs is "Science" with a total of "15" different drugs.TODOHandle high volume of data, like few tera-octets -> use a highly scalable
framework (i.e. Apache Spark, Apache Beam). Pay attention when broadcasting data across
workers.Deploy to Pypi using Github Actions
Package: bazos
BAZOS-APICurrent functionality supports removing and adding items to bazos.cz, bazos.sk, bazos.at and bazos.pl.GoalCreate full-featured API for bazos.cz, bazos.sk, bazos.at and bazos.pl.Installationpip3installbazosRunbazos--help
bazos-b--countryczsk--path$HOME/Documents/photos-archive# Remove all items from bazos.cz and bazos.sk and add new items from $HOME/Documents/photos-archivebazos-b--countryczsk--add-only--path$HOME/Documents/photos-archive# Add new items from $HOME/Documents/photos-archive--countryargumentSupported countries:cz,sk,at,pl-b|--bazosargumentThis turn on run.--pathargumentThe folder where all photos anduser_{country}.ymlfile.How to structure folder defined in--pathargument:# user_${bazos_country}.yml e.g.: user_cz.yml
name: Jmeno
phone_number: '+420123456789'
email: user@example.com
psc: 60200
password: 123456Example of folder structurebazos-ads/
bazos-ads/user_cz.yml
bazos-ads/user_sk.yml
bazos-ads/item1/photos/photo1.jpg
bazos-ads/item1/photos/photo2.jpg
bazos-ads/item1/info.txt
bazos-ads/item2/photos/photo1.jpg
bazos-ads/item2/photos/photo2.jpg
bazos-ads/item2/info.txt
...info.txtsyntax>>RUBRIC
PC

>>CATEGORY
Notebooky

>>TITLE
MacbookPro201916>>PRICE25000>>DESCRIPTION
Yoursentences1.
Yoursentences2.Contribution and DevelopmentEvery contribution is welcome!Please follow rules inside.pre-commit-config.ymlfile.Before creating pull request, please runpre-commit run --all-filesto check if there are no errors.Install pre-commit hookspre-commitinstallCreate virtual environment and install dependenciespython3-mvenvvenvsourcevenv/bin/activate
pipinstall-rrequirements.txt
pipinstall-e.
Package: bazze-json-logger
json-loggerImport into your Python project to standardize logs to JSON format.  Works well with AWS CloudWatch and AWS Lambda Functions.Installationpipinstall-Ubazze-json-loggerUsageThis package sets up a JSON formatter for the Python root logger.  In order for this to work properly, be sure to run this package before setting up any new loggers.importloggingimportbazze_json_loggerlogging.basicConfig(level=logging.INFO)bazze_json_logger.setup()logger=logging.getLogger()logger.info('Hello World!')Output>>>{"timestamp":"2020-09-30T00:15:39.667110Z","level":"INFO","name":"root","message":"Hello World!","schema_version":"0.0.2"}AWS Lambda IntegrationWhen using AWS Lambda it is nice to have theaws_request_idas part of the JSON object for tracing purposes.  To do this we need to pass it into thesetup()method.importloggingimportbazze_json_loggerlogging.basicConfig(level=logging.INFO)deflambda_handler(event,context):bazze_json_logger.setup(aws_request_id=context.aws_request_id)logger=logging.getLogger()logger.info('Hello World!')Viewing the logs on AWSLogs can be viewed locally in your terminal when testings.  When the application is deployed, they will show up in the CloudWatch group in JSON format.To view the CloudWatch logs in your console:Install awslogspipinstall-UawslogsExport AWS_PROFILEexportAWS_PROFILE=bazzeTo view all log groups:awslogsgroupsTo tail your log group:awslogsget/aws/lambda/your-function--since5m--watchTo query and aggregate the logs, I recommend using CloudWatch Insights.
Package: bb2parse
bb2parseParse Bloodbowl2 replay files for statisticsInstallInstall using pip:$ pip install bb2parseUsageInitializing a Season/Match Objectfrombb2parseimportBloodBowlMatch,BloodBowlSeasongame=BloodBowlMatch('{XML file}')season=BloodBowlSeason('{XML file}','{XML file}','{XML file}','{XML file}'...)Attributes of Match Objectsgame.match_outcomegame.homegame.away# Subclassgame.HomeTeamgame.AwayTeamgame.HomeTeam.coach#Object and its methods and attributesgame.HomeTeam.Offense.interceptions.touchdowns.running_yards.passing_yards.passes.catches.possession.occupation_own.get_pass_completion().get_pass_intercept_ratio()game.HomeTeam.Defense.casualties_inflicted.interceptions.ko_inflicted.injuries_inflicted.kills_inflicted.expulsions.occupation_their.get_ratio_injuries().get_ratio_casualties().get_ratio_kills()game.HomeTeam.Injuries.deaths_sustained.ko_sustained.casualties_sustained.injuries_sustainedAttributes of Season objectsseason.seasonlengthseason.scoreboardseason.Teams.teamlist# returns regular set of teams involved in games# Use this attribute to look for stats/dataseason.getTeams# Should return list of team objectsseason.getTeams[0].nameseason.getTeams[0].matches_playedseason.getTeams[0].matches# Returns list of BloodBowl Match Objectsseason.getTeams[0].get_total_kills()season.getTeams[0].get_total_touchdowns()season.getTeams[0].get_total_running_yards()season.getTeams[0].get_total_passing_yards()season.getTeams[0].get_td_avg()
Package: bbalg
bbalgBaba algorithm for robustly determining status changes of objects to be tracked.pip install -U bbalgstate_verdict(long_tracking_history:Deque[bool],short_tracking_history:Deque[bool])->Tuple[bool,bool,bool]Babaalgorithmforrobustlydeterminingstatuschangesofobjectstobetracked.Parameters----------long_tracking_history:List[bool]HistoryofNcases.EachelementrepresentsthepastNstatejudgmentresults.e.g.N=10,[False,False,False,True,False,True,True,True,False,True]short_tracking_history:List[bool]HistoryofMcases.EachelementrepresentsthepastMstatejudgmentresults.e.g.M=4,[True,True,False,True]Returns----------state_interval_judgment:boolWhethertheobject's state is currently ongoing.Trueaslongastheconditionisongoing.TrueorFalsestate_start_judgment:boolWhethertheobjecthasjustchangedtothatstate.Trueonlyifitisdeterminedthatthestatehaschanged.TrueorFalsestate_end_judgment:boolWhetherthestateoftheobjecthasjustendedornot.Itbecomestrueonlyatthemomentitisover.TrueorFalse1. State-in-Progress (whether or not the state is currently in progress, true for as long as the state lasts)The sum ofNhistories is greater than or equal toN/2and the sum of the lastMhistories is greater than or equal toM-1fromtypingimportDequefrombbalgimportstate_verdictstate_interval_judgment,state_start_judgment,state_end_judgment=\state_verdict(long_tracking_history=\Deque([False,True,False,True,False,True,True,True,True,False],maxlen=10),short_tracking_history=\Deque([True,True,True,False],maxlen=4),)print(f'state_interval_judgment:{state_interval_judgment}')print(f'state_start_judgment:{state_start_judgment}')print(f'state_end_judgment:{state_end_judgment}')state_interval_judgment: True
state_start_judgment: False
state_end_judgment: False2. State start judgment (whether the state has now been entered or not, it becomes true only at the moment of change)Total ofNhistories =N/2and the sum of the lastMhistories is greater than or equal toM-1fromtypingimportDequefrombbalgimportstate_verdictstate_interval_judgment,state_start_judgment,state_end_judgment=\state_verdict(long_tracking_history=\Deque([False,False,False,True,False,True,True,True,False,True],maxlen=10),short_tracking_history=\Deque([True,True,False,True],maxlen=4),)print(f'state_interval_judgment:{state_interval_judgment}')print(f'state_start_judgment:{state_start_judgment}')print(f'state_end_judgment:{state_end_judgment}')state_interval_judgment: True
state_start_judgment: True
state_end_judgment: False3. State end judgment (whether the state has just ended or not, it becomes true only at the moment it ends)Sum ofNhistories =N/2and the sum of the lastMhistories is less than or equal to1fromtypingimportDequefrombbalgimportstate_verdictstate_interval_judgment,state_start_judgment,state_end_judgment=\state_verdict(long_tracking_history=\Deque([True,True,False,True,False,True,False,False,True,False],maxlen=10),short_tracking_history=\Deque([False,False,True,False],maxlen=4),)print(f'state_interval_judgment:{state_interval_judgment}')print(f'state_start_judgment:{state_start_judgment}')print(f'state_end_judgment:{state_end_judgment}')state_interval_judgment: False
state_start_judgment: False
state_end_judgment: True
Package: bballRefWebScraper
Basketball-Reference Web Scraping ApplicationOverviewGrabs basketball data fromBasketball-Reference.Extracts player stats, game scores, team information, and more via BeautifulSoup.Ideal for basketball analytics, data science, and machine learning.UsageInstallationClone down the repository to your local machine using git cloneCd into the cloned repositoryInstall the requirements with pip install -r requirements.txtgitclonehttps://github.com/michaelc143/BballRefWebScraper.gitcdBballRefWebScraper/
pipinstall-rrequirements.txtThere is also a Dockerfile built into this repository that can be used via:dockerbuild.-tBballRefScraper
dockerrunBballRefScraperRunning the ApplicationExample functionality can be found in the examples.py filecdBballRefWebScraper/
python3bball_ref_web_scraper/examples.pyPackages RequiredPandasBeautifulSoupUnidecodeRequestsPytestPylintCoverageLicenseThis project is licensed under the MIT License - see theLICENSEfile for details.
Package: bbapi-toolkit
____  ____    _    ____ ___     _____           _ _    _ _   
 | __ )| __ )  / \  |  _ \_ _|   |_   _|__   ___ | | | _(_) |_ 
 |  _ \|  _ \ / _ \ | |_) | |      | |/ _ \ / _ \| | |/ / | __|
 | |_) | |_) / ___ \|  __/| |______| | (_) | (_) | |   <| | |_ 
 |____/|____/_/   \_\_|  |___|_____|_|\___/ \___/|_|_|\_\_|\__|DescriptionBBAPI_Toolkit is a Python package for easily accessing data via Blackbaud’s ON API and SKY API.RequirementsThis package is written for Python 3.8 and later. Prior versions of Python may work, but have not been tested.Installationpip3installbbapi_toolkitConfigurationDuplicate theconfig.ini.examplefile into your project directory (or a config subdirectory, if desired), rename it something sensible (likeconfig.ini), and modify the settings to match the needs of your current project. Each config file can contain connection settings for ON API and/or SKY API. You can, however, make multiple config files, each with its own settings, if you intend to connect to the API applications with multiple accounts concurrently.UsageCreate an instance of theClientclass, with the name of your config file as its only parameter, to create a client connection to Blackbaud’s APIs. Once created, pre-built functions provide a consistent interface to the API. The modules and functions in this package mirror the organization of Blackbaud’s API documentation:category/group/functionorcategory/function.The following code snippet provides an example of how to use the onapi module to issue two API calls, one to get a list of Blackbaud roles, and the other to retrieve the results of a pre-built list:frombbapi_toolkitimportonapiclient=onapi.Client('config.ini')roles=onapi.constituents.role.get_roles(client)listresults=onapi.list.get_list(client,12345)# Change this id to that of a list which you can access.The following code snippet provides an example of the same behavior using the SKY API:frombbapi_toolkitimportskyapiclient=skyapi.Client('config.ini')roles=skyapi.school.core_roles.get(client)listresults=skyapi.school.legacy_list.get(client,12345)# Change this id to that of a list which you can access.
Package: bb-astromodels
bb_astromodelsSome additional models for astromodels.Installgit clonehttps://github.com/BjoernBiltzinger/bb_astromodels.gitcd bb_astromodelspython setup.py install or python setup.py develop=> \frombb_astromodelsimportAbsori,Integrate_AbsoriReferencesThe implementations in this repository depend on work done by many other people:GeneralDepends on astromodels:https://github.com/threeML/astromodelsModel code taken from XSPEC code:https://heasarc.gsfc.nasa.gov/xanadu/xspec/ModelsAbsori:https://heasarc.gsfc.nasa.gov/xanadu/xspec/manual/node232.html; Magdziarz & Zdziarski (1995, MNRAS 273, 837)Integrated Absori/xabs:https://var.sron.nl/SPEX-doc/manualv3.05/manualse85.html; Steenbrugge et al. (2003)
Package: bbbctl
BigBlueButton REST API command-line clientThis is a small but useful command-line client for controlling meetings and recordings on aBigBlueButtonserver or cluster directly via theREST API. It allows administrators to bypass front-end applications (greenlight,moodleor alternatives) and directly access the backing BBB servers for administrative tasks, monitoring or testing.The module can also be imported as a python library, but please note that this project is not yet considered stable in any way. A stable and more usable API for python scripting might follow.Install# Install via pipsudopipinstall-Ubbbctl# or manually:sudocurl-Lhttps://raw.githubusercontent.com/defnull/bbbctl/master/src/bbbctl.py-o/usr/local/bin/bbbctl
sudochmod+x/usr/local/bin/bbbctlUsage# Only required for external BBB servers:exportBBBCTL_SERVER="https://bbb.example.com/"exportBBBCTL_SECRET="..."bbbctlmeetinglist# Test your secret by listing current meetingsbbbctl-h# Print help for a list of commandsIf run directly on a BBB server with sufficient permissions, server URL and secret will be fetched from local BBB config files automatically.Command overviewYou can get detailed help and a list of all parameters withbbbctl -horbbbctl <command> -h.meetingCreate, list, join, inspect or end meetingslistList all meetingsinfo <meetingID>Show info about a meetingcreate <meetingID> <title>Create a new meetingjoin <meetingID> <displayName>Generate join linksend <meetingID>Forcefully end a meetingnukeForcefully end ALL meetings (be careful)recordWork with recordingslistList all recordingsinfo <recordID>Show info about a recordingpublish <recordID>Publish an unpublished recordingunpublish <recordID>Unpublish (hide) recording)delete <recordID>Delete a recording (be careful)Output formatThe default output format is a human readable plain text format. You can switch to a more compact version with--format=compact. Other formats that are better suited for scripted usage are also supported:json,jsonlineorxmlLicenseCopyright (c) 2020-2022, Marcel Hellkamp.Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Package: bbb-dlc
Big Blue Button (BBB) Converter & DownloaderDownloads a BBB lesson as MP4 video, including presentation, audio, webcam and screenshare.SetupInstallPython>=3.7InstallffmpegRun:pip install bbb-dlcas administratorUsageusage: bbb-dlc [-h] [-aw] [-aa] [-kt] [-v] [-ncc] [--version] [--encoder ENCODER] [--audiocodec AUDIOCODEC] [-f FILENAME] URL

Big Blue Button Downloader that downloads a BBB lesson as MP4 video

positional arguments:
  URL                   URL of a BBB lesson

optional arguments:
  -h, --help            show this help message and exit
  -aw, --add-webcam     add the webcam video as an overlay to the final video
  -aa, --add-annotations
                        add the annotations of the professor to the final video
  -kt, --keep-tmp-files
                        keep the temporary files after finish
  -v, --verbose         print more verbose debug informations
  -ncc, --no-check-certificate
                        Suppress HTTPS certificate validation
  --version             Print program version and exit
  --encoder ENCODER     Optional encoder to pass to ffmpeg (default libx264)
  --audiocodec AUDIOCODEC
                        Optional audiocodec to pass to ffmpeg (default copy the codec from the original source)
  -f FILENAME, --filename FILENAME
                        Optional output filenameLicenseThis project is licensed under the terms of theGNU General Public License v2.0. For further information, please lookhereorhere(DE).This project is based on the work ofCreateWebinar.com,Stefan Wallentowitz,Olivier BergerandDaniel Vogt.
Parts of this code have already been published under MIT license and public domain. These parts are re-released in this project under the GPL-2.0 License.
Package: bbbmeetings
bbbmeetingsA Library that helps with reading information regarding Big Blue Button via the BBB-API. The goal of bbbmeetings is to make it easy to generate stats about one or more BBB-Instances.It was a non-goal to create a full coverage of the BBB-API, for ending meetings, creating meetings, managing recordings etc.InstallationVia pippip install bbbmeetingsUsageFirst we need to create a BBB Server. To allow the connection with that server you need to know its secret, which can be found usingbbb-conf -- secretasmentioned here. You can create a server like this:frombbbmeetingsimportBBBServerserver=BBBServer(host="https://bbb.example.org",secret="!#%Random!#$%Fsecret!#$%")For convenience bbbmeetings offers a way of treating multiple servers as one server:frombbbmeetingsimportBBBServers,BBBServer# Create a BBBServers Object from multiple BBBServer-Objectsservers=BBBServers.from_list([BBBServer("https://bbb1.example.org","!#%Random!#$%Fsecret!#$%"),BBBServer("https://bbb2.example.org","!#%Random!#$%Fsecret!#$%"),BBBServer("https://bbb3.example.org","!#%Random!#$%Fsecret!#$%"),BBBServer("https://bbb4.example.org","!#%Random!#$%Fsecret!#$%"),BBBServer("https://bbb5.example.org","!#%Random!#$%Fsecret!#$%"),])Most methods onBBBServerandBBBServersare the same, but in the following examples I will useserversto showcase how this module may be used:# Get a list of meetings running on all servers and print all details about themformeetinginservers.meetings:print(meeting)You can also get some numbers directly (in this case I use python's formatting strings):print(f"On all servers there are{servers.people}people in{servers.n_meetings}meetings.{servers.video_active}people have their webcam on,{servers.connected_with_mic}connected with mic. There are{servers.moderators}moderators.")If you want to have a list of all people in all meetings on all servers run:print(f"The names of everyone on all servers are{', '.join([a.nameforainservers.attendees])}")If you just want a list with the names of Presenters you can run:presenter_names=[a.nameforainservers.attendeesifa.isPresenter]Or if you want to know the longest running meeting:print(f"Longest running meeting is{servers.longest_duration.name}with a duration of{servers.longest_duration.duration}")
Package: bbbmon
bbbmonA small python based CLI utility to monitor BigBlueButton-Usage.InstallationThe easiest way to install bbbmon is to install it from the Python Package Index (PyPi). This project usespython poetryfor dependency management, so you could also run it without installing the package system wide, see instructions below.Install with pip3sudopip3installbbbmon--upgradeThen run with:bbbmonRun with poetry (without pip)Clone the repo:gitclonehttps://code.hfbk.net/bbb/bbbmon.gitMake sure you have poetry installed. Install instruction for poetry can befound here.
From inside the project directory run:poetryinstallRun bbbmon with:poetryrunbbbmonConfigurationRunbbbmon config --newto create a new default configuration file. bbbmon will always ask you before it creates or overwrites anything.Within the config you can define one or more endpoints with running bbb instances – each with it's secret and bigbluebutton-URL. You can find the secret on your server in it's config-file viacat/usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties|grepsecuritySalt=A example configuration file could look like this:[bbb.example.com]securitySalt=MY_SUPER_SECRET_SECRETbigbluebutton.web.serverURL=https://bbb.example.com/[Föö]securitySalt=MY_SUPER_SECRET_SECRET2bigbluebutton.web.serverURL=https://bbb.foo.com/The section names in the square brackets can be chosen arbitrarily (as long as they are unique) and will be used as display names (they support utf-8). It makes sense to keep them short as they can be  used for filtering and/or ordering:bbbmonmeetings-eFööUsageFor help run:bbbmon-hbbbmon supports command abbreviations – these commands produce the same result:bbbmonmeetings
bbbmonmeeting
bbbmonmee
bbbmonmThis works as long as there is no other command starting with the same letters.
Package: bbb-scrape
Scrape Big Blue Button (BBB) meetingScrape a BBB meeting. Currently only supports:Extract slides and create video with proper timingDownload desk sharing and webcam videos if presentRender slide annotations and pollsUpcoming features:Render new video with combined elementsRender chatInstallation:pip install bbb-scrapeYou also need inkscape (image conversion in the background) and ffmpeg (rendering) installed.Use:bbb-scrape <meeting URL>