Saravanan666/pypi-org huggingface dataset:
Package: panthera
panthera - program for anharmonic thermochemistryInstallationThe recommended installation method is withpip. The latest version
can be installed directly from [bitbucket repository]:pipinstallhttps://github.com/lmmentel/panthera.gitor cloned firstgitclonehttps://github.com/lmmentel/panthera.gitand installed viapipinstall-U[--user]./pantheraDocumentationThe documentatioan can be atpanthera.rtfd.io.CitingIf you usepantherain a scientific publication, please cite the software as|    L. M. Mentel,panthera- Package for Anharmonic Thermochemistry, 2016. Available at:https://github.com/lmmentel/pantheraFundingThis project is supported by the RCN (The Research Council of Norway) project
number 239193.
Package: pantherapy
/*
 *
 *               _   _                             _
 *   ___ ___ ___| |_| |_ ___ ___ ___ ___ _ _ ___ _| |_ _ ___
 *  | . | .'|   |  _|   | -_|  _| .'|___| | |   | . | | | -_|
 *  |  _|__,|_|_|_| |_|_|___|_| |__,|   |___|_|_|___|___|___|
 *  |_|
 *
 *
 */
Package: panther-classic-converter
panther-classic-converterTool for converting classic Panther detections into the Panther SDK format.The converted rule serves as a good baseline and maintains existing functionality.It is recommended that the generated filter be replaced with a composable list of filters to take advantage of the benefits of composable detections.Installationpip install panther-classic-converterUsageusage: panther_classic_converter [-h] [-a | --athena | --no-athena] [-o OUTPUT] filename

converts legacy detections to panther sdk detections

positional arguments:
  filename              YML filename to be converted

optional arguments:
  -h, --help            show this help message and exit
  -a, --athena, --no-athena
                        Datalake used by panther deployment. Used for scheduled queries.
  -o OUTPUT, --output OUTPUT
                        YML filename to be convertedExamplepanther_classic_converter brute_force_by_ip.yml -o converted_brute_force_by_ip.pyBeforebrute_force_by_ip.ymlbrute_force_by_ip.pyAfterconverted_brute_force_by_ip.py
Package: pantherdb
IntroductionPantherDB is aSimple,FileBaseandDocument Orienteddatabase that you can use in your projects.Features:Document OrientedEasy to useWritten in pure Python +3.8 based on standard type hintsHandle Database EncryptionSingleton connection perdb_nameUsageDatabase:Create a database:db:PantherDB=PantherDB('database.pdb')Create an encrypted database:Requiredcyptographyinstall it withpip install pantherdb[full]fromcryptography.fernetimportFernetkey=Fernet.generate_key()# Should be static (You should not generate new key on every run)db:PantherDB=PantherDB('database.pdb',secret_key=key)Access to a collection:user_collection:PantherCollection=db.collection('User')Delete a collection:db.collection('User').drop()Create:Insert document:user:PantherDocument=db.collection('User').insert_one(first_name='Ali',last_name='Rn')Get:Find one document:user:PantherDocument=db.collection('User').find_one(first_name='Ali',last_name='Rn')oruser:PantherDocument=db.collection('User').find_one()Find first document (alias offind_one()):user:PantherDocument=db.collection('User').first(first_name='Ali',last_name='Rn')oruser:PantherDocument=db.collection('User').first()Find last document:user:PantherDocument=db.collection('User').last(first_name='Ali',last_name='Rn')oruser:PantherDocument=db.collection('User').last()Find documents:users:list[PantherDocument]=db.collection('User').find(last_name='Rn')All documents:users:list[PantherDocument]=db.collection('User').all()Count documents:users_count:int=db.collection('User').count(first_name='Ali')Update:Update a document:user:PantherDocument=db.collection('User').find_one(first_name='Ali',last_name='Rn')user.update(name='Saba')Filter and Update a document:_filter={'first_name':'Ali','last_name':'Rn'}is_updated:bool=db.collection('User').update_one(_filter,first_name='Saba')Filter and Update many:_filter={'first_name':'Ali'}updated_count:int=db.collection('User').update_many(_filter,first_name='Saba')Delete:Delete a document:user:PantherDocument=db.collection('User').first(first_name='Ali',last_name='Rn')user.delete()Filter and Delete a document:is_deleted:bool=db.collection('User').delete_one(first_name='Ali',last_name='Rn')Filter and Delete many:deleted_count:int=db.collection('User').delete_many(last_name='Rn')TODO:Add encryptionComplete tests TODOAdd B+ tree
Package: panther-okta
panther-oktaPanther SDK repo for Okta contentInstall all content with defaults:importpanther_oktaasoktaokta.use_all_with_defaults()Install a single rule with overrides:frompanther_sdkimportdetectionfrompanther_utilsimportmatch_filtersimportpanther_oktaasoktaokta.rules.account_support_access(# optionally, provide overridesoverrides=detection.RuleOptions(# override the default "reference"reference="https://security-wiki.megacorp.internal/okta-incident-response",),# optionally, provide pre-filters to be added to the defaultspre_filters=[match_filters.deep_equal("version","0"),])
Package: panther-utils
panther-utilsPanther SDK utilities repoMatch FiltersThedeep_existsfilter allows you to filter events based on a field match. Usedeep_not_existsfor the inverse.frompanther_sdkimportdetectionfrompanther_utilsimportmatch_filters# example: alert if a security log has a warning messagedetection.Rule(rule_id="My.Custom.Rule",log_types=["Security.Logs"],severity=detection.SeverityMedium,filters=[match_filters.deep_exists(path="warning.message"),])Thedeep_equalfilter allows you to filter events based on a field match. Usedeep_not_equalfor the inverse.frompanther_sdkimportdetectionfrompanther_utilsimportmatch_filters# example: match server logs with insecure POST requestsdetection.Rule(rule_id="My.Custom.Rule",log_types=["ServerLogs.HTTP"],filters=[match_filters.deep_equal(path="request.method",value="POST"),match_filters.deep_equal(path="request.use_ssl",value=False),])Thedeep_equal_patternfilter allows you to filter events based on a pattern. Usedeep_not_equal_patternfor the inverse.frompanther_sdkimportdetectionfrompanther_utilsimportmatch_filters# example: match server logs with /api/ in their pathdetection.Rule(rule_id="My.Custom.Rule",log_types=["ServerLogs.HTTP"],severity=detection.SeverityMedium,filters=[match_filters.deep_equal_pattern(path="request.url",pattern=".+\/api\/.+"),])Thedeep_infilter allows you to filter events based on a pattern. Usedeep_not_infor the inverse.frompanther_sdkimportdetectionfrompanther_utilsimportmatch_filters# example: match server logs with POST or PUT requestsdetection.Rule(rule_id="My.Custom.Rule",log_types=["ServerLogs.HTTP"],severity=detection.SeverityMedium,filters=[match_filters.deep_in(path="request.method",value=["POST","PUT"]),])All available filters inmatch_filtersListed below are all the available filters in thematch_filtersmodule alongside the underlying comparison performed.filterperforms comparison via:deep_existsactual is Nonedeep_not_existsactual is not Nonedeep_equalactual == valuedeep_not_equalactual != valuedeep_equal_patternre.compile(pattern).search(actual)deep_not_equal_patternnot re.compile(pattern).search(actual)deep_inactual in valuedeep_not_inactual not in valuedeep_less_than<deep_less_than_or_equal<=deep_greater_than>deep_greater_than_or_equal>=deep_betweenval_min <= actual <= val_maxdeep_between_exclusiveval_min < actual < val_maxNetwork FiltersTheips_in_cidrfilter allows you to filter events based whether IPs are in a CIDR range. The optionalpathargument can target a dot-separated path to a single IP string or a list of IP strings. Thepathargument defaults to the Panther fieldp_any_ip_addresses. This filter uses the pythonipaddressmodule to perform the comparison.frompanther_sdkimportdetectionfrompanther_utilsimportnetwork_filters# example: match server logs coming from 10.x.x.xdetection.Rule(rule_id="My.Custom.Rule",log_types=["ServerLogs.HTTP"],filters=[network_filters.ips_in_cidr(cidr="10.0.0.0/8"),# by default, source IPs from p_any_ip_addresses])# example: match server logs coming from 192.168.x.xdetection.Rule(rule_id="Internal.Logs",log_types=["Custom.InternalLogs"],filters=[network_filters.ips_in_cidr(cidr="192.168.0.0/16",path="custom.path.to.ips"),])
Package: pan-threat-vault-python
pan-threat-vault-pythonis a Python package for the Palo Alto
NetworksThreat Vault API.It provides a Python3asyncioand non-asyncio class and command line interface to the Threat
Vault RESTful API.DocumentationRendered reStructuredText on GitHub:https://github.com/PaloAltoNetworks/pan-threat-vault-python/tree/main/docInstallpan-threat-vault-pythonpan-threat-vault-pythonis available as areleaseon GitHub and as apackageon PyPi.
Package: panti
Panti(แผนที่)provide thailand geodata starter and API access to Vallaris MapsFeaturesTODORequirementsTODOInstallationYou can installPantiviapipfromPyPI:$pipinstallpantiUsagePlease see theCommand-line Referencefor details.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,Pantiis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated from@cjolowicz'sHypermodern Python Cookiecuttertemplate.
Package: pantilt
中文文档pantiltThis is a tool kit containing Python utilsfor driving servos,for controlling camera at a two-servos pan tilt by widgets in jupyter notebook and a PS4 Joystick.Quick Guide1. To Initiate a ServofrompantiltimportServos1=Servo(channel=14,bus=0,max_angle=180,min_angle=0)channelis number that servo has connected to PCA9685 board;buscan be 0 or 1 or even 2;max_anglemin_angleis upper and lower limit we set for the servo.s1.to_angle(45)s1.reset()s1.change_reset(0)s1.add()s1.sub(3)s1.read()s1.change_unit(30)s1.to_min()s1.to_max().to_angle()will turn to a angle;.reset()will turn servo back to the default angle, which is (max_angle+min_angle)/2 as default;.change_reset()This will change the default reset angle to input number.Leaving bracket blank as.change_reset()will apply the current angle..add()changes the servo by adding one unit of angle, which is 10 degree as default..sub()changes the servo by subtracting one unit of angle;An integer in its bracket means how many unit it will act on..change_unit()will change how many degree it turn for one unit..read()can read the current angle of the servo..to_min()will turn to the minimum angle..to_max()will turn to the maximum angle.You can open a jupyter notebook file,servo_demo.ipynb, to have a try on this tool kit.2. To Initiate a Pan TiltIts methods to control two servos at a pan tilt is similar to control a servo, here is a jupyter notebook filepan_tilt_demo.ipynb3. Camera Pan TiltWalkthrough is herecam_pan_tilt_demo.ipynbInstallClone the project, please rememeber to clone with parameter —recurse-submodules, because pantilt project referene another submodulebcam.git clone --recurse-submodules  https://github.com/youyoubilly/pantilt.gitInstall pantiltSTL 3D ModelYou are welcome to download the stl file I designed for this simple pan tilt of CSI camera, and 3D print it out.You may adjust the stl model for different use.Other LanguagesEnglish document is available here:GitHub - pantiltChinese document is available here:中文传送门; 国内仓库：Gitee传送门It would beappreciatedif you can contribute to write this document in other languages!DonateThis project is developed on a non-commercial basis by Open Source enthusiasts.If you findpantiltuseful, you can support the lead developer by donating a few dollars viaPayPal.
With this money, we will be able to buy new hardware to test and do more such project for open source and for free education, and generally devote significantly more time to these projects.NotesIf you find an issue, pleaselet us know!Sorry that I may have some typos or inaccurate expression in English, help me to correct them if you found one! Big Thanks!Enjoy!Useful LinksProject:billiocarLet's learn and play an robotic car with AI technologyProject:pantiltThis is a tool kit for controlling two servos at a pan tilt in jupyter notebook.Project:bcambcam is an easy to use Python camera interface for NVIDIA Jetson and Raspberry Pi.Billy WangBillioTech Team
Package: pantilthat
Learn more:https://shop.pimoroni.com/products/pan-tilt-hat0.0.7Re-release of previous version for version parity between apt/pip0.0.6Bugfix: return 0 if get_servo_1/2 values are out of rangeBugfix: import sys.version_info for missing module warnings0.0.5Bugfix: fix to set_pixel_rgbwBugfix: fix so that get_servo_two returns correct valueBugfix: deferred setup to prevent side-effects upon import0.0.4New: get_pan and get_tilt methods to read back servo positionBugfix: Brightness does not set value unless light_mode == PWMBugfix: Idle timeout Timer() daemonized to prevent blocking on exit0.0.3Added idle_timeout functionality to prevent idle servo jitterAdded options for RGB, GRB, RGBW and GRBW pixel types - RGBW and GRBW support up to 18 pixels0.0.2Corrected package dependencies0.0.1Initial Release
Package: pantomime
pantomimepantomimeis a small library that handles the parsing and normalisation
of internet MIME types in Python. This can be useful to normalise invalid,
or misformatted MIME types emitted by remote web servers.UsageThe simplest use is to normalise a MIME type:frompantomimeimportnormalize_mimetypeassertnormalize_mimetype('TEXT/PLAIN')=='text/plain'assertnormalize_mimetype('plain/text')=='text/plain'assertnormalize_mimetype(None)=='application/octet-stream'assertnormalize_mimetype('')=='application/octet-stream'Internally,pantomimeuses aMIMETypeobject to handle parsing. It can
be used to access more specific information, like human readable labels:frompantomimeimportparse_mimetypeparsed=parse_mimetype('text/plain')assertparsed.family=='text'assertparsed.subtype=='plain'assertparsed.label=='Plain text'Open issuesInternationalisation, i.e. make the human-readable labels available in
multiple languages.Expand replacements for specific MIME types.LicenseLicensed under MIT terms, see theLICENSEfile included in this repository.
Package: pantry-cloud
pantry-cloudThis lightweightpackageis a python implementation of Free JSON Storage APIpantry.FeaturesCreates a basket.Deletes a basket.Updates a basket.Shows account details.Writes basket data in json file.The aim of this package is to makepantryapi usage simple.Installationpantry-cloud requirespython3.7+to run.Windowspipinstallpantry-cloud
or
pipinstall--upgradepantry-cloudLinuxpip3installpantry-cloud
orpip3install--upgradepantry-cloudModule UsageCreating basketfrompantry_cloudimportPantrypantry=Pantry(api_key='your api key')res=pantry.create(basket='hello',inputfile='path to json file')# Use inputfile if you want to upload dataprint(res)Basket detailfrompantry_cloudimportPantrypantry=Pantry(api_key='your api key')res=pantry.basket(basket='hello',outputfile='path to json file')# Use outputfile if you want to write data dataprint(res)CLI Usageusage:pantry[-h]-aAPI[-oOUTPUT_FILE][-iINPUT_FILE][-s][-bBASKET][-uUPDATE][-cCREATE][-dDELETE]optionalarguments:-h,--helpshowthishelpmessageandexit-aAPI,--apiAPIapikey.-oOUTPUT_FILE,--outputOUTPUT_FILEoutputfile.-iINPUT_FILE,--inputINPUT_FILEinputfile.-s,--showShowsaccountdetails.-bBASKET,--basketBASKETShowsdataofabasket.-uUPDATE,--updateUPDATEUpdatesabasket.-cCREATE,--createCREATECreatesanewbasket,orreplaceanexistingone.-dDELETE,--deleteDELETEDeletestheentirebasket.
Package: pants-backend-bitwarden
BitWarden backend for PantsWarningThis plugin is in development. No stability is guaranteed! Contributions welcome.This backends implements targets for reading BitWarden secrets.bw- the BitWarden CLI clientPlanned and missing featuresSetting and creating secrets via PantsTargetsbw_itemMatches one entry in your vault.bw_item(name="pypi",id="386c6037-cbdd-4aa3-ba80-9ed6661f751b",session_secret=":bw_session_key",)ArgumentMeaningDefault valuenameThe target nameSame as any other target, which is the directory nameidItem id used by this target as seen in the address barRequireditem_nameThe name in the vault. If ambiguous this will fail. Prefer IDs.session_secretThe secret to use for the BW_SESSION variable.env["BW_SESSION"]decsriptionA description of the targettagsList of tags[]bw_passwordThe password of an item in your vault.bw_password(name="pypi_password",item=[":pypi"],)ArgumentMeaningDefault valuenameThe target nameSame as any other target, which is the directory nameitemThe item containing the password.RequireddecsriptionA description of the targettagsList of tags[]bw_fieldA field from an item in your vault. These are the "Custom Fields" at the bottom of an item, not to be confused with attachments.bw_field(name="pypi_token",field_name="api_token"item=[":pypi"],)ArgumentMeaningDefault valuenameThe target nameSame as any other target, which is the directory nameitemThe item containing the password.Requiredfield_nameThe item containing the password.RequireddecsriptionA description of the targettagsList of tags[]
Package: pants-backend-k8s
Kubernetes backend for PantsWarningThis plugin is in development. No stability is guaranteed! Contributions welcome.This backends implements targets for working with Kubernetes clusters using raw YAML.kubectlfor cluster operationsTargetsThere's currently three targets forpants-backend-k8s:k8s_sourcek8s_objectk8s_objectsk8s_sourceA file that can be passed into other k8s fields that are not source fields. For example,k8s_object.template.k8s_source(name="namespace.yaml",source="namespace.yaml",)ArgumentMeaningDefault valuenameThe target nameSame as any other target, which is the directory namesourceThe raw fileRequireddecsriptionA description of the targettagsList of tags[]This'll eventually be automated like other rules once a suitable heuristic for generation with tailor is found. PRs welcome!k8s_objectInput for a kubernetes command, either generated viakustomizeor viak8s_source.k8s_object(name="k8s",description="the chat backend"template=[":kustomize"],namespace="chat-app",cluster="prod",)ArgumentMeaningDefault valuenameThe target nameSame as any other target, which is the directory nametemplateThe target to act onRequirednamespaceNamespace to targetOptional, will use default kubectl namespaceclustercluster to targetOptional, will use default kubectl clusterdecsriptionA description of the targettagsList of tags[]k8s_objectis a generator forkubernetestarget parametrized by the potential commands that are available:apply,create,get,describe,replace, anddelete.k8s_objectsA collection of kubernetes objects that should be managed together.k8s_objects(name="my-service",description="all components of service-x"objects=[":namespace",":deployment"],)ArgumentMeaningDefault valuenameThe target nameSame as any other target, which is the directory nameobjectsk8s_object targets that should be managedRequireddecsriptionA description of the targettagsList of tags[]Likek8s_object,k8s_objectsis a generator for parametrized targets for the commands that are available:apply,create,get,describe,replace, anddelete.
Package: pants-backend-kustomize
Kustomize backend for PantsWarningThis plugin is in development. No stability is guaranteed! Contributions welcome.This backends implements targets for kustomize templates.kustomizefor overlaying state ontop of raw kubernetes filesPlanned and missing featuresKey/secret/... generation from built artifactsTargetsThere's currently one target.kustomizeA code-generation target for converting a bundle of kubernetes files into a single multi-docuent YAML file with state
injected from other Pants targets.kustomize(name="kustomize",sources=["deployment.yaml","server.py","service.yaml","namespace.yaml","kustomization.yaml",],dependencies=[":bin"],)ArgumentMeaningDefault valuenameThe target nameSame as any other target, which is the directory namesourcesResources used by this targetRequireddependenciesTargets to package and pass to the build context, as well as bases[]decsriptionA description of the targettagsList of tags[]For dependencies, the builder will replace labels in the kustomization.yaml with the path of the built package.
Package: pants-backend-mdbook
MDBook backend for PantsWarningThis plugin is in development. No stability is guaranteed! Contributions welcome.This provides a tool for building mdbook targets with pants. There is currently a single very simple rule:md_book(name="my-docs",sources=["book.toml","src/*"],)ArgumentMeaningDefault valuenameThe target nameSame as any other target, which is the directory namesourcesFiles included when building the bookbook.tomland thesrcdirectorydecsriptionA description of the target""tagsList of tags[]
Package: pants-backend-secrets
Secrets backend for PantsWarningThis plugin is in development. No stability is guaranteed! Contributions welcome.This backends implements utilities for handling secrets.Planned and missing featuresSetting and creating secrets via PantsTargetsenv_secretA secret to be read from the environment.env_secret(name="bw_session_key",key="BW_SESSION",)ArgumentMeaningDefault valuenameThe target nameSame as any other target, which is the directory namekeyThe environment variable to read.RequireddecsriptionA description of the targettagsList of tags[]GoalsdecryptDecrypts and prints a secret.BW_SESSION="..." pants decrypt //examples/bitwarden:pypi_token22:29:42.17 [INFO] Completed: Decrypting examples/bitwarden:pypi_tokenSecret examples/bitwarden:pypi_token from BitWarden: pypi-...