Saravanan666/pypi-org huggingface dataset:
Package: platform-authentication
# Integrating Platform Authentication ModuleStep 1: Install the Platform Authentication Modulepipinstallplatform-authenticationStep 2: Add to Installed AppsUpdate your project'sINSTALLED_APPSsetting insettings.py:INSTALLED_APPS=[# ...,'platform_authentication',]Step 3: Configure Middleware and Create Custom MiddlewareCreate a new filemiddleware.pyin your project and add the following code:fromplatform_authentication.middlewareimportJWTMiddleware# Project-Specific Imports# Relative ImportclassCustomJWTMiddleware(JWTMiddleware):def_is_excluded_endpoint(self,endpoint):"""Helper method to check if an endpoint is excluded from subscription checks."""pass# Your logic for checking if the endpoint is excluded from authentication checkNow, add the custom middleware to your project's middleware insettings.py:MIDDLEWARE=[# ...,'your_path_to.custom_middleware.CustomJWTMiddleware',# ...,]Step 4: Fake MigrationsRun the following command to fake migrations for theplatform_authenticationapp:pythonmanage.pymigrateplatform_authentication--fakeStep 5: Secret Key ReplacementReplace the secret key in your child project with the secret key fromplatform-authentication. Keep the secret key secure.# Example:# parent_project_secret_key = '<some_secret_key1>'# child_project_secret_key = '<parent_project_secret_key>'Note:Ensure to replace placeholder values (<some_secret_key1>,<parent_project_secret_key>) with your actual secret keys.ConfigurationTo configure the authentication settings for your project, you can use the following settings in your Django project'ssettings.pyfile:SIMPLE_JWT={'AUTH_HEADER_TYPES':('JWT',"Bearer",),'USER_ID_FIELD':'username',}Now, your Django project is integrated with theplatform_authenticationmodule for streamlined user authentication.
Package: platform-checks
Platform checksIntroductionAllow to perform checks on a PaaS.This is built for the Nasqueron servers infrastructure,
and will be useful on modern platform installations
like microservices, Docker and proxies/load balancers.Each check is compatible Nagios / NRPE.ConfigurationChecks can be defined in/etc/monitoring/checks.yml.The format of this file is:checks:<check_type>:<key>:<value>You can also use/usr/local/etc/monitoring/checks.ymlas path,
or.checks.ymlin the current working directory.Checks referencecheck_http_200Perform a HTTP request to a specific URL. The check success if HTTP code is 200.Available check typescheck_http_200: for sites you test at the back-end levelcheck_http_200_alive: for sites returning "ALIVE" as body contentcheck_http_200_proxy: flag site as verified at proxy level, not directly at the back-endcheck_http_200_alive_proxy: combine proxy and alive flagsConfiguration examplechecks:check_http_200:acme:http://localhost:41080/healthcachet:http://localhost:39080/api/v1/pingcheck_http_200_proxy:openfire:https://xmpp.nasqueron.org/login.jspcheck_http_200_alive_proxy:phabricator:https://devcentral.nasqueron.org/statusRun the checkFrom there, you've two ways to run the check:one check for all URLs: callcheck_http_200without argumentone check, one URL: callcheck_http_200 <service name>, for examplecheck_http_200 openfireYou can also create a check callingcheck_http_200without argument,
and it will test every site.check_container_presentRun the checkWith argument, check if the specified Docker container is running:check_container_present fooWithout argument, compare the list of containers present with
the expected one.The configuration is only required if you use it without argument.Available check typescheck_docker_containers: a list of expected containersConfiguration examplechecks:check_docker_containers:-foo-barRequirementsA Docker engine with CLI restructured, ie Docker 1.13+, is needed:To list the containers it usesdocker container ls.To get more info on a container down,
it usesdocker container inspect.Not featuresThis check isn't intended to detect containers
run with other engines likesystemd-nspawn.Return values of checksThe checks use the standard Nagios/NRPE exit codes:Exit codeDescription0OK1Warning2Critical3Unknown, for example a check config issueAs such they're compatible with Nagios, Incinga, Sensu, Shinken, etc.
Package: platformers
Optimus: HuggingFace-Aligned 3D-parallel backendflash attention 2 support on trainingflash attention 2 support on left-padding generation with kv cachefmha on GQA & MQAmulti model topology support by mpu contextmore model type for experiment (PPL,RM,...)GQA & MQA generation (left-padding)TODO:less model control optiongenerator based on non-batch flash attention and self-design cuda fused kernelFixed pipeline modelKV Cache management by pre-malloc and reuse (pre-calculate)
Package: platforminfo
PlatformInfobetaSystem info for Python made simple.
PlatformInfo is designed to provide a simple, yet granular interface to find system information on all major operating systems within Python.Features:Return kernel AND kernel version for Mac, Windows, LinuxReturn OS versions for Windows, Mac, LinuxReturn OS build numbers for Windows, MacReturn desktop environmentsReturn architecture (Linux/Mac only, Windows planned)PrerequisitesPython 3 or upInstallation:To install PlatformInfo, you can download install it with pip (recommended) or install it from the development wheel.PyPi install (recommended):pip install platforminfoManual installDownload it from ourDevelopment CIand run `pip install /path/to/platforminfo-nightly.whl'Quick Start Guide:TO start, import platforminfo and create aPlatformobjectimportplatforminfocomputer=platforminfo.Platform()To access information, find the name of the information you want (in this example I wantosVersion).importplatforminfocomputer=platforminfo.Platform()value=computer.osVersion()Feature RequestsIf you have a suggestion,feel free to submit a feature request.
You can grab the nightly builds on ourDevelopment CI
Package: platformio
Quick Links:Homepage|PlatformIO IDE|Registry|Project Examples|Docs|Donate|Contact UsSocial:LinkedIn|Twitter|Facebook|Community ForumsPlatformIO: Your Gateway to Embedded Software Development Excellence.Unlock the true potential of embedded software development with
PlatformIO’s collaborative ecosystem, embracing declarative principles,
test-driven methodologies, and modern toolchains for unrivaled success.Open source, maximum permissive Apache 2.0 licenseCross-platform IDE and Unified DebuggerStatic Code Analyzer and Remote Unit TestingMulti-platform and Multi-architecture Build SystemFirmware File Explorer and Memory InspectionGet StartedWhat is PlatformIO?PlatformIO IDEPlatformIO Core (CLI)Project ExamplesSolutionsLibrary ManagementDesktop IDEs IntegrationContinuous IntegrationAdvancedDebuggingUnit TestingStatic Code AnalysisRemote DevelopmentRegistryLibrariesDevelopment PlatformsDevelopment ToolsContributingSeecontributing guidelines.Telemetry / Privacy PolicyShare minimal diagnostics and usage information to help us make PlatformIO better.
It is enabled by default. For more information see:Telemetry SettingLicenseCopyright (c) 2014-present PlatformIO <contact@platformio.org>The PlatformIO is licensed under the permissive Apache 2.0 license,
so you can use it in both commercial and personal projects with confidence.
Package: platform-migrator
=================Platform Migrator=================Platform Migrator is an application to migrate software from its currentsystem to a different system. System here is defined by the package managersthat will be used to install any required packages.Installation------------To run Platform Migrator, you will need Python 2.7 or greater on the basesystem, i.e. the system which currently has the software, and Python 3.5 orgreater on the target system, i.e. the system to which the software has to bemigrated. Currently, only Linux based operating systems are supported. It maywork on other OSes but has not been tested.Platform migrator should be installed on the target system only. It will copythe necessary files over to the base system as required.Platform Migrator can be installed from PyPI with ::pip3 install --user platform-migratoror from this git repo with ::git clone https://gitlab.com/mmc691/platform-migratorcd platform-migratorpython3 setup.py install --userExecution---------The application is executed in 4 steps:1. Configure the application as per the docs.2. Start the server on the target system with ``platform-migrator server start``.See the docs for complete set of options available.3. On the base system, execute the following on the command line: ::curl http://<server-name>:<server-port>/migrate > script.pypython script.py4. Back on the target system, run ``platform-migrator migrate <name> <config>``.The docs have the full set of options for this as well.If the migration was successful, the software will be saved in the configuredoutput directory.Documentation-------------Documentation for the project is available athttps://platform-migrator.readthedocs.io/ and also in the`docs/ <https://gitlab.com/mmc691/platform-migrator/tree/master/docs>`_directory of this repository.Acknowledgements----------------This application was written with the support and guidance of`Prof. Dennis Shasha <https://cs.nyu.edu/cs/faculty/shasha/>`_ and`Prof. Cristophe Pradal <https://team.inria.fr/virtualplants/christophe-pradal/>`_as part of a capstone project at New York University.
Package: platform-plugin-braze
This is an edx-platform plugin designed to integrate with edx.org’s Braze
account.One major thing it does isidentifyhubspot-alias-only accounts once a
user registers for an LMS account (thus merging the two Braze profiles into
one).It’s unique to edx.org’s specific deployment and services, and thus is not
part of Open edX releases.OverviewThis repo holds a singleedx_brazedjangoapp module, meant to be
pip-installed during deployment ofedx-platformand which will register
itself as anedx platform plugin.Development WorkflowOne Time Setup# Clone the repository
git clone git@github.com:edx/platform-plugin-braze.git
cd platform-plugin-braze

# Set up a virtualenv using virtualenvwrapper with the same name as the repo and activate it
mkvirtualenv -p python3.8 platform-plugin-brazeEvery time you develop something in this repo# Activate the virtualenv
workon platform-plugin-braze

# Grab the latest code
git checkout master
git pull

# Install/update the dev requirements
make requirements

# Run the tests and quality checks (to verify the status before you make any changes)
make validate

# Make a new branch for your changes
git checkout -b <your_github_username>/<short_description>

# Using your favorite editor, edit the code to make your change.
vim …

# Run your new tests
pytest ./path/to/new/tests

# Run all the tests and quality checks
make validate

# Commit all your changes
git commit …
git push

# Open a PR and ask for review.Reporting Security IssuesPlease do not report security issues in public. Please emailsecurity@edx.org.Change LogUnreleased[2.1.1] - 2023-09-22Added support for Django 4.2[2.1.0] - 2023-07-14Remove Support for identifying alias-onlysave_for_laterusers in Braze,
when a user with a matching email registers in the LMS[2.0.0] - 2022-02-16Dropped support for Django22, 30 and 31Added Django40 support[1.2.0] - 2021-12-14Support added for identifying alias-onlysave_for_laterusers in Braze,
when a user with a matching email registers in the LMS[1.1.0] - 2021-09-21Added support for Django 3.1 and 3.2[1.0.0] - 2021-06-04First releaseSupports identifying alias-onlyhubspotusers in Braze, when a user
with a matching email registers in the LMS.
Package: platform-python-lsf-api
## Copyright (C) 2010-2012 Platform Computing## This library is free software; you can redistribute it and/or# modify it under the terms of the GNU Lesser General Public# License as published by the Free Software Foundation; either# version 2.1 of the License, or (at your option) any later version.## This library is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU# Lesser General Public License for more details.## You should have received a copy of the GNU Lesser General Public# License along with this library; if not, write to the Free Software# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA#Python wrapper for LSF APIs===========================This library allows you to call the LSF APIs from Python. The wrapper is createdby using SWIG. Some commands are left out and some typemaps are defined. Stillnot all API calls are supported yet. Please see the following list fortested and support calls.The following calls are tested and known to work reasonably well:Included from batch.h---------------------* lsb_init* lsb_submitIncluded from lsf.h-------------------* ls_info* ls_getclustername* ls_getmastername* ls_gethosttype* ls_gethostmodel* ls_gethostinfo* ls_loadinfo* ls_load* ls_loadofhostsUnknown: ls_getmodelfactor, ls_gethostfactorNot tested: ls_sharedresourceinfo, ls_placereq, ls_placeofhosts, ls_loadadj,ls_eligible, ls_listrtask, ls_listltask, ls_insertrtask,ls_insertltask, ls_deletertask, ls_deleteltask, all remoteexecution routinesConvenient routines-------------------The following routines where added for your convenience:* get_load_of_hosts() - return a list of hostLoad objects* get_host_load() - return the current values of the resources of a host -Possible resource names (Use lsf.<name>) values:R15S - 15s exponentially averaged CPU run queue length.R1M - 1m exponentially averaged CPU run queue  length.R15M - 15m exponentially averaged CPU run queue length.UT - CPU utilization exponentially averaged over the lastminute (from 0.0 to 1.0).PG - Memory paging rate exponentially averaged over the last minute,in pages per second.IO - Disk I/O rate exponentially averaged over the last minute,in KBytes per second.LS - Number of current login users.IT - Idle time of the host (keyboard not touched on all logged insessions), in minutes.TMP - Available free disk space in /tmp, in MBytes.SWP - Amount of currently available swap space, in MBytes.MEM - Amount of currently available memory, in MBytes.* get_host_names() - return the name of the hosts in the cluster* get_host_info() - return a list of hostInfo objectsNotes-----* It might be needed to set PYTHONPATH (pointing to the _lsf.so dir) andLD_LIBRARY_PATH correctly (LSF_LIBDIR needs to be included)* On solaris use 'export LD_PRELOAD=libsocket.so.1' and'/usr/bin/amd64/python'* Why not using ctypes? Because the LSF libs tend to have undefined vars onsome platforms. The SWIG approach is more flexible to that issue.(c) 2010-2012 Platform Computing
Package: platform-users
# platform-users: Django Authentication Moduleplatform-usersis a comprehensive Django authentication module designed to streamline user authentication in your projects. It offers a range of features, including a customizable user model, JWT-based authentication, and easy integration.Table of ContentsInstallationConfigurationCustom User ModelMiddlewareFake MigrationsSecret Key ReplacementUsageDocumentationContributingLicenseInstallationUse the package managerpipto installplatform-users.pipinstallplatform-usersConfigurationCustom User ModelUpdate your project'sINSTALLED_APPSsetting insettings.py:INSTALLED_APPS=[# ...,'platform_users',]Configure the custom user model insettings.py:AUTH_USER_MODEL='platform_users.Users'Fake MigrationsRun the following command to fake migrations for theplatform_usersapp:pythonmanage.pymigrateplatform_users--fakeSecret Key ReplacementReplace the secret key in your child project with the secret key fromplatform-users. Keep the secret key secure.# Example:# parent_project_secret_key = '<some_secret_key1>'# child_project_secret_key = '<parent_project_secret_key>'UsageRefer to thedocumentationfor detailed usage instructions.DocumentationVisit ourofficial documentationfor comprehensive information, API references, and usage examples.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseThis project is licensed under theMIT License.
Package: platform-utils
Platform_utils is a library which provides several cross-platform utilities, including:path manipulation - allows you to do several things with paths including getting the path to store application data, creating the application data directory, checking whether the app is frozen, etc.clipboard - allows getting/setting clipboard text.idle - allows getting the user idle time on Windows.process - allows killing processes on Windows and Unix.shell_integration - adds something to the context menu on Windows.blackhole - disables stdout/stderr when using py2exe.ExamplesCheck whether the app is frozen:>>>importplatform_utils.paths>>>platform_utils.paths.is_frozen()FalseFind the recommended directory where user data files should be stored:>>>importplatform_utils.paths>>>platform_utils.paths.app_data_path("app name")u'C:\\Users\\user\\AppData\\Roaming\\app name'
Package: platinfo
This module determines and returns standardized names for
platforms, where the “standard” is Trent Mick’s reasoning :)
from experience building ActivePython on a fairly large number of
platforms.The driving goal is to provide platform names that are:relatively shortreadable (as much as possible making matching the given name to an
actually machine self-explanatory)be capable enough to produce all names needed to distinguish all
platform-specific application buildsgenerally safe for usage in filenamesnot ugly (e.g. “MSWin32” is ugly)A simple usage example:>>> from platinfo import PlatInfo
>>> pi = PlatInfo()
>>> pi.os
'macosx'
>>> pi.arch
'x86'
>>> pi.name()
'macosx-x86'Currently this has fairly wide OS coverage (Windows, Linux, Mac, Solaris,
HP-UX, AIX, OpenBSD).
Package: platinum
PlatinumChromium - Frequently used google chrome commands mappings.There are lots of command lines which can be used with the Google Chrome browser.
Some change behavior of features, others are for debugging or experimenting.
This page lists the available switches including their conditions and descriptions.
Last update occurred on2020-04-16fromhttps://peter.sh/experiments/chromium-command-line-switches/.Usage ExamplefromplatinumimportChromiumfromseleniumimportwebdriveroptions=webdriver.ChromeOptions()# Run in headless mode, i.e., without a UI or display server dependencies.options.add_argument(Chromium.HEADLESS)# Prevent infobars from appearing.# This feature has been disabled.# options.add_argument(Chromium.DISABLE_INFOBARS)# Starts the browser maximized, regardless of any previous settings.options.add_argument(Chromium.START_MAXIMIZED)chrome=webdriver.Chrome(options=options)generate_user_agent - A User-Agent generator.This module is for generating random, valid web navigator's User-Agent HTTP headers.Functions:generate_user_agent: generates User-Agent HTTP headerSupport:os: win, linux, mac, android, iosdevice: desktop, smartphonenavigator: chrome, firefox, ie, edge, safari, operaWindows: Chrome, Firefox, IE, Edge, OperaLinux: Chrome, Firefox, OperaMac: Chrome, Firefox, Safari, OperaAndroid: Chrome, Firefox, OperaiOS: Chrome, Firefox, Safari, OperaUsage Example>>>fromplatinumimportgenerate_user_agent>>>generate_user_agent()'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3504.86 Safari/537.36'>>>generate_user_agent(os=('mac','linux'))'Mozilla/5.0 (X11; Ubuntu; Linux i686 on x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3384.62 Safari/537.36'>>>generate_user_agent(navigator='edge')'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763'>>>generate_user_agent(device_type='smartphone')'Mozilla/5.0 (Linux; Android 8.0; OPPO R11 Plus Build/OPR4.170623.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3191.41 Mobile Safari/537.36'>>>generate_user_agent(os='ios')'Mozilla/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit/601.4.4 (KHTML, like Gecko) FxiOS/62.0 Mobile/15E218 Safari/601.4'>>>generate_user_agent(navigator='safari',os='mac')'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_13_0; zh-cn) AppleWebKit/602.3.12 (KHTML, like Gecko) Version/11.1.2 Safari/602.3.12'Command Line Usage$gua
Mozilla/5.0(WindowsNT10.0;WOW64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/64.0.3282.140Safari/537.36Edge/15.14986

$gua-nchrome
Mozilla/5.0(X11;Linuxi686)AppleWebKit/537.36(KHTML,likeGecko)Chrome/68.0.3489.10Safari/537.36

$gua-oandroid
Mozilla/5.0(Linux;Android8.1;HuaweiP20LiteBuild/OPR3.170623.008)AppleWebKit/537.36(KHTML,likeGecko)Chrome/64.0.3297.48MobileSafari/537.36

$gua-nsafari-oios
Mozilla/5.0(iPhone;CPUiPhoneOS9_3_3likeMacOSX)AppleWebKit/602.2.14(KHTML,likeGecko)Version/9.0Mobile/13G34Safari/602.2Installationpipinstall-UplatinumChange Log
Package: platinum2
PlatinumChromium - Frequently used google chrome commands mappings.There are lots of command lines which can be used with the Google Chrome browser.
Some change behavior of features, others are for debugging or experimenting.
This page lists the available switches including their conditions and descriptions.
Last update occurred on2018-06-08fromhttps://peter.sh/experiments/chromium-command-line-switches/.Usage Examplefromplatinum2importChromiumfromseleniumimportwebdriveroptions=webdriver.ChromeOptions()# Run in headless mode, i.e., without a UI or display server dependencies.# options.add_argument(Chromium.HEADLESS)# Prevent infobars from appearing.options.add_argument(Chromium.DISABLE_INFOBARS)# Starts the browser maximized, regardless of any previous settings.options.add_argument(Chromium.START_MAXIMIZED)chrome=webdriver.Chrome(options=options)generate_user_agent - A User-Agent generator.This module is for generating random, valid web navigator's User-Agent HTTP headers.Functions:generate_user_agent: generates User-Agent HTTP headerSupport:os: win, linux, mac, android, iosdevice: desktop, smartphonenavigator: chrome, firefox, ie, edge, safari, operaWindows: Chrome, Firefox, IE, Edge, OperaLinux: Chrome, Firefox, OperaMac: Chrome, Firefox, Safari, OperaAndroid: Chrome, Firefox, OperaiOS: Chrome, Firefox, Safari, OperaUsage Example>>>fromplatinum2importgenerate_user_agent>>>generate_user_agent()'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3504.86 Safari/537.36'>>>generate_user_agent(os=('mac','linux'))'Mozilla/5.0 (X11; Ubuntu; Linux i686 on x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3384.62 Safari/537.36'>>>generate_user_agent(navigator='edge')'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763'>>>generate_user_agent(device_type='smartphone')'Mozilla/5.0 (Linux; Android 8.0; OPPO R11 Plus Build/OPR4.170623.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3191.41 Mobile Safari/537.36'>>>generate_user_agent(os='ios')'Mozilla/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit/601.4.4 (KHTML, like Gecko) FxiOS/62.0 Mobile/15E218 Safari/601.4'>>>generate_user_agent(navigator='safari',os='mac')'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_13_0; zh-cn) AppleWebKit/602.3.12 (KHTML, like Gecko) Version/11.1.2 Safari/602.3.12'Command Line Usage$gua
Mozilla/5.0(WindowsNT10.0;WOW64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/64.0.3282.140Safari/537.36Edge/15.14986

$gua-nchrome
Mozilla/5.0(X11;Linuxi686)AppleWebKit/537.36(KHTML,likeGecko)Chrome/68.0.3489.10Safari/537.36

$gua-oandroid
Mozilla/5.0(Linux;Android8.1;HuaweiP20LiteBuild/OPR3.170623.008)AppleWebKit/537.36(KHTML,likeGecko)Chrome/64.0.3297.48MobileSafari/537.36

$gua-nsafari-oios
Mozilla/5.0(iPhone;CPUiPhoneOS9_3_3likeMacOSX)AppleWebKit/602.2.14(KHTML,likeGecko)Version/9.0Mobile/13G34Safari/602.2Installationpipinstall-Uplatinum2Change Log
Package: plato_cat
A ^_^ cat who use Plato ServiceInstall```pip install plato-cat```Run```/usr/bin/plato-cat --endpoint ENDPOINT --key ACCESS_KEY --secret ACCESS_SECRET/usr/bin/plato-clean --endpoint ENDPOINT --key ACCESS_KEY --secret ACCESS_SECRETor with config file/usr/bin/plato-cat --config-file YOUR_CONFIG_FILE_PATH/usr/bin/plato-clean --config-file YOUR_CONFIG_FILE_PATHcheck cat.conf.sample for example.```