Saravanan666/pypi-org huggingface dataset:
Package: wbplot
Automated plotting of neuroimaging maps from Python usingConnectome Workbench.This package is intended for users who want to generate images
which illustrate scalar data on a brain surface, from within their Python scripts.InstallationStep 1. Make sure you have Connectome Workbench v1.3+ installed.If runningwb_viewfrom a terminal yieldscommand not found, seehttps://www.humanconnectome.org/software/connectome-workbench/If you have Workbench 1.2 or below installed, you will get an error messageStep 2. Installwbplotand dependencies.Clone the repository and install manually:git clone https://github.com/jbburt/wbplot.gitOr just use pip:pip install wbplotUsageAssumingxis a NumPy array containing scalar values mapped onto each of the
360 parcels in theHuman Connectome Project'sMMP1.0parcellation:from wbplot import pscalar
pscalar("/path/to/image.png", x)Assumingyis a NumPy array containing dense scalar values mapped onto the 59412
surface vertices in a standard bilateral 32k surface mesh:from wbplot import dscalar
dscalar("/path/to/image.png", y)Noteswbplotcurrently only supports cortical data. Parcellated data must also be in the
HCP MMP1.0 parcellation. Dense data must be
registered to a standard 32k surface mesh.Down the line I'd be open to adding subcortical
support and other functionality if people are interested.More detailed explanations of the functionality can be found in the scripts in theexamplesdirectory.Change Log1.0.14 Fixed an issue that causedwbplotto break when usingnibabel>=3.2.0.1.0.13 Attempted to fix a bug which threw an error on Windows machines. FOLLOW-UP: Due to Connectome Workbench itself, Windows is currently NOT SUPPORTED.1.0.12 Fixed bug in list of available colormaps; ROY-BIG-BL and videen_style are now supported.1.0.11 Dependency version updates.1.0.10 Patched keyword argument bug in wbplot.dscalar.1.0.9 Fixed bug in images.check_dscalars().1.0.8 Fixed it for real now.1.0.7 Fixed type checking bug inimagesmodule.1.0.6 Added errors raised to docstrings and cleaned up a few files.1.0.5 Last patch didn't fix the problem.1.0.4 ImageParcellated loaded into dense scenes resulted in error messages printed to console.1.0.3 Entirely changed the way data are read from and written to, to circumnavigate permissions issues.1.0.2 Error in MANIFEST.in -- not all necessary data files included in build.1.0.1 Small error in README.1.0 Initial release.
Package: wbpNamespace
wbpNamespaceNamespace plugin forWorkbenchapplicationsInstallationpipinstallwbpNamespaceInstalling this plugin registers an entry point
in the group "wbbase.plugin" named "namespace".To use the plugin in your application,
add it to yourapplication.ymlfile as follows:AppName:myAppPlugins:-Name:namespaceDocumentationFor details read theDocumentation.
Package: wbpShell
wbpShellShell plugin forWorkbenchapplicationsInstallationpipinstallwbpShellInstalling this plugin registers an entry point
in the group "wbbase.plugin" named "shell".To use the plugin in your application,
add it to yourapplication.ymlfile as follows:AppName:myAppPlugins:-Name:shellDocumentationFor details read theDocumentation.
Package: wbpTextedit
wbpTexteditText editor plugin for Workbench applications.This plugin provides document templates to create, view and edit
the following file types:Plain text (*.txt)Python scripts (*.py, *.pyw)ini-style configuration files (*.ini, *.cfg)XML text files (*.xml, *.xsd)InstallationpipinstallwbpTexteditInstalling this plugin registers an entry point
in the group "wbbase.plugin" named "textedit".To use the plugin in your application,
add it to yourapplication.yamlfile as follows:AppName:myAppPlugins:-Name:texteditDocumentationFor details read theDocumentation.
Package: wbpUFO
wbpUFOUFO plugin forWorkbenchapplications.This plugin provides Workbench document templates for fonts in UFO source format:As well as a document view to view and edit fonts in these formats.InstallationpipinstallwbpUFOInstalling this plugin registers an entry point
in the group "wbbase.plugin" named "ufo".To use the plugin in your application,
add it to yourapplication.ymlfile as follows:AppName:myAppPlugins:-Name:ufoDocumentationFor details read theDocumentation.
Package: wbpUItools
wbpUItoolsUI tools plugin forWorkbenchapplications.This plugin provides some useful functions for user interaction
in Python scripts.InstallationpipinstallwbpUItoolsInstalling this plugin registers an entry point
in the group "wbbase.plugin" named "uitools".To use the plugin in your application,
add it to yourapplication.ymlfile as follows:AppName:myAppPlugins:-Name:uitoolsDocumentationFor details read theDocumentation.
Package: wbs-connectdb
连接数据库工具包支持类型MysqlPostgresqlHologres使用方法下载pip install -i https://pypi.org/project wbs-connectdb使用importConnection_Tool.ConnectionasConnection# mysqlmysql=Connection.Mysql(host='127.0.0.1',port=3306,dbname='',user='root',password='root')# psqlpsql=Connection.Psql(host='127.0.0.1',port=5433,dbname='db',user='postgres',password='admin')print(psql.ExecuteSql('select 1'))print(mysql.ExecuteSql('select 2'))
Package: wbsearch
WbSearchSearch anything on main browser directly from terminal (both words and links).Installation:$ pip install wbsearchUsage:$ wbsearch argumentReplace argument with your own research.
In case you want to search multiple words, you may need to use "" before each space,
or use double quotes around, depending on your operating system.Save a keyword:$ wbsearch --set keyword link

$ wbsearch -s keyword linkReplace keyword with your own keyword, and link with your own link.
This method allows to locally set constant keywords.
The same method allows to edit the content of the keyword, simply entering the kewyord and then the new associated linkRemove a keyword:$ wbsearch --remove keyword

$ wbsearch -r keywordReplace keyword with the keyword you want to remove from wbsearch user keywords.Display saved keywords:$ wbsearch --keywords

$ wbsearch -kShows all the saved keywords.Help:$ wbsearch --helpType this command to get help.Examples:Search a link:$ wbsearch https://www.github.com/Search a word:$ wbsearch pythonSet a keyword:$ wbsearch --set github https://www.github.com/

$ wbsearch -s pypi https://pypi.org/Use a keyword:$ wbsearch githubOpens the link associated with the keyword "github"Display all the saved keywords:$ wbsearch -k
  
output:

  Saved keywords:
      github -> https://www.github.com/
      pypi -> https://pypi.org/Remove a keyword:$ wbsearch --remove github

$ wbsearch -r pypiGet help:$ wbsearch --help
  
output:

    Usage: wbsearch [OPTIONS] [ARGUMENT]

      Argument: url, word(s) or keyword. To search multiple words, wrap them
      around with double quotes or put "\" before each space

      Version: 2.2.1

    Options:
      -s, --set TEXT     Set keywords to access your links
      -r, --remove TEXT  Remove a keyword
      -k, --keywords     Show all the saved keywords
      --help             Show this message and exit.
Package: wbs-polls-djn
===
Polls
===Polls is a simple Django app to conduct Web-based polls. For each
question, visitors can choose between a fixed number of answers.Detailed documentation is in the “docs” directory.Quick startAdd “polls” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'polls',
]Include the polls URLconf in your project urls.py like this:path('polls/', include('polls.urls')),Runpython manage.py migrateto create the polls models.Start the development server and visithttp://127.0.0.1:8000/admin/to create a poll (you’ll need the Admin app enabled).Visithttp://127.0.0.1:8000/polls/to participate in the poll.
Package: wbsv
wbsvwbsv(stands for "WayBack machine SavepageNow") is…CLI tool for saving webpage on Wayback Machine forever.
Enables you tosave all URIsin a webpage forever onWayback Machine.InstallpipinstallwbsvDEMORun & ExamplesHelp$ wbsv -h
usage: wbsv [-h] [-r times] [-t] [-l level] [-O] [-V] [url ...]

CLI tool for save webpage on Wayback Machine forever.
Save webpage and one 's all URI(s) on Wayback Machine.

positional arguments:
  url                      Saving pages in order. (default: None)

optional arguments:
  -h, --help               show this help message and exit
  -r times, --retry times  Set a retry limit on failed save. (default: 3)
  -t, --only_target        Save just same domain of target (default: False)
  -l level, --level level  Set maximum recursion depth (default: 1)
  -O, --own                Only URLs with the same domain as target (default: False)
  -V, --version            show program's version number and exit

If you don't give the URL,
interactive mode will be launched.
(To quit interactive mode,
type "end", "exit", "exit()",
"break", "bye", ":q" or "finish".)Interactive mode$ wbsv
[[Input a target url (ex: https://google.com)]]
>>> https://www.u.tsukuba.ac.jp
[+]Target: ['https://www.u.tsukuba.ac.jp']
[+]61 URI(s) found.
[01/60]: <NOW> https://web.archive.org/web/20200412020015/https://www.u.tsukuba.ac.jp/password/
[02/60]: <FAIL> https://www.u.tsukuba.ac.jp/info_lit/tebiki.html
[03/60]: <NOW> https://web.archive.org/web/20200412020026/https://www.u.tsukuba.ac.jp/account/
...
[58/60]: <NOW> https://web.archive.org/web/20200412022608/https://www.u.tsukuba.ac.jp/phishing/
[59/60]: <FAIL> https://www.u.tsukuba.ac.jp/wordpress/wp-content/uploads/note_usingcomputerrooms.png
[60/60]: <NOW> https://web.archive.org/web/20200412022640/https://www.u.tsukuba.ac.jp/
[+]FIN!: ['https://www.u.tsukuba.ac.jp']
[+]ALL: 60, SAVE: 57, PAST: 0, FAIL: 3
>>>From stdin$ wbsv https://tsumanne.net
[+]Target: ['https://tsumanne.net']
[+]4 URI(s) found.
[1/4]: <NOW> https://web.archive.org/web/20200412022931/https://tsumanne.net/si/
[2/4]: <NOW> https://web.archive.org/web/20200412022935/https://tsumanne.net/
[3/4]: <NOW> https://web.archive.org/web/20200412022938/https://tsumanne.net/my/
[4/4]: <NOW> https://web.archive.org/web/20200412022949/https://tsumanne.net/ct/
[+]FIN!: ['https://tsumanne.net']
[+]ALL: 4, SAVE: 4, PAST: 0, FAIL: 0
$Search links recurcivelywbsvhttps://programming-place.net/ppp/contents/c/index.html-l2Increase limit of retrywbsvhttps://tsumanne.net-r10LISENCEMITAuthoreggplants (haruna)
Package: wbsync
wikibase-syncLicenseBuild StatusCoveragePython library to synchronise data between RDF files and Wikibase instances.It updates your wikibase instance based on the changes of the RDF ontology.How to installYou can install it manually from the source code:gitclonehttps://github.com/weso/wikibase-synccdwikibase-sync
pythonsetup.pyinstallPython 3.7+ is recommended.ExamplesWith the following code you can synchronize the modification of two RDF files to a given Wikibase instance:fromwbsync.triplestoreimportWikibaseAdapterfromwbsync.synchronizationimportGraphDiffSyncAlgorithm,OntologySynchronizermediawiki_api_url='wikibase_api_endpoint'sparql_endpoint_url='wikibase_sparql_endpoint'username='wikibase_username'password='wikibase_password'adapter=WikibaseAdapter(mediawiki_api_url,sparql_endpoint_url,username,password)algorithm=GraphDiffSyncAlgorithm()synchronizer=OntologySynchronizer(algorithm)source_content="original rdf content goes here"target_content="final rdf content goes here"ops=synchronizer.synchronize(source_content,target_content)foropinops:res=op.execute(adapter)ifnotres.successful:print(f"Error synchronizing triple:{res.message}")Leaving the source_content empty will be equivalent to adding the target contents to the Wikibase, while leaving the target_content empty will be equivalent to removing the source_content from the Wikibase if present. Additional examples about synchronizing RDF files with a Wikibase instance can be seen in theSynchronization notebook.Executing batch operationsThere is the possibility of performing batch operations (executing at once all of the statements of a given entity). This type of synchronization will have a better performance at the risk that an invalid statement will cancel the entire batch operation. The following code can be used to execute batch operations:fromwbsync.synchronization.operationsimportoptimize_opsdefexecute_batch_synchronization(source_content,target_content,synchronizer,adapter):ops=synchronizer.synchronize(source_content,target_content)batch_ops=optimize_ops(ops)foropinbatch_ops:res=op.execute(adapter)ifnotres.successful:print(f"Error synchronizing triple:{res.message}")More information about these operations and time gained with them can be explored in theBenchmarks notebook.
Package: wbteampropy
wbteampropyPython interface for the WbTeamPro APIWbTeamPropyWbTeamPropy is a Python interface to the WbTeamPro REST API.UsageCreate a WbTeamPro interface with the API URL and credentials and use it to
call the API.importwbteampropywbteampro=wbteampropy.WBTEAMPRO('https://example.com/modules/addons/wbteampro/api.php','username','password')wbteampro.get_project(110)API USERNAME
This is a valid Administrator username that is within a WHMCS Administrative Role that has been granted access to the wbTeamPro system.API PASSWORD
This is the password for the valid AdministratorIn general API methods can be called as methods in the WBTEAMPRO class. For
available API methods see theWbTeamPro API reference.
Note that the casing of the methods differ from the API actions. While the
API actions are CamelCased the methods are snake_cased.Calling unimplemented actionsNot all API actions are implemented as Python methods (they will be
implemented as required, of course pull-requests are accepted). In order to
call actions that are not yet implemented call() can be used. Example:response=wbteampro.call('SomeAction',param=value,list_param=[element,element2,])See the call() documentation for more info.
Package: wbtools
WBtoolsInterface to WormBase curation database and Text Mining functionsAccess WormBase paper corpus information by loading pdf files (converted to txt) and curation info from the WormBase
database. The package also exposes text mining functions on papers' fulltext.Installationpip install wbtoolsUsage exampleGet sentences from a WormBase paperfromwbtools.literature.corpusimportCorpusManagerpaper_id="00050564"cm=CorpusManager()cm.load_from_wb_database(db_name="wb_dbname",db_user="wb_dbuser",db_password="wb_dbpasswd",db_host="wb_dbhost",paper_ids=[paper_id],file_server_host="file_server_base_url",file_server_user="username",file_server_passwd="password")sentences=cm.get_paper(paper_id).get_text_docs(split_sentences=True)Get the latest papers (up to 50) added to WormBase or modified in the last 30 daysfromwbtools.literature.corpusimportCorpusManagerimportdatetimeone_month_ago=(datetime.datetime.now()-datetime.timedelta(days=30)).strftime("%M/%D/%Y")cm=CorpusManager()cm.load_from_wb_database(db_name="wb_dbname",db_user="wb_dbuser",db_password="wb_dbpasswd",db_host="wb_dbhost",from_date=one_month_ago,max_num_papers=50,file_server_host="file_server_base_url",file_server_user="username",file_server_passwd="password")paper_ids=[paper.paper_idforpaperincm.get_all_papers()]Get the latest 50 papers added to WormBase or modified that have a final pdf version and have been flagged by WB paper classification pipeline, excluding reviews and papers with temp files only (proofs)fromwbtools.literature.corpusimportCorpusManagerimportdatetimecm=CorpusManager()cm.load_from_wb_database(db_name="wb_dbname",db_user="wb_dbuser",db_password="wb_dbpasswd",db_host="wb_dbhost",max_num_papers=50,must_be_autclass_flagged=True,exclude_pap_types=['Review'],exclude_temp_pdf=True,file_server_host="file_server_base_url",file_server_user="username",file_server_passwd="password")paper_ids=[paper.paper_idforpaperincm.get_all_papers()]
Package: wbuilder
wBuilderwBuilder
    (c) 2020 Rodney Maniego Jr.
    MIT LicenseHTML template generator for Python.Read:Introducing wBuilder: An HTML5 Generator for PythonRequirements:Arkivist, BS4, NamariFuture FeaturesSimple JQuery generatorWebBuilder UsageImportfromwbuilderimportWebBuilderInitializehtml=WebBuilder()html=WebBuilder("web.html")html=WebBuilder(html="<span id='label'></span>")HTML headhtml.prop("html","lang","en")html.at("head").append("title",text="WebBuilder")html.at("head").append("meta",charset="UTF-8")html.at("head").append("meta",name="viewport",content="width=device-width, initial-scale=1, shrink-to-fit=no")html.at("head").append("link",rel="icon",href="icon.png",type_="image/png",sizes="96x96",static=True)html.at("head").append("link",rel="stylesheet",href="reset.css",static=True)html.at("head").append("link",rel="stylesheet",href="design.css")Basic usagehtml.at("body").append("div",id="#popup .popup")html.at("#popup").append("header3",id=".header",text="Welcome!")CSS selectorshtml.at("#popup").append("span",id="#popup-txt .popup-txt",text="Hello, user!")html.at("#popup").append("button",id="#ok .blue",text="OK")# CSS as a stringhtml.inlineCss("div",{"color":"#000"})html.inlineCss("div","font-size:12px;",reset=True))# CSS as a dictionarydesign={"font-size":"12px","color":"#222","background-color":"#f0f0f0"}html.at("#popup").append("div",id=".message",text="Lorem ipsum...",style=design)Update element propertieshtml.prop("html","lang","en")html.prop("#popup","data-name","container")html.prop("#popup","data-title","message")html.prop("div","style","font-size:12px;")Preview HTMLcontent=html.build()print(content)Save to HTML filehtml.save()html.save("saveAsNewFile.html")Save to/Read from JSON filehtml.toJson("test.json")html.fromJson("test.json")
Package: wb_vandalism
wb-wandalism: Wikidata anti-vandalism systemThis library provides a set of utilities for building and maintaining
edit quality prediction models for WikiBase wikis.Installation:pip installwb-vandalismRepository:https://github.com/Ladsgroup/wb-vandalismReport bugs:wb_vandalism @ phabricatorLicense:MITCompatible with Python 3.x only.AuthorsAaron Halfakerahalfaker@wikimedia.orghttp://halfaker.infoAmir SarabadaniLadsgroup AT gmail.comhttps://wikimediafoundation.org/wiki/User:Ladsgroup
Package: wbx-admin-utils
Usage:( You might need to replace "python3" for "python3" )python3 -m wbx_admin_utils [options] command subcommand [parameters]
python3 -m wbx_admin_utils help commands # shows the full list of available commmandsCommands:help
   commands : display list of available commands
group
   list : list all groups in admin org
   list-users <group_id> : list user ids (max 500) in given group id
   add-user <email|csvFile> <group_id> : add user in given group id
   remove-user <email|csvFile> <group_id> : remove user from given group id
user
   details <email|user_id> : print user details in json
   tokens <email|csvFile> : list user(s) access token
   reset <email|csvFile> : reset user(s) access token
   activate <Yes|No> <email|csvFile> : activate (Yes) or deactivate (No) user(s)
   delete <email|csvFile> : delete user(s)
   get-vm <email> : dump user voicemail settings in json format
   add-vm <email|csvFile> <base user email> : set user(s) voicemail options based on another user's voicemail settings
co
   list-messages <email, 'options'> : list messages sent by a user
   list-space-members <id> : list menbers in spaceOptions:-t <token> Adds access token as a parameter. Will be read from AUTH_BEARER Env Variable by defaut. Yyou can get your personal access token fromwebex developper-d <debugLevel> from 0 to 3 (most verbose). Default is 2 (info level)co (compliance officer) commandslist-messages option format is in json format as per the 'event' API commandall results are displayed in .CSV formatExamples:# List user groups in CH Org
python3 -m wbx_admin_utils group list

# List users in group id
python3 -m wbx_admin_utils group list-users ``<groupid>``

# Add or remove users in specified group id
python3 -m wbx_admin_utils group add-user user1@customer.com ``<groupid>``
python3 -m wbx_admin_utils group remove-user /tmp/users.csv ``<groupid>``

# Reset (force log-out) user access tokens
python3 -m wbx_admin_utils user reset /tmp/users.csv

# Activate or deactivate users
python3 -m wbx_admin_utils user activate Yes user1@customer.com
python3 -m wbx_admin_utils user activate No /tmp/users.csv

# list messages sent by user (default from = 30 days ago, default to = today)
python3 -m wbx_admin_utils co list-messages user1@customer.com > report.csv 
python3 -m wbx_admin_utils co list-messages user1@customer.com '{"from":"2022-10-20T00:00:00.000Z", "to":"2023-10-20T00:00:00.000Z" }'

# list members of a space  
python3 -m wbx_admin_utils co list-space-members <spaceid>CSV input file format:email, comments
user1@customer.com, some optinal info about user1
user2@customer.com, some optinal info about user1The first column is currenlty processed and must be titled 'email' other columns are optional and ignored.
Package: wbx-cpl
Commands utilities for Webex Compliance OfficersUsage:Usage: 
  python -m wbx_cpl [OPTIONS] COMMAND [ARGS]...
  python -m wbx_cpl COMMAND --help 

Options:
  --version            Show the version and exit.
  -t, --token TEXT     Your access token. AUTH_BEARER env variable by default.
                       You can find your personal token at
                       https://developer.webex.com/docs/getting-started.
  -d, --debug INTEGER  Debug level.
  --help               Show this message and exit.

Commands:
  download-msg-files     Download files attached to given message ID.
  meeting-messages       List user messages posted in meeting ID.
  meeting-participants   List meeting participants of given meeting ID.
  meeting-user-messages  List (up to 1000) messages sent in meetings by...
  recording-details      Print detais of given recording ID.
  recordings             List recordings for given webex site
  space-members          List emails of members in given space ID.
  space-messages         List messages in given space ID.
  user-messages          List (up to 1000) messages sent by given user...Examples:# List messages sent in meetings by given user email.
python -m wbx_cpl  meeting-user-messages bc@4bfzj5.onmicrosoft.com

# List meeting participants in given meeting ID.
python -m wbx_cpl  meeting-participants <meetingID>

# list messages posted in meeting given meeting ID, save in CSV file,
python -m wbx_cpl  meeting-messages -c /tmp/meeting-messages.csv <meetingID>

# List recordings in given webex site from 15th of Jan 2024. limit results to one recording.
python -m wbx_cpl  recordings -c /tmp/recs.csv -f {"from":"2024-01-15T00:00:00.000Z","max":1} stephane-gaxe7-sandbox.webex.com

# Get recording details from given recording ID.
python -m wbx_cpl  recording-details <recordingID>

# List messages posted by user email in any space.
python -m wbx_cpl  user-messages bc@4bfzj5.onmicrosoft.com

# list user messages, add space tite and save to file.
python -m wbx_cpl  user-messages -c /tmp/messagesTitles.csv -t -f {"max":5} bc@4bfzj5.onmicrosoft.com

# List messages posted in given space ID. Save to file, limit search to 5 messages per user.
python -m wbx_cpl  space-messages -c /tmp/spacemessages.csv -f {"max":5} <spaceID>

# List members in given space ID, save to file.
python -m wbx_cpl  space-members -c /tmp/members.csv <spaceID>

# Download files attached to message id, save files under /tmp.
python -m wbx_cpl  download-msg-files -d /tmp/ <messageID>Notes:the --filter option follows the input parameters ofWebex Events End Point
Package: wbxml
Python wrapper for libwbxml.>>>importwbxml>>>wbxml.xml_to_wbxml(xml)#converts xml to wbxml>>>wbxml.wbxml_to_xml(w)# converts wbxml to xmlInstallationJust type in your shell:$pipinstallwbxmlIf yourwbxml.his not in the/usr/includedirectory:$pipinstall--global-option=build_ext--global-option="-I<include_dir>"wbxmlRequirementsYou need to havelibwbxmlinstalled.In Ubuntu 14.04 install:$sudoapt-getinstalllibwbxml2-devContributeFork repoCode your changesSubmit pull requestProfit!
Package: wca-django-allauth
World Cube AssociationOAuth2 provider fordjango-allauth.InstallationInstall the package$ pip install wca-django-allauthsettings.pyINSTALLED_APPS = [
    # ... django and allauth apps

    'wca_allauth',
]Callback URLhttp://example.com/accounts/worldcubeassociation/login/callback/Login URLhttp://example.com/accounts/worldcubeassociation/login