Saravanan666/pypi-org huggingface dataset:
Package: cf-predict
cf-predictCloud Foundry Python Predictive API BoilerplateAboutThe cf-predict microservice is part of a pluggable ecosystem of cloud
native data science microservices for Cloud Foundry.Getting StartedRequirementsPython 3.4+Installationcf-predict can be installed with pip:$ pip install cf-predictor directly from the source code:$ git clone https://github.com/ronert/cf-predict.git
$ cd cf-predict
$ python setup.py installFile StructureBasic UsageAfter installation, the package can imported:$ python
>>> import cf_predict
>>> cf_predict.__version__DevelopmentMake environmentmake envDevelopment Installationmake developSystem Installationmake installRun All Testsmake testsUnit Testsmaketest-unitIntegration Testsmaketest-intRead Coveragemakeread-coverageRun CImake ciStatic Analaysismake checkWatchmake watchReleasemake uploadDocumentationRead the full documentationhere.Revision History0.0.0 (YYYY/MM/DD)TBD
Package: cf-pretty-form-errors
Add “cf_pretty_form_errors” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'crispy_forms',
    'cf_pretty_form_errors',
    ...
]If crispy forms not configured, add template pack to your settings fileCRISPY_TEMPLATE_PACK = 'bootstrap3'Add mixin to your form. PrettyFormPlaceholdersMixin for easy setup, PrettyFormMixin for detailed layout configurationInclude {{ form.media.css }} and {{ form.media.js }} in your template, for example:{{ form.media.css }}
{% crispy form %}
{{ form.media.js }}Enjoy your new form errors.
Package: cfpsec
cfpsecCFPsec is program to list Call For Papers or upcoming Hacking/Security Conferences based on cfptime.org website.Copyright (C)  2022 Alexandre BorgesThis program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  This program 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 General Public License for more details.

  See GNU Public License on <http://www.gnu.org/licenses/>.Current Version: 1.2CFPsec has been tested on Ubuntu and Windows 11. Likely, it also works on other
operating systems. Before using CFPsec, execute:$ Install Python 3.9 or newer.
    $ pip install cfpsecUSAGETo use the CFPsec, execute the command as shown below:# cfpsec.py -c 1 
  # cfpsec.py -u 1 

  usage: usage: python cfpsec.py -c <0|1> -u <0|1> -w <0|1>
  
  Optional arguments:
  
  -h, --help            show this help message and exit
  -c CFP, --cfp CFP     List Call For Papers of Hacking/Securiy Conferences.
  -u UPCOMING, --upcoming UPCOMING List all upcoming Hacking/Security Conferences.
  -w WIN, --win WIN     Set to 1 whether you are running it on Windows 10 or older.HISTORYVersion 1.2:This version:
  
        * Small fixes have been introduced. 
        * Small structure change.Version 1.0.2:This version:
  
        * Introduces a small fix.Version 1.0.1:This version:
  
        * Introduces the possibility to install the cfpsec by using the Python pip module: pip install cfpsec.Version 1.0:This version:
  
        * Includes the -c option to list Call for Papers of Hacking/Security Conferences. 
        * Includes the -u option to list upcoming Hacking/Security Conferences.
Package: cf-python
CF PythonThe Python cf package is an Earth science data analysis library that
is built on a complete implementation of theCF data
model.Documentationhttp://ncas-cms.github.io/cf-pythonDaskFrom version 3.14.0, thecfpackage usesDaskfor all of its data manipulations.Recipeshttps://ncas-cms.github.io/cf-python/recipesTutorialhttps://ncas-cms.github.io/cf-python/tutorialInstallationhttp://ncas-cms.github.io/cf-python/installationCommand line utilitiesDuring installation thecfacommand line utility is also
installed, whichgenerates text descriptions of field constructs contained in files,
andcreates new datasets aggregated from existing files.VisualizationPowerful, flexible, and very simple to produce visualizations of field
constructs are available with the
[cfplot](http://ajheaps.github.io/cf-plot) package, that needs to be
installed seprately to thecfpackage.See thecfplot galleryfor the full range
range plotting possibilities with example code.FunctionalityThecfpackage implements theCF data modelfor its internal data structures and so is able to process any
CF-compliant dataset. It is not strict about CF-compliance, however,
so that partially conformant datasets may be ingested from existing
datasets and written to new datasets. This is so that datasets which
are partially conformant may nonetheless be modified in memory.Thecfpackage can:read field constructs from netCDF, CDL, PP and UM datasets,create new field constructs in memory,write and append field constructs to netCDF datasets on disk,read, write, and create coordinates defined by geometry cells,read netCDF and CDL datasets containing hierarchical groups,inspect field constructs,test whether two field constructs are the same,modify field construct metadata and data,create subspaces of field constructs,write field constructs to netCDF datasets on disk,incorporate, and create, metadata stored in external files,read, write, and create data that have been compressed by convention
(i.e. ragged or gathered arrays, or coordinate arrays compressed by
subsampling), whilst presenting a view of the data in its
uncompressed form,combine field constructs arithmetically,manipulate field construct data by arithmetical and trigonometrical
operations,perform statistical collapses on field constructs,perform histogram, percentile and binning operations on field
constructs,regrid field constructs with (multi-)linear, nearest neighbour,
first- and second-order conservative and higher order patch recovery
methods,apply convolution filters to field constructs,create running means from field constructs,apply differential operators to field constructs,create derived quantities (such as relative vorticity).
Package: cfr
[![PyPI version](https://badge.fury.io/py/cfr.svg)](https://badge.fury.io/py/cfr)
[![PyPI](https://img.shields.io/badge/python-3.10-blue.svg)]()
[![license](https://img.shields.io/github/license/fzhu2e/cfr.svg)]()
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7855587.svg)](https://doi.org/10.5281/zenodo.7855587)#cfr: a Python package for Climate Field Reconstructioncfraims to provide a universal framework for climate field reconstruction (CFR).
It provides a toolkit forthe processing and visualization of the proxy records, climate model simulations, and instrumental observations,the calibration and running of the proxy system models (PSMs, [Evans et al., 2013](https://doi.org/10.1016/j.quascirev.2013.05.024)),the preparation and running of the multiple reconstruction frameworks/algorithms, such as LMR ([Hakim et al., 2016](https://doi.org/10.1002/2016JD024751); [Tardif et al., 2019](https://doi.org/https://doi.org/10.5194/cp-15-1251-2019)) and GraphEM ([Guillot et al., 2015](https://doi.org/10.1214/14-AOAS794)), andthe validation of the reconstructions, etc.For more details, please refer to the documentation linked below.## DocumentationHomepage:https://fzhu2e.github.io/cfrInstallation:https://fzhu2e.github.io/cfr/ug-installation.html## How to cite this repoThis repo can be cited with DOI: [10.5281/zenodo.7855587](https://doi.org/10.5281/zenodo.7855587)
Package: cfractions
cfractionsSummarycfractionsis a drop-in replacement forfractionsmodulewritten usingPython C API.Main features are:speed & memory efficiency compared to pure-Pythoncounterpart,full spectre of arithmetic & comparison operations,Python3.6+support,PyPysupport (by falling back tofractions.Fractionproxy).In what followspythonis an alias forpython3.7orpypy3.7or any later version (python3.8,pypy3.8and so on).InstallationInstall the latestpip&setuptoolspackages versionspython-mpipinstall--upgradepipsetuptoolsUserDownload and install the latest stable version fromPyPIrepositorypython-mpipinstall--upgradecfractionsDeveloperDownload the latest version fromGitHubrepositorygitclonehttps://github.com/lycantropos/cfractions.gitcdcfractionsInstallpythonsetup.pyinstallUsage>>>fromcfractionsimportFraction>>>Fraction()Fraction(0,1)>>>Fraction(1,2)Fraction(1,2)>>>Fraction(50,100)Fraction(1,2)>>>Fraction(0.5)Fraction(1,2)>>>Fraction(1,3)+Fraction(1,6)Fraction(1,2)>>>Fraction(3,2)-1Fraction(1,2)>>>1-Fraction(1,2)Fraction(1,2)>>>Fraction(1,3)*Fraction(3,2)Fraction(1,2)>>>Fraction(1,3)/Fraction(2,3)Fraction(1,2)>>>Fraction(1,6)*3Fraction(1,2)>>>Fraction(3,2)/3Fraction(1,2)>>>str(Fraction(1,2))'1/2'DevelopmentBumping versionPreparationInstallbump2version.Pre-releaseChoose which version number category to bump followingsemver
specification.Test bumping versionbump2version--dry-run--verbose$CATEGORYwhere$CATEGORYis the target version number category name, possible
values arepatch/minor/major.Bump versionbump2version--verbose$CATEGORYThis will set version tomajor.minor.patch-alpha.ReleaseTest bumping versionbump2version--dry-run--verbosereleaseBump versionbump2version--verbosereleaseThis will set version tomajor.minor.patch.Running testsInstall dependenciespython-mpipinstall-rrequirements-tests.txtPlainpytestInsideDockercontainer:withCPythondocker-compose--filedocker-compose.cpython.ymlupwithPyPydocker-compose--filedocker-compose.pypy.ymlupBashscript:withCPython./run-tests.shor./run-tests.shcpythonwithPyPy./run-tests.shpypyPowerShellscript:withCPython.\run-tests.ps1or.\run-tests.ps1cpythonwithPyPy.\run-tests.ps1pypy
Package: cfrate
Codeforces-rateDetectorplay a file sound - song- once the rating changes at all the participants  of some round. Also if a handle was given the program will output the the changes to that handleThis is only working on windows; still tryin to figure out how to make it work on linux - I just don't know how Â¯\_('_')_/Â¯ -InstallFirst make sure you got python 3.x and pip installedopen command-line and typepip install cfrateUsageopen command-line and typecfrate [Contest-ID] [Handle(optional)]The first time you run this program it will opena window where you need to copy the media file
        you want to be played when the contest rating changesimply move/copy the media file into that folder and run the program againcfrate *Examplescfrate 1066cfrate 1066 theunderdogcfrate *
Package: cfripper
CFRipperCFRipper is a Library and CLI security analyzer for AWS CloudFormation templates. You can use CFRipper to prevent deploying insecure AWS resources into your Cloud environment. You can write your own compliance checks by adding new custom plugins.Docs and more details available inhttps://cfripper.readthedocs.io/CLI UsageNormal execution$cfripper/tmp/root.yaml/tmp/root_bypass.json--formattxt
Analysing/tmp/root.yaml...
NotaddingCrossAccountTrustRulefailureinrootRolebecausenoAWSAccountIDwasfoundintheconfig.
Valid:False
Issuesfound:-FullWildcardPrincipalRule:rootRoleshouldnotallowfullwildcard'*',orwildcardinaccountIDlike'arn:aws:iam::*:12345'at'*'-IAMRolesOverprivilegedRule:Role'rootRole'containsaninsecurepermission'*'inpolicy'root'Analysing/tmp/root_bypass.json...
Valid:TrueUsing the "resolve" flag$cfripper/tmp/root.yaml/tmp/root_bypass.json--formattxt--resolve
Analysing/tmp/root.yaml...
NotaddingCrossAccountTrustRulefailureinrootRolebecausenoAWSAccountIDwasfoundintheconfig.
Valid:False
Issuesfound:-FullWildcardPrincipalRule:rootRoleshouldnotallowfullwildcard'*',orwildcardinaccountIDlike'arn:aws:iam::*:12345'at'*'-IAMRolesOverprivilegedRule:Role'rootRole'containsaninsecurepermission'*'inpolicy'root'Analysing/tmp/root_bypass.json...
NotaddingCrossAccountTrustRulefailureinrootRolebecausenoAWSAccountIDwasfoundintheconfig.
Valid:False
Issuesfound:-IAMRolesOverprivilegedRule:Role'rootRole'containsaninsecurepermission'*'inpolicy'root'Monitoredissuesfound:-PartialWildcardPrincipalRule:rootRolecontainsanunknownprincipal:123456789012-PartialWildcardPrincipalRule:rootRoleshouldnotallowwildcard,account-wideorrootinresource-idlike'arn:aws:iam::12345:root'at'arn:aws:iam::123456789012:root'Using json format and output-folder argument$cfripper/tmp/root.yaml/tmp/root_bypass.json--formatjson--resolve--output-folder/tmp
Analysing/tmp/root.yaml...
NotaddingCrossAccountTrustRulefailureinrootRolebecausenoAWSAccountIDwasfoundintheconfig.
Resultsavedin/tmp/root.yaml.cfripper.results.json
Analysing/tmp/root_bypass.json...
NotaddingCrossAccountTrustRulefailureinrootRolebecausenoAWSAccountIDwasfoundintheconfig.
Resultsavedin/tmp/root_bypass.json.cfripper.results.jsonUsing rules config file$cfrippertests/test_templates/config/security_group_firehose_ips.json--rules-config-filecfripper/config/rule_configs/example_rules_config_for_cli.py
Analysingtests/test_templates/config/security_group_firehose_ips.json...
Valid:TrueUsing rules filters files$cfrippertests/test_templates/config/security_group_firehose_ips.json--rules-filters-foldercfripper/config/rule_configs/
example_rules_config_for_cli.pyloaded
Analysingtests/test_templates/config/security_group_firehose_ips.json...
Valid:TrueExit Codes"""Analyse AWS Cloudformation templates passed by parameter.Exit codes:- 0 = all templates valid and scanned successfully- 1 = error / issue in scanning at least one template- 2 = at least one template is not valid according to CFRipper (template scanned successfully)- 3 = unknown / unhandled exception in scanning the templates"""
Package: cf-rules
Welcome to Cloudflare WAF Custom rules library 👋Previously known as Cloudflare Firewall RulesA Cloudflare wrapper to bulk add / edit your WAF custom rules using Cloudflare's API.This library is a wrapper that aims to easily create, modify, delete rules. It also provides a way to import & export new rules in your domain's firewall.If you have several rules that you want to duplicate among your domains, this module is made for you!A complete documentation can be found at:https://quentiumyt.github.io/Cloudflare-Firewall-Rules/📥 Installationpipinstallcf_rules# ORgitclonehttps://github.com/QuentiumYT/Cloudflare-Firewall-Rules.gitcdCloudflare-Firewall-Rules/
pipinstall.🚀 UsageYou have 2 auth methods available:A Global API Key or a specific API Token generated from here:https://dash.cloudflare.com/profile/api-tokensCloudflare Global API KeyUsing a Global API Key, you will have access to everything allowed by a Cloudflare account. It can access all domains from every account you have, this might be overpowered...Cloudflare API TokenAn API token is recommended to keep control of specific domains only. You will need to give the correct permissions for Cloudflare's WAF Custom rules to work.The required permissions are "Zone.Zone, Zone.Firewall Services"Here is a token creation example:💨 QuickstartYou can use any example scripts in the examples folder, just create a .env fileI might add more examples in the future, but everything is in the docs :)Create any Python file in the cloned directory and paste these linesfromcf_rulesimportCloudflarecf=Cloudflare()cf.auth_key("<your-address@email.com>","<your-global-api-key>")# ORcf.auth_token("<your-specific-bearer-token>")domains=cf.domains[0].nameprint(domains)# >>> ['example.com']cf.export_rules("example.com")# Creates a text file for every rule you have on your domaincf.create_rule("example.com","My Bad Bots FW rule","Bad Bots","challenge")# Create a new rule with the content of the "Bad bots.txt" file with the challenge actioncf.update_rule("example.com","My Bad Bots FW rule","Bad Bots lib")# Change the rule's expression to the content of the "Bad bots lib.txt" file🤝 ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change and join your fork with the modifications.Please make sure to test your suggestions before committing.If you don't feel comfortable coding, you can submit your idea about what you would like to see implemented.Any PR with small code examples or better documentation changes is appreciated :)👤 AuthorQuentin L.Website:quentium.frTwitter:@QuentiumYTContact:MailPlease ✰ this repository if this project helped you!📖 LicenseApache 2.0Made with❤by QuentiumYT
Package: cf_s3field
Django has ImageField and FileField which can be used for file and image operations. Django fields has problem that they store image and files on disk. They also don't delete older files when new files are uploaded. To solve this issue new field developed.cf_s3field.S3ImageField-----------------------``s3ImageField`` is django model field which is replacement for django ``ImageField``.```pythonfrom cf_s3field.files import S3ImageFieldclass User(models.Model):first_name = models.CharField(max_length=100)profile_pic = S3ImageField(bucket='<your bucket>', key='profile_user_{first_name}')user = User.objects.get(id=1)user.first_name = "Hitul"user.save()```In above example key ``first_name`` will be replaced by ``Hitul``. ImageField will also accept default django ImageField parameters. key is file name format. In s3 you will store multiple files. To seperate all images from each other key is introduced. Key values will be repalced by values specified in as extra attributes.cf_s3field.S3FileField-----------------------``s3FileField`` is django model field which is replacement for django ``FileField``.```pythonfrom cf_s3field.files import S3ImageFieldclass User(models.Model):first_name = models.CharField(max_length=100)resume = S3FileField(bucket='<your bucket>', key='profile_user_{first_name}')user = User.objects.get(id=1)user.first_name = "Hitul"user.save()```0.0.4 - Fri Oct 30------------------- Django 1.7 support0.0.3 - Wed Oct 28------------------- No need to specifify migrate as argument- Lazy connection implemented. When someone uploads at that time connection to boto will be created.0.0.2 - Mon Oct 26------------------- README.md file changed to README.rst- Debug statements removed0.0.1 - Sat Oct 24------------------Initial release
Package: cf-scraping
#cf_scrapingThisisa[ClowdFlows3.0](https://github.com/xflows/clowdflows-backend)packagewhichcontainswidgetsforcollectingdatafromthewebandextractingboilerplatecode.##Installation
Installthispackagebyrunning:pipinstallcf_scraping.
ToenableitintheClowdFlowsBackend,editthe`local_settings.py`filelikeshownbelow:` PACKAGE_TREE=[ {"name":"WebScraping","packages":['cf_scraping'],"order":1} ] `Thenrun`./manage.pyimport_packagecf_scraping`fromtheClowdFlowsBackenddirectorytoimportwidgetsintotheplatform.
Package: cf-secure-edge
main.pyimportdatetimeimportosfromcf_secure_edgeimportcf_tokendefget_timedelta(str_val=''):ifstr_val.endswith("m"):returndatetime.timedelta(minutes=int(str_val[0:-1]))ifstr_val.endswith("h"):returndatetime.timedelta(hours=int(str_val[0:-1]))ifstr_val.endswith("d"):returndatetime.timedelta(days=int(str_val[0:-1]))returnint(str_val)# Press the green button in the gutter to run the script.if__name__=='__main__':url=os.environ["URL"]key=os.environ["KEY"]key_id=os.environ["KEY_ID"]exp=os.environ.get("EXP","24h")firstExp=os.environ.get("FIRST_EXP","5m")country=os.environ.get("CO","")region=os.environ.get("REG","")no_session=os.environ.get("NO_SSN",False)user_agent=os.environ.get("UA","")referer=os.environ.get("REF","")token_policy=cf_token.TokenPolicy()token_policy.expiry=get_timedelta(exp)token_policy.first_access_expiry=get_timedelta(firstExp)token_policy.session=notno_sessiontoken_policy.country=len(country)>0token_policy.region=len(region)>0token_policy.headers=[]iflen(user_agent)>0:token_policy.headers.append("user-agent")iflen(referer)>0:token_policy.headers.append("referer")viewer_attrs=cf_token.ViewerAttributes()viewer_attrs.country=countryviewer_attrs.region=regionviewer_attrs.headers={"user-agent":user_agent,"referer":referer,}cf_token=cf_token.CfToken(secrets={key_id:key})url_with_token=cf_token.generate_url(url,key_id,token_policy,viewer_attrs)print(url_with_token)URL=https://your-media-endpoint.com/master.m3u8\KEY_ID=your-key-idKEY=your-key\UA="your-user-agent"\REF=your-referrer\python3main.py
Package: cf-signer
CF-Signer - CloudFormation Signing UtilityTool for signing and verifying the integrity of CloudFormation templatesFree software: MIT licenseDocumentation:https://cf-signer.readthedocs.io.FeaturesSigning CloudFormation templates by creating a sha256 hash of the file, encrypted with the user’s private key and store base64 form of the signature in the CloudFormation templateMetadatasection.Verifying the integrity of CloudFormation templates by looking for the signature in theMetadata, extracting it and verifying.Currently supportJSONtemplates only. If you need to convert your template fromYAMLformat, take a look on the CloudFormation Designer conversion or use a 3rd party utility.UsageInstallationTo installcf-signer, run this command in your terminal:pip install cf-signerPreparationFirst, the utility provides thepreparefunctionality that does the following:Reading your templateJSONfileConverting the template to Python dictionary object.Converting the Python dictionary object back to aJSONfile.This is done to ensure that the tool will not tamper the template contents during the signing process.To prepare a CloudFormation template to the signing process:cf_signer --prepare --template cf.templateThis will create acf-prepared.templatefile you can sign using thecf-signertool.Getting StartedTo sign a CloudFormation template using thecf-signertool:cf_signer --sign --template cf.template --key key.pemTo verify a signature of a CloudFormation template using thecf-signertool:cf_signer --verify --template cf-signed.template --key pubkey.pemYou can also use cf_signer in yourPythoncode to sign templates on your scripts:importcf_signerdefmain():sign_result=create_signature(target_file_path='tests/cf.template',key_file_path='tests/key.pem')# Returns TrueSigning FlowThe process of signing is based on the following flow:Generate RSA private key:openssl genrsa -out key.pem 2048Get public key from the RSA generated private key:openssl rsa -in key.pem -outform PEM -pubout -out pubkey.pemCreate a sha256 hash signature, encrypted with the private key:openssl dgst -sha256 -sign key.pem -out sign.sha256 cf.templateConvert the signature to base64 string:base64 -i sign.sha256 -o sign.b64Attach the base64 signature to the CloudFormation template, under theMetadatablock (creating one if it doesn’t exist).Verification FlowThe process of signature verification is based on the following flow:Detach the signature from the CloudFormation templateConvert the base64 detached signature string to binary format:base64 -d sign.b64 > sign.sha256Validate the signature using the public key:openssl dgst -sha256 -verify pubkey.pem -signature sign.sha256 cf.templateCreditsThe signing and verification process was inspired bysgershtein/SignedJSON.This package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.1 (2021-06-22)First release on PyPI.0.0.2 (2021-06-22)feat: prepare template before signingfeat: clear linter errorschore: version bump and documentation updates regarding installation0.0.3 (2021-06-23)feat: added the usecase of using the library in python code, added pylint