Saravanan666/pypi-org huggingface dataset:
Package: share-file-qr
share-file-qrShare files from the terminal of your computer to a smartphone by scanning a QR code.This repo is a Python re-implementation of the originalGo versionbyClaudio d'Angelis.InstallationThis program requires Python 3.9 or later.Installation:pipx install share-file-qrfind install instructions forpipxon their websitePrincipleThe principle is the same as in the Go version:you give a file to the tool in your computer's terminalthe tool serves this file with an HTTP serverthe tool gives you a QR code leading to the URL. This URL points to the server
and the file on the local network.you scan the QR code with your smartphone and get the URL to your fileyou open the URL with your smartphone's web browser, and download startsonce download finishes on your smartphone, you stop the tool in your terminalUsageFirst, make sure your computer and your smartphone are connected to the same local
network. This is in general the case if they are connected to the same router in your
home. If you have doubts, check their IP addresses. Please also be aware that
this tool does not work with IPv6.Once connectivity issues are solved, run the tool by providing a file:At this point, you should have a QR code displayed directly in your terminal, or in
your computer's browser as an SVG image.Once you have a QR code (either directly from the terminal or from your computer's
browser) scan it with your smartphone to get a URL to the file and download it in
your web browser. Depending on your phone's OS you may have to scan the QR
code differently:iOS, use the standard camera appAndroid: tryBinary EyebyMarkus FishDevelopment notesLicenseGPLv3AuthorsThis Python tool was implemented byPierre Walch,
based on ideas from a Go project byClaudio d'Angelis.Instructions for publishing to PyPIenter the venv of the projectpython setup.py sdisttest:twine upload -r testpypi dist/*real:twine upload dist/*
Package: sharefiles
Sharefilessharefiles is a Python 3 library and script for easily sharing files of directory on network.InstallationUse the package managerpipto install sharefiles.pipinstallgit+git://github.com/deduble/sharefiles.gitUsageExecute the installed binarysharefilesorpython-msharefilesAlternatively you can share custom directories and with custom portsharefiles8080--directory/path/to/directorywanted/directoryDisclaimerAnyone with the access to your network can reach the files. This is just uploading enabled handler on http.server. I made this for personal use earlier. You are welcome to contribute.LicenseMIT
Package: sharefile-webui
sharefile-webuiSimple and lightweight responsive web app for sharing files via URL link. Supports drag&drop chunk upload of large files, basic file and directory operations.
Application is based on Python Flask, Flask-Restful and React for simple file
administration. It can be comfortebly run on Raspberry Pi.Usagesharefile-webui--help
usage:sharefile-webui[-h][-oHOST][-pPORT][-uADD_USER][-rREMOVE_USER][-l][-t][-c]share_directory

ShareFilesWEBUIv1.5.0

positionalarguments:share_directoryDirectorywheresharesarestored.

optionalarguments:-h,--helpshowthishelpmessageandexit-oHOST,--hostHOSTAPPserverhost-pPORT,--portPORTAPPserverport-uADD_USER,--add-userADD_USERAddadminuserinuser@passwordformat.-rREMOVE_USER,--remove-userREMOVE_USERRemoveadminuserfromuserslist.-l,--list-usersListexistingadminusers-t,--list-tokensListfiletokensintostdout-c,--clear-tokensClearfiletokensdatabaseExample:sharefile-webui-uusername@password
sharefile-webui-p5555/tmpThis example will share/tmpdirectory onhttp://localhost:5555By requesting this URL you will be prompted to fill user and password
to access admin UI to manage file sharing. For each file of directory you can
generate secure token. When secure token is generated file could be shared
via URL link like thishttp://localhost:5555/share/directory-name/file-name?token=12345.Instalationpip3installsharefile-webuisystemd configurationPORT=5555SHARE_DIR=/tmpecho"[Unit]Description=ShareFileWebUI[Service]ExecStart=/bin/bash -c \"/usr/local/bin/sharefile-webui -p${PORT}${SHARE_DIR}>> /var/log/sharefile-webui.log 2>&1 &\"ExecStop=killall sharefile-webuiExecRestart=/bin/bash -c \"killall sharefile-webui && /usr/local/bin/sharefile-webui  -p${PORT}${SHARE_DIR}>> /var/log/sharefile-webui.log 2>&1 &\"ExecStatus=ps -ax | grep sharefile-webuiType=forking[Install]WantedBy=multi-user.target">/lib/systemd/system/sharefile-webui.service
systemctlenablesharefile-webui.serviceafter that is possible to usesystemctlstartsharefile-webui.serviceBuild it by your ownJSBuild JS production version is not nessesry, because it is already buid insharefile_webui/static/jsdirectory.
But if you want to change something in UI, lets do it by running:sudoaptupdate
sudoaptinstallnodejsnpmcdsharefile_webui_js
npmrunbuildor for comfortable local developmentnpmrunwatchwith auto build feature if any file is changed.Pycdsharefile_webui
python3setup.pybuildor local installationcdsharefile_webui
python3setup.pyinstallTips and TricksUpload file from command lineIt is possile to simply upload file by CURL command via route/api/upload/.usage:curl-XPOST-H"Content-Type: multipart/form-data"-u"admin:pass"-F"file=@FILENAME""http://localhost:5000/api/upload/DIRECTORY"It is possible to upload file by CURL and share file automatically at ones via route/api/uploadandshare/usage:curl-XPOST-H"Content-Type: multipart/form-data"-u"admin:pass"-F"file=@FILENAME""http://localhost:5000/api/uploadandshare/DIRECTORY"Screenshot
Package: shareinator
Shareinator is a tool to easily transfer files over a network using ssh.It usesopenssh-serverandrsync. It currently requires root privilegesInstallation$ pip3 install shareinatorUsage$ sudo-E~/.local/bin/shareinator- This opens a GUI for shareinator. Click on Receive to receive a file or Send to send one.You can also use CLI to send or receive files.$ sudo-E~/.local/bin/shareinator-r- This is used to receive a file. It will ask for confirmation when someone tries to send a file.$ sudo-E~/.local/bin/shareinator-s-fFILEPATH-
To send a file. First it scans the network and gives a list of hostnames with their IP addresses. You have few options here.Options:list - Lists out all the online hostsselect NUMBER - Select the host to which the file is to transferredrefresh - Scan again for hostsquit - Exit the programDevelopment Setupgit clone https://github.com/GDGVIT/ssh.git
cd ssh
./setup.sh
source venv/bin/activate
Package: sharejeeni
This package helps to download files from sharepoint site using client id , client secret and tenant id via Azure Active Directory.First You need to register an App on Azure Active Directory and get tenant id , client id and client secret.Also you need sharepoint site domain name and site url.Code Eg:import sharejeeni

    client_id = "3b724c43-7f32-4d6d-861f-xxxx"
    client_secret = "5yB8Q~xxxxxxxxxxxxxxx"
    tenant_id = 'b71957ca-e23b-4df6-b963-xxxxxx'
    
    sharepoint_url =  "https://xxxx.sharepoint.com"
    Site_name = 'TrialSite' # sharepoint site name
    domain = 'xxxx.sharepoint.com'

    folder = 'Trial_Folder' #Folder name
    subfolder = 'SubTrial_Folder' #Subfolder name
    file = "subfile.csv" #File name
    save_as = 'savedfile.csv' 


token = sharejeeni.request_token(tenant_id,client_secret,client_id)

site = sharejeeni.get_site(token,Site_name,domain)

sharejeeni.Get().file(file,token,site,save_as)for file inside foldersharejeeni.Get().folder(folder).file(file,token,site,save_as)for file in subfolderssharejeeni.Get().folder(folder).subfolder(subfolder).file(file,token,site,save_as)
Package: sharelatex
Python-sharelatex is a library to interact withhttps://sharelatex.irisa.fr. It
also includes a command line tools to sync your remote project with Git. This
allows you to work offline on your project and later sync your local copy with
the remote one.LinksSource:https://gitlab.inria.fr/sed-rennes/sharelatexDocumentation:https://sed-rennes.gitlabpages.inria.fr/sharelatex/python-sharelatexMattermost:https://mattermost.irisa.fr/sed-rba/channels/sharelatex-usersPypi:https://pypi.org/project/sharelatex/The code is currently experimental and under development. Use it with caution.Installation# Latest stable versionpipinstallsharelatex# Development versiongitclonehttps://gitlab.inria.fr/sed-rennes/sharelatex/python-sharelatexcdpython-sharelatexpipinstall[-e].Compatibility notesThe tool is targetting the community edition of ShareLatex/Overleaf and we are
testing it on:https://sharelatex.irisa.fr–legacyauthentication methodhttps://overleaf.irisa.fr–gitlabauthentication methodOverleaf CE (3.0.1) –communityauthentication methodPersistent sessionsSessions are persistent and store in the application directory (exact might
differ on the OS used). Is usesappdirsinternally.Note on passwords managementPasswords are stored in your keyring service (Keychain, Kwallet …) thanks to
thekeyringlibrary. Please refer to the
dedicated documentation for more information.Quick examplesDisplay the possible actionsslatexis a subcommand of git that calls thegit-slatexprogramm shipped by this project.$)gitslatexUsage:git-slatex[OPTIONS]COMMAND[ARGS]...Options:--helpShowthismessageandexit.Commands:cloneGet(clone)thefilesfromsharelatexprojetURLandcratea...compileCompiletheremoteversionofaprojectnewUploadthecurrentdirectoryasanewsharelatexprojectpullPullthefilesfromsharelatex.pushPushthecommitedchangesbacktosharelatexFor instance you can get the help on a specific sub-command with the following:gitslatexclone--helpGet an existing project on slatexmkdirtestcdtest# download all files of a remote projectgitslatexclone<project_URL><local_path_to_project>Editing and pushing back to slatex# edit your files
# commit, commit, commit ...
#
# Push back your change to sharelatexgitslatexpushConcurrent updates may occur between your local files (because you changed them)
and the remote ones (because you collaborators changed them). So before pushing,
we try to make sure the merge between the remote copy and the local ones is ok.
You’ll have to resolve the conflict manually (as usual with Git) and attempt a
new push.Pull changes from sharelatex to local (like a git pull)# Pull changes from sharelatexgitslatexpullCreate a remote project from a local gitgitslatexnew<base_server_URL><new_project_name>
Package: shareloc
Shareloc, a simple remote sensing geometric libraryOverview.Why Shareloc.Quick Start.Documentation.Contribution.OverviewShareloc is an open source remote sensing geolocation library.It performs image coordinates projections between sensor and ground and vice versa.
Shareloc handles RPC models and direct location grids.Direct localization at constant elevationDirect localization on DEMShareloc main functions :Direct/inverse localization at constant elevation (ellipsoidal earth model).Direct localization on 2.5D DEM (w.r.t ellipsoid or geoid).Line of sight triangulation.Rectification grid creation.Rectification grid interpolation.Why SharelocShareloc development has been motivated by the need of a full python component for CNES studies and the need of an underlying geometrical component forCARS.Quick startInstallationShareloc can be installed in avirtualenvfrom Pypi repository:python -m venv shareloc-venv
source shareloc-venv/bin/activate
pip install --upgrade pip
pip install sharelocFor developers, Shareloc can be installed from source in avirtualenvusing the following commands:git clone https://github.com/CNES/shareloc
cd shareloc
make install
source venv/bin/activate # to go in installed dev environmentDependencies :git,makeImportTo test the import of the library:python3
>>> import sharelocAnd go toGetting startedinShareloc Documentationfor an example.DocumentationGo toShareloc Main DocumentationContributionTo do a bug report or a contribution, see theContribution Guide.
For project evolution, seeChangelog
Package: sharepathway
SharePathway is a python package for KEGG pathway enrichment analysis with multiple gene lists.There have been dozens of tools or web servers for enrichment analysis using a list of candidate genes from some kinds of high throughput experiments,such as Exome-Seq and RNA-Seq. But the reality is that we usually get multiple gene lists, each from one sample or patient. We can do enrichment analysis for each sample then check which pathway or module is enriched. This strategy is simple and commonly used in cancer study. But we may lose some important driver genes.SharePathway is motivated at providing users a simple and easy-to-use tool for enrichment analysis on multiple lists of genes simultaneously, which may help gain insight into the underlying biological background of these lists of genes.InstallationThis version is for both python2 and python3.
The first step is to install Python. Python is available from thePython project page. The next step is install sharepathway.Install from PyPi usingpip, a
package manager for Python:$ pip install sharepathwayOr, you can download the source code atGithubor atPyPifor SharePathway, and then run:$ python setup.py installUsageAssume you have put all the path of your gene list files in one summary file genelists.txt (one path per line) in the directory ~/data/. Go into this directory,open python and run the scripts below. The result will be saved in the result.html file:import sharepathway as sp
filein="genelists.txt"
fileout="result"
sp.Run(fi=filein,fo=fileout,species='hsa',r=0.1)The default value of species is ‘hsa’, represents human species.
The ratio r is the min threshold. The default value is 0.01.
Entrez Gene ID is supported. The result will be output to a html file.Output DescriptionSummaryThis part summarizes the input data.DetailsThis part list the ranked pathways and related information as shown below.ColumnDescriptionPathwayPathway name and hyperlink to modified KEGG mapGenesKEGG ID of the genes in the pathwaypCountTotal number of genes in the pathwayCountThe number of recognized genes from user inputRatioThe percentage of lists that containing genes in the pathwayPvalueThe combined p valude from Fisher’s MethodEASEEASE score defined by DAVID, from merged gene listFETP value of the Fisher Exact Test, from merged gene listSamplesThe number of genes in the pathway in each listTest dataSee the gene list files and genelists.txt file in data/. This is just toy data.ContactAuthor: Guipeng LiEmail:guipeng.lee@gmail.com
Package: sharePlayer-mplayer.py
mplayer.py: Lightweight and dynamic MPlayer wrapper with a Pythonic APImplayer.py provides several classes for easily using MPlayer in Python.* Features- Pythonic interfaces to MPlayer- Full support for MPlayer commands and properties (generated at runtime)- asyncore, PyGTK, and PyQt integration- MS Windows support- Python 3 compatibility* Requirements- MPlayer >= 1.0rc3  http://www.mplayerhq.hu/- Python >= 2.6      http://www.python.org/Optional- PyGTK >= 2.12   http://www.pygtk.org/- PyQt >= 4.5    http://www.riverbankcomputing.co.uk/* InstallationTo install (having made sure that the dependencies are installed andworking) do (as root normally):python setup.py install(You can optionally provide a prefix using the following form,but if you do remember to setup PYTHONPATH accordingly)python setup.py install [--prefix=<prefix>]* DocumentationConsult the wiki pages at http://code.google.com/p/python-mplayer/* Copyright and LicensingThe mplayer.py package and submodules (mplayer/*.py) are released underthe terms of LGPL 3. See LICENSE for the full license.mplayer.py is Copyright (C) 2007-2011  Darwin M. Bautista.The LGPL is Copyright (C) Free Software Foundation.* Contact InfoProject Page: http://code.google.com/p/python-mplayer/URL and download: http://pypi.python.org/pypi/mplayer.py/Author and Maintainer: Darwin M. Bautista <daruuin@gmail.com>
Package: sharepointcacheprimer
OverviewThe first time a browser hits a sharepoint site after a restart, the
caches are empty, so the page can take a while to load. One can script
something to silently hit a sharepoint web-frontend, causing it to build
caches and preventing any real people from experiencing that.This tool does this for a specific circumstance where it’s kind of hard
to script it without better tools - where normal NTML authentication
doesn’t work, because there is ADFSv3 authentication configured, and
where there may be a number of web-frontends behind a load balancer.I don’t know why this is required. I’m not a sharepoint admin. Maybe
it’s an artifact of a particular setup.InstallationThis may work in Python 2, but many distributions of Python 2 do not
include urllib that has SNI support. Since this is a sysadmin tool, you
probably want it to “just work”, so “just use Python 3.4”.Simple install: pip install sharepointcacheprimerUsageThe pypi package installs an executable in the standard python location,
called ‘sharepointcacheprimer‘.usage: sharepointcacheprimer [-h] config site [site ...]
example: sharepointcacheprimer myconfig.ini mysite.com mysite2.comThis will connect to a sharepoint site, authenticate and load a page
silently. It is suited to running as a cronjob/scheduled task.The configuration file is formatted as a .ini. The packages ships with
an example file that is installed in PYTHONROOT/doc/, and described
below.Configuration>From the includeddoc/example.iniEach section is either a site definition or a cookieset definition.A Site DefinitionThis is a sharepoint site, with ADFS credentials and an optional
reference to a cookieset to use.[example.com]               ; Site: example.com
username = domain\user1     ; ADFS username
password = password1        ; ADFS password
url = http://example.com    ; URL that for site to prime
cookielist = examplecookies ; Optional sectionname for Cookie SetsA Cookieset DefinitionEvery line is a cookie, as “COOKIENAME = value1,value2,value3”. For each
value of each cookie, the site will be primed once. This allows a site
pool that uses a cookie-based load balancer to force iterating through
every web frontend via cookies.In the below example, the cookie “LB-COOKIE” will be set for each of
three attempts, using the values abc1, abc2, and abc3 respectively. If
more than one list of cookies is below, that will just be an additional
iteration. For example, another line with 2 more values would cause a
total of 5 priming attempts with 5 unique cookie values.[examplecookies]            ; The label referenced above
LB-COOKIE = abc1,abc2,abc3  ; A cookie list, comma-delimited
Package: sharepointing
SharepointingA library to establish connection to sharepoint. Then operate on this connection. Right now it's only possible to upload files.This library depends on office 365 library:Office365-REST-Python-Client, and it will use active directory authentication to connect to SharePoint.InstallationIn order to install this library you need to obtain anSSH codeUse pip to install this library from Github:pip install sharepointingRequirementsFirst you need to initialize the the sharepoint connection, which is an object.
You have two options, either use embedded credentials in environment variables:USERNAMEfor office365 emailPASSWORDfor office365 passwordThen you can use this call:sp = sharepointing.sp_site(site_url)The second option is to provide the credentials in the class call:sp = sharepointing.sp_site(site_url,username,password)Once the object is created successfully, you can call useupload_filemethod to upload the files to sharepoiontdecode_link functionThis function will take any full link from SharePoint and can give back two two options
1 > The site_url
2 > The target folder
3 > Both as list
Instructions: Using your browser, open your SharePoint site and navigate to the target folder
Copy the link from the browser, and provide it here.Example 1 - upload_filesite_url = "https://companysite.sharepoint.com/teams/teamsname"
target = "/teams/teamsname/Shared Documents/General/"
file = 'file.txt'
sp = sharepointing.sp_site(site_url)
sp.upload_file(file,target)Example 2 - decode_linkfull_link = "https://companysite.sharepoint.com/teams/teamsname/Shared%20Documents/Forms/AllItems.aspx?id=%2Fteams%teamsname%2FShared%20Documents%2FGeneral%2FSales%20Management%2F99%2E%20Resources%2F02%2E%20First%20Region&viewid=ecdf0311%2De700%2D4d9b%2Db7d3%2D6eaecaf18c76"
site_url = decode_link(full_link,1)
target = decode_link(full_link,2)Example 3 - download_file# Get the target url of where file is
sp_url = "https://excellentproject.sharepoint.com/teams/MarketingTeam/Shared%20Documents/Forms/AllItems.aspx?id=%2Fteams%2FMarketingTeam%2FShared%20Documents%2FGeneral%2FMarketing%20Reports%2Fdata&viewid=ecdf0311dddd9dbddd7d3%2Dddddddsad"

# Extract the site url and the target folder
site_url,target_folder = decode_link(sp_url,3)

# Define the file name 'myfile.csv' and construct its full path
remote_file = os.path.join(target_folder,'myfile.csv')

# Local folder path, can be referring to anything
local_folder = ""

# Initialize the SharePoint site object
sp = sp_site(site_url)

# Execute the recieve
sp.download_file(remote_file,local_folder)
Package: sharepointio
An easy use of Office365-REST-Python-Client to download/upload/list sharepoint filesHow to useInit sharepoint connexionfrom sharepointio import sharepointiotenant = ‘https://mypersonnal.sharepoint.com’site = ‘/sites/12345-MyTeams-Channel’sharepoint = sharepointio.SharePointBytesIO(tenant, site, username=USERNAME, password=PASSWORD)Commandssharepoint.read(path):
Read file in the given pathsharepoint.list_files(folder, site=None, keep_only=None, start_with=None, str_contains=None):
List all files in a folder. Output is a Pandas dataframe.sharepoint.list_folders(folder):
List all folders in a foldersharepoint.move(file, old_path, new_path, site=None):
Move file to another directorysharepoint.copy(old_path, new_path):
Copy file to another directorysharepoint.download(file, download_path=None, get_download_path=False):
Download file in a temporary directoryChangelog0.0.4- Update list_files : add security in case of max rate exceeded
- Update list_folder : add security in case of max rate exceeded0.0.3- Update download : Error handling due to too many attempts has been incorporated. Bugs have been fixed.0.0.2:Update list_files : Automatically read all “Email%20Messages” folders received on Sharepoint when a new folder is automatically created by Sharepoint. The function outputs a pandas table with the following fields : name, date_created, date_lastupdate, ServerRelativeUrlUpdate download : new field full_URL, allows to pass the links of the ServerRelativeUrl field in list_files.LicenseSharepointIO is licensed under the Apache 2.0 license.