Saravanan666/pypi-org huggingface dataset:
Package: onedrive-sharepoint
Automation of some processes on office365Require :pip install Office365-REST-Python-Client1.Create session userfrom onedrive_sharepoint.main import OneDrive

email = "XXXXXXXXXXXXXXXXXXXXXX"
password = "XXXXXXXXXXXXXXXXXXXXXX"
endpoint = "https://<tenant_name>.sharepoint.com/personal/<username>" (for onedrive)
type = "onedrive"

session = OneDrive(email=email, password=password, endpoint=endpoint, type=type)type takes the values "onedrive" and "sharepoint"2.Get foldersfolders = session.get_folders()

for folder in folders:  

    print(folder.name)Folder PropertiesTo see all the properties of a file, use thepropertiesattribute.
For exampleprint(folder.properties)output{
    'Exists': True,
    'IsWOPIEnabled': False,
    'ItemCount': 0,
    'Name': <folder_name>,
    'ProgID': None,
    'ServerRelativeUrl': '/personal/<tenant>/Documents/<folder_name>',
    'TimeCreated': '2022-10-10T12:58:09Z',
    'TimeLastModified': '2022-10-10T12:58:09Z',
    'UniqueId': '16636378-fd57-4456-9e0f-1331d62f1385',
    'WelcomePage': ''
}3.Get filesfiles = session.get_files()

print(*files, seq="\n")File Properties{
    'CheckInComment': '',
    'CheckOutType': 2,
    'ContentTag': '{263E029D-372D-476B-9609-1F84D2C9B578},1,1',
    'CustomizedPageStatus': 0,
    'ETag': '"{263E029D-372D-476B-9609-1F84D2C9B578},1"',
    'Exists': True,
    'IrmEnabled': False,
    'Length': '36653',
    'Level': 1,
    'LinkingUri': '<tenant>/Documents/<filename>.csv?d=w263e029d372d476b96091f84d2c9b578',
    'LinkingUrl': '<tenant>/Documents/<filename>.csv?d=w263e029d372d476b96091f84d2c9b578',
    'MajorVersion': 1,
    'MinorVersion': 0,
    'Name': 'KOLDA.csv',
    'ServerRelativeUrl': '/personal/<tenant>/Documents/<filename>.csv',
    'TimeCreated': '2022-10-07T12:32:38Z',
    'TimeLastModified': '2022-10-07T12:32:38Z',
    'Title': None,
    'UIVersion': 512,
    'UIVersionLabel': '1.0',
    'UniqueId': '263e029d-372d-476b-9609-1f84d2c9b578'
}4.Create foldersession.create_folder(folder_name)5.Download files from foldersession.download_file(folder_name)6.Upload files local to [onedriver or sharepoint] foldersession.upload_files_on_folder(path_folder_name_local, folder_name_online)Upload single file on OneDrive|SharePointsession.upload_file_on_folder(path_file_name_local, folder_name_online)7.Share folder with Anonymoussession.share_folder(<folder_name>)outputLink like this => https://<tenant>.sharepoint.com/:f:/g/personal/<username>/EnhjYxZX_VZEng8TMdYvE4UB78vdTFHSEs3vc5FgqQ1A8Q
Package: onedrive-sharepoint-python-sdk
OneDrive and SharePoint Python SDKA Python SDK for accessing files in OneDrive & SharePoint using theMicrosoft Graph API.Functionality includes:Upload and download filesList files and folders in directoriesList the SharePoint sites that you followSearch for a SharePoint site and it's drivesInstallationRequires Python 3.7+pip install onedrive-sharepoint-python-sdkExamplesSee theexamplesfolder for more.OneDrivefrommsdriveimportOneDrivedrive=OneDrive("access_token_here")drive.download_item(item_path="/Documents/my-data.csv",file_path="my-data.csv")drive.upload_item(item_path="/Documents/new-or-existing-file.csv",file_path="new-or-existing-file.csv")SharePointfrommsdriveimportSharePointdrive=SharePoint("access_token_here")drive.download_item(drive_id="b!...",item_path="/General/shared-data.csv",file_path="shared-data.csv")drive.upload_item(drive_id="b!...",item_path="/General/new-or-existing-file.csv",file_path="new-or-existing-file.csv")AuthenticationThe SDK does not handle authentication, it presumes you already have a Microsoft access token which you pass into the constructor (seeauth example).Use a library likeMSALorAzure Identityto handle this.Local Developmentpip install -e .[tests]
pytest # run unit testsDeploymentBump the version inpyproject.tomlandsrc/msdrive/__init__.pyand then run theUpload Python Packagepipeline.
Package: one-eval
OneAPIUse a single line of code to call multiple model APIs similar to ChatGPT. Currently supported: Azure OpenAI Resource endpoint API, OpenAI Official API, and Anthropic Claude series model API.Installationpipinstall-Uone-evalUsage1. Set up your API information in the local configuration file.OpenAI config:{"api_key":"YOUR_API_KEY","api":"https://api.openai.com/v1","api_type":"open_ai"}Azure OpenAI config:{"api_key":"YOUR_API_KEY","api":"Replace with your Azure OpenAI resource's endpoint value.","api_type":"azure"}Anthropic config:{"api_key":"YOUR_API_KEY","api":"https://api.anthropic.com","api_type":"claude"}api_key: Obtain your OpenAI API key from theOpenAI websiteand your Claude API key from theAnthropic website.api: The base API used to send requests. You may also specify a proxy URL like: "https://your_proxy_domain/v1". For Azure APIs, you can find relevant information on the Azure resource dashboard. The API format is usually:https://{your_organization}.openai.azure.com/.api_type: Currently supported values are "open_ai", "azure", or "claude".2. Use with command linesEvaluate one sampleone-eval-line--config_fileCHANGE_TO_YOUR_CONFIG_PATH\--modelgpt-3.5-turbo\--prompt"Janet’s ducks lay 16 eggs per day. She eats three for breakfast every morning and bakes muffins for her friends every day with four. She sells the remainder at the farmers' market daily for$2per fresh duck egg. How much in dollars does she make every day at the farmers' market?"\--answers201002118\--target18Evaluate one fileone-eval-file--config_fileCHANGE_TO_YOUR_CONFIG_PATH\--eval_data_path\--output_path\--modelgpt-3.5-turbo\--verboseTrue
--
Package: onefactorauth
OneFactorAuthA tool to bypass 2 factor authentication.UsageInstallationpython3-mpipinstallonefactorauthSetupGo tohttps://receivesms.cc/sms/and choose a phone numberRun1fa config -p <phone_number>(ex:1fa config -p <31616099881>)Register the phone number under your account for 2 factor authenticationGo tohttps://receivesms.cc/sms/<phone_number> (ex:https://receivesms.cc/sms/31616099881) to see the text messageComplete the setup of this phone number in your account settingsTake note of the pattern of the message, eg. how it is structured, where the code isInvoking$: 1fa code --help

usage: 1fa code [-h] [-c] [-t TIMEOUT] [-p PATTERN] [-m MAX_TIME]

Get 1fa code

options:
  -h, --help            show this help message and exit
  -c, --clipboard       copy to clipboard
  -t TIMEOUT, --timeout TIMEOUT
                        timeout (s)
  -p PATTERN, --pattern PATTERN
                        regex pattern for passcode
  -m MAX_TIME, --max-time MAX_TIME
                        maximum age of the sms code msg (min)pattern for the passcode should have one capture group with the codeex: messages are likeSMS p***codes: 93209pattern ofSMS p\*\*\*codes: (\d+)ex: messages are likeYour Uber code is 43890pattern ofUber code is (\d+)(partial matches are acceptablebind1fa code --pattern='code is (\d+)' --clipboardto a keybindwindows: usewinhotkeymacos:automator or icanhazshortcutlinux: depends on your desktop environment, there's something in the built in settings for gnome and xfceHowIt useshttps://receivesms.cc/sms/to receive and scrape texts for your text passcodeWhyUCLA makes me 2fa every time I wanna log into my portal. No one's trying to hack my BruinBill, UCLA, just lemme use my account. I have 2fa setup for GitHub and Discord which are likelier targets for hacking and neither of them ask me for 2fa on every login.LicenseDo WTF You Want To Public LicenseDevelopersDeveloped byRonak Badhe (r2dev2)
Package: onefeed
OneFeedOneFeed is a customizable feed engine that subscribes to multiple info sources via crawler. You can use it just like your favorite info websites except that it is all in one. It will also support AI based feed recommendation system in the future, however, controlled only by yourself.InstallpipinstallonefeedUsageonefeedfetch# crawl the info, or you can just skip this since the servier will fetch automaticallyonefeedstart# start the server
Package: onefootball-network
onefootball_networkPython client for theOneFootball Network APIThis package contains a python client for the OneFootball Network API. It allows OneFootball’s content partners to publish articles onto the OneFootball platform. It also allows partners to update and delete articles that they have already published to the OneFootball platform.The API can be used by partners to set up their own services such that content published on their sites is automatically sent to OneFootball and natively integrated onto the OneFootball platform for OneFootball users.Please note that the OneFootball Network is a closed, invite-only platform and only authorized content partners are able to use the OneFootball Network API.🚀 QuickstartYou can installonefootball-network-api-pyfrom pip:pipinstallonefootball-network-api-pyThe package includes aOneFootballNetworkclass which has all methods you need to interact with the api.# main.pyfromonefootball_networkimportOneFootballNetworkof=OneFootballNetwork()of.get_articles(external_id="25657")🔧 DevelopmentIf you want to contribute to this repository, clone the git repository and run:makedevelop
maketestmakeserve-docsRelease History0.1.0: first releaseContributingFork itCreate 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: oneforge
oneforge1Forge REST API wrapperInstalationoneforge is distributed on PyPI and is available on Linux/macOS and Windows and supports Python 3.6+.$pipinstall-UoneforgeUsagefromoneforgeimportOneForge,SYMBOLSoforge=OneForge(api_key='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')# Get quotesoforge.quotes(SYMBOLS)# Convert currencyoforge.convert('EUR','USD',100)
Package: onefuse
This is a context manager class available to Python that facilitates
easy API connectivity from a Python script host to a OneFuse host.InstallationYou will want to install the latest version that matches the version of your
OneFuse appliance. To find available versions the following command will
cause pip to throw an error showing available versions:$pip install onefuse==versionsTo install the OneFuse Python Module by version:$pip install onefuse==1.3.0To install the Latest OneFuse Python Module:$ pip install onefuseTo upgrade OneFuse to the latest version if OneFuse is already installed:$ pip install onefuse --upgradeUsageImport and instantiate a OneFuseManager:from onefuse.admin import OneFuseManager
ofm = OneFuseManager(username, password, host)Accepted optional kwargssource - default ‘PYTHON’ - allows to specify source so that this class can be called by other modules (CloudBolt, etc.). All OneFuse jobs will show this value as the Source of the jobprotocol - default ‘https’ - Allows to specify non-standard protocolport - default 443 - Allows to specify non-standard portverify_certs - default False - Allows to specify whether or not to verify OneFuse certslogger - allows you to pass in logger information. By default will log to onefuse.log as well as to console at the LOG_LEVEL set in configuration.globalsAuthentication, headers, and url creation is handled within this class,
freeing the caller from having to deal with these tasks.ExamplesExample 1 - Make custom REST calls to OneFuse:from onefuse.admin import OneFuseManager
ofm = OneFuseManager(username, password, host)
response = ofm.get('/namingPolicies/')Example 2 - Provision Naming with OOB methods:from onefuse.admin import OneFuseManager
ofm = OneFuseManager(username, password, host)
naming_json = ofm.provision_naming(self, policy_name, properties_stack,
                                   tracking_id)
Package: onefuzz
OneFuzz SDKThe Python SDK for OneFuzzSeeOnefuzzExamples$ pythonfrom onefuzz.api import Onefuzz, ContainerType
Onefuzz().template.libfuzzer.basic('my-second-job')ContributingThis project welcomes contributions and suggestions. Most contributions require you to
agree to a Contributor License Agreement (CLA) declaring that you have the right to,
and actually do, grant us the rights to use your contribution. For details, visithttps://cla.microsoft.com.When you submit a pull request, a CLA-bot will automatically determine whether you need
to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the
instructions provided by the bot. You will only need to do this once across all repositories using our CLA.This project has adopted theMicrosoft Open Source Code of Conduct.
For more information see theCode of Conduct FAQor contactopencode@microsoft.comwith any additional questions or comments.Reporting Security IssuesSecurity issues and bugs should be reported privately, via email, to the Microsoft Security
Response Center (MSRC) atsecure@microsoft.com. You should
receive a response within 24 hours. If for some reason you do not, please follow up via
email to ensure we received your original message. Further information, including theMSRC PGPkey, can be found in
theSecurity TechCenter.
Package: onefuzztypes
Python types used by OneFuzzSeeOnefuzz SDKContributingThis project welcomes contributions and suggestions. Most contributions require you to
agree to a Contributor License Agreement (CLA) declaring that you have the right to,
and actually do, grant us the rights to use your contribution. For details, visithttps://cla.microsoft.com.When you submit a pull request, a CLA-bot will automatically determine whether you need
to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the
instructions provided by the bot. You will only need to do this once across all repositories using our CLA.This project has adopted theMicrosoft Open Source Code of Conduct.
For more information see theCode of Conduct FAQor contactopencode@microsoft.comwith any additional questions or comments.Privacy & CookiesMicrosoft Privacy StatementReporting Security IssuesSecurity issues and bugs should be reported privately, via email, to the Microsoft Security
Response Center (MSRC) atsecure@microsoft.com. You should
receive a response within 24 hours. If for some reason you do not, please follow up via
email to ensure we received your original message. Further information, including theMSRC PGPkey, can be found in
theSecurity TechCenter.
Package: onefx
one-fxA toolkit for developers to simplify the transformation of nn.Module instances. It is modified fromPytorch.fx.installpipinstallonefxOneflowhas now addone-fxas default dependency. You can also install oneflow and use it asoneflow.fx.usageThe following code shows the basic usage. For more examples, please refer tohttps://github.com/Oneflow-Inc/one-fx/tree/main/onefx/exmaples.importoneflowimportonefxasfxclassMyModule(oneflow.nn.Module):def__init__(self,do_activation:bool=False):super().__init__()self.do_activation=do_activationself.linear=oneflow.nn.Linear(512,512)defforward(self,x):x=self.linear(x)x=oneflow.relu(x)y=oneflow.ones([2,3])ifself.do_activation:x=oneflow.relu(x)returnywithout_activation=MyModule(do_activation=False)with_activation=MyModule(do_activation=True)traced_without_activation=onefx.symbolic_trace(without_activation)print(traced_without_activation.code)"""def forward(self, x):linear = self.linear(x);  x = Nonereturn linear"""traced_with_activation=onefx.symbolic_trace(with_activation)print(traced_with_activation.code)"""wrap("oneflow._oneflow_internal._C.relu")def forward(self, x):linear = self.linear(x);  x = Nonerelu = oneflow._oneflow_internal._C.relu(linear);  linear = Nonereturn relu"""version maponeflowone-fx0.9.00.0.2
Package: one-gadget
one-gadget-libOne-gadget is code that invokes "/bin/sh" without any arguments, so all you need is jump to its address.
This library provides the function to find offset to one-gadget in libc.One-gadget-lib works with both python2 and python3.Installpip install one_gadgetorpip3 install one_gadgetDependenciescapstonepyelftoolsHowever, you don't have to install them explicitly.Usagefromone_gadgetimportgenerate_one_gadgetpath_to_libc='/lib/x86_64-linux-gnu/libc.so.6'foroffsetingenerate_one_gadget(path_to_libc):print(offset)Future worksSupport ARMSupport complex case like this:45216:       48 8d 35 43 13 38 00    lea    rsi,[rip+0x381343]        # 3c6560 <__abort_msg@@GLIBC_PRIVATE+0x980>
   4521d:       31 d2                   xor    edx,edx
   4521f:       bf 02 00 00 00          mov    edi,0x2
   45224:       48 89 5c 24 40          mov    QWORD PTR [rsp+0x40],rbx
   45229:       48 c7 44 24 48 00 00    mov    QWORD PTR [rsp+0x48],0x0
   45230:       00 00
   45232:       48 89 44 24 30          mov    QWORD PTR [rsp+0x30],rax
   45237:       48 8d 05 16 7b 14 00    lea    rax,[rip+0x147b16]        # 18cd54 <_libc_intl_domainname@@GLIBC_2.2.5+0x194>
   4523e:       48 89 44 24 38          mov    QWORD PTR [rsp+0x38],rax
   45243:       e8 a8 04 ff ff          call   356f0 <__sigaction@@GLIBC_2.2.5>
   45248:       48 8d 35 71 12 38 00    lea    rsi,[rip+0x381271]        # 3c64c0 <__abort_msg@@GLIBC_PRIVATE+0x8e0>
   4524f:       31 d2                   xor    edx,edx
   45251:       bf 03 00 00 00          mov    edi,0x3
   45256:       e8 95 04 ff ff          call   356f0 <__sigaction@@GLIBC_2.2.5>
   4525b:       31 d2                   xor    edx,edx
   4525d:       4c 89 e6                mov    rsi,r12
   45260:       bf 02 00 00 00          mov    edi,0x2
   45265:       e8 b6 04 ff ff          call   35720 <sigprocmask@@GLIBC_2.2.5>
   4526a:       48 8b 05 47 ec 37 00    mov    rax,QWORD PTR [rip+0x37ec47]        # 3c3eb8 <_IO_file_jumps@@GLIBC_2.2.5+0x7d8>
   45271:       48 8d 3d df 7a 14 00    lea    rdi,[rip+0x147adf]        # 18cd57 <_libc_intl_domainname@@GLIBC_2.2.5+0x197>
   45278:       48 8d 74 24 30          lea    rsi,[rsp+0x30]
   4527d:       c7 05 19 12 38 00 00    mov    DWORD PTR [rip+0x381219],0x0        # 3c64a0 <__abort_msg@@GLIBC_PRIVATE+0x8c0>
   45284:       00 00 00
   45287:       c7 05 13 12 38 00 00    mov    DWORD PTR [rip+0x381213],0x0        # 3c64a4 <__abort_msg@@GLIBC_PRIVATE+0x8c4>
   4528e:       00 00 00
   45291:       48 8b 10                mov    rdx,QWORD PTR [rax]
   45294:       e8 d7 74 08 00          call   cc770 <execve@@GLIBC_2.2.5>Referenceone_gadgetThe one-gadget in glibc(blog post by the author ofone_gadget)
Package: onegov.applications
Read the docs tofind out what constitutes a OneGov Cloud application.The resulting onegov.applications package in PyPI can be used to install all
OneGov applications in one sweep, with the guarantee that all of them were
tested with the same set of dependencies.That is the meta-package serves as a known good set of dependencies. As such
it allows for applications to be run in the same process usingonegov.server.Unlike other OneGov applications this package does not use Semantic Versioning,
instead opting for a simple year + build number scheme. For example:- 2017.1
- 2017.2
- 2017.14
- 2018.1Before this package is released all contained applications are tested using
their respective unit/integration tests. For this the latest release of
each application is acquired. Therefore each application should be released
separately first, before being included in onegov.applications.Create a New ReleaseTo create a new release for onegov.applications simply run the following
commands in the repository’s folder:pip install punch.py
punch --action build

git push
git push --tagsAdd a New ApplicationTo add a new application edit theapplication.jsonfile in theonegov/applicationsfolder. It will then automatically be included in
the build.In addition, each application has to be added to the .travis.yml build matrix.Run the TestsInstall tox and run it:pip install tox
toxLimit the tests to a specific python version:tox -e py27ConventionsOnegov Applications follows PEP8 as close as possible. To test for it run:tox -e pep8Build StatusLatest PyPI ReleaseLicenseonegov.applications is released under GPLv2ChangelogThis package does not contain a changelog by itself as it merely acts as a
meta-package for OneGov Cloud applications. To list the changes made to
these applications have a look at the individual application releases.To find out which application releases were included in a onegov.applications
release have a look at the requirements.txt on GitHub:https://github.com/OneGov/onegov.applications/releases
Package: onegov.chat
Run the TestsInstall tox and run it:pip install tox
toxLimit the tests to a specific python version:tox -e py27ConventionsOnegov Chat follows PEP8 as close as possible. To test for it run:tox -e pep8Onegov Chat usesSemantic VersioningBuild StatusCoverageLatest PyPI ReleaseLicenseonegov.chat is released under GPLv2Changelog0.4.0 (2019-01-25)Adds an optional subtype property to messages.
[href]0.3.0 (2019-01-24)Adds the ability to filter the collection by multiple types
[href]0.2.1 (2019-01-21)Improves support for files attached to messages.
[href]0.2.0 (2019-01-18)Adds the ability to store files with messages.
[href]0.1.2 (2018-10-10)Uses session instead of request for bound_messages.
[href]Requires Python 3.6.
[href]0.1.1 (2017-11-08)Adds the ability to specify the oder in which messages are loaded.
[href]0.1.0 (2017-07-10)Initial Release.
[href]
Package: onegov.edu
Policy package for onegov.edu sites
Changelog
=========1.0.3 (2014-09-10)onegov_edu_workflow: Added delete permission to editor in state Intern.
[lknoepfel]1.0.2 (2014-07-10)Add Viewlet to push ie11 into ie10 mode.
[tschanzt]1.0.1 (2014-06-12)Remove unused Page and Paragraph from onegovedu_workflow_policy
[elioschmutz]1.0 (2014-06-12)Init release
Package: onegov.foundation
Run the TestsInstall tox and run it:pip install tox
toxLimit the tests to a specific python version:tox -e py27ConventionsOnegov Foundation follows PEP8 as close as possible. To test for it run:tox -e pep8Onegov Foundation usesSemantic VersioningBuild StatusCoverageLatests PyPI ReleaseLicenseonegov.foundation is released under GPLv2Changelog0.4.1 (2018-03-26)Possibly fixes unrecognized expression errors in some browsers.
[href]Requires Python 3.6.
[href]0.4.0 (2017-10-25)Replaces rcssmin/pyscss with the dramatically faster libsass.
[href]0.3.0 (2017-07-10)Replace csscompress with rcssmin, which produces slightly bigger results but
does so in a much faster way.
[href]0.2.0 (2017-01-11)Adds the ability to limit the number of used foundation components.
[href]0.1.1 (2016-06-20)Removes the custom pyscss monkey patch, as the issues has been resolved.
[href]0.1.0 (2015-10-12)Removes Python 2.x support.
[href]0.0.4 (2015-07-13)Monkey-patches pyscss, to fix its Zurb Foundation compilation.
Seehttps://github.com/Kronuz/pyScss/pull/342.
[href]0.0.3 (2015-06-26)Adds support for onegov.core.upgrade
[href]Remove support for Python 3.3
[href]0.0.2 (2015-05-05)Upgrade to Zurb Foundation 5.5.2.
[href]0.0.1 (2015-04-29)Initial Release.
[href]