Saravanan666/pypi-org huggingface dataset:
Package: cf-changelog
cf_changelog - Conflict-Free Changelog managerSimple tool to support changelog modifications on different git branches without conflicts on merging.
Written in python, installable with pip.UsageInstall it from pip:pipinstallcf_changelogCreate some changelog on different branches entries using:cf_changelogaddIt is required to run this from root of your repository.
This will invoke standard text editor (or notepad/vim if standard editor is not configured), where you can fill a template with new features, bug fixes etc.Windows example:This is simple yaml format. You can use as many types of entries as you wish (New, Bugfix, Changed, Fixed, etc.). Each type should contain a flat list.
The most important thing is that you don't have to remember anything specific related to this tool, just fill in a template.Commit newly created files.Repeat 2 and 3 on different branches as many times as you need.Merge all branches.On merged branch run:cf_changelogreleaseX.Y.Zwhere X.Y.Z is description of version you want to see in final changelog.Commit registered changes in git repository (by default: Changelog.md and changelog directory).Enjoy your updated changelog.How it worksaddcommand creates files with unique names by default in changelog/sources. Since file names are unique there will be no conflict on merge.releasecommand parses those "source" files and adds them on the begining of Changelog.md. Then copies "source" files to "archive" just to keep them in history.
Those commands callsgit addon created and modified files to remind you that you have to commit them.Project statusManual tests on Windows passedManual tests on Ubuntu passed
Package: cfchecker
# CF CheckerThe CF Checker is a utility that checks the contents of a NetCDF file complies with the Climate and Forecasts (CF) Metadata Convention.## DependenciesThe package runs on [Linux](http://en.wikipedia.org/wiki/Linux)
and [Mac OS](http://en.wikipedia.org/wiki/Mac_OS) operating systems.[Python 3.x](https://www.python.org/)[netcdf4-python](https://pypi.python.org/pypi/netCDF4) at version 1.2.5 or newer. This package requires [netCDF](https://www.unidata.ucar.edu/software/netcdf/), [HDF5](https://www.hdfgroup.org/solutions/hdf5/) and [zlib](ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4) libraries.[cfunits-python](https://bitbucket.org/cfpython/cfunits-python) package version 3.0.0 or newer[numpy](https://pypi.python.org/pypi/numpy) version 1.15 or newer## InstallationTo install from [PyPI](https://pypi.python.org/pypi/cfchecker):pip install cfcheckerAlternatively, to install from source:Download the cfchecker package from [cfchecker releases](https://github.com/cedadev/cf-checker/releases)Unpack the library:tar -zxf cfchecker-${version}.tar.gzcd cfchecker-${version}Install the package:To install to a central location:python setup.py installTo install to a non standard location:python setup.py install –prefix=<directory>If directory you are installing into is not on PYTHONPATH you will need to add it.## Running the CF Checkercfchecks [-a <area-types.xml>] [-r <regions.xml>] [-s <std_names.xml>] [-v <CFVersion>] [-x] [-t <cache_time_days>] file1 [file2…]For further details and for other available command line options please see the help by runningcfchecks -h### Environment VariablesThe following parameters can be set on the command-line or through environment variables:CF_STANDARD_NAMESor (CL option-s) : The path or URL to the CF standard names tableCF_AREA_TYPESor (CL option-a) : The path or URL to the CF area types tableCF_REGION_NAMESor (CL option-r): The path or URL to the CF region names table### Running the Test scriptIn the release tarball there is atest_filesdirectory containing atest.shscript which runs a series of test files through the CF Checker and confirms the checker is working as expected.  It is a very elementary system, which will be rewritten soon.  Before running it you will need to edit the location of the cfchecks script in thetests.shfile:cfchecker=”<location of cfchecks>”Then just run thetests.shscript:./tests.sh
Package: cf_clearance
cf-clearancePurpose To make a cloudflare v2 challenge pass successfully, Can be use cf_clearance bypassed by cloudflare, However, with
the cf_clearance, make sure you use the same IP and UA as when you got it.Project Pass Challenge StatusWarningIf you use chromium, Please use interface mode, You must add headless=False.
If you use it on linux or docker, use XVFB.If you use firefox you don't need interface mode and XVFB.Challenge are not always successful. Please try more and handle exceptions.Docker UsageRecommended to install using Docker container on Ubuntu server.DockerHub =>https://hub.docker.com/r/vvanglro/cf-clearancedockerrun-d--restartalways--networkhost--namecf-clearancevvanglro/cf-clearance:latest\--host0.0.0.0--port8000--workers1curlhttp://localhost:8000/challenge-H"Content-Type:application/json"-XPOST\-d'{"proxy": {"server": "socks5://localhost:7890"}, "timeout":20, "url": "https://nowsecure.nl"}'importrequestsproxy="socks5://localhost:7890"resp=requests.post("http://localhost:8000/challenge",json={"proxy":{"server":proxy},"timeout":20,"url":"https://nowsecure.nl","pure":True,"browser":2,"cookies":[{"url":"https://www.example.com","name":"example-cookie","value":"example-value",}],"headers":{"example-ua":"example-ua-value"},"exec_js":"() => {return navigator.userAgent}",},)data=resp.json()# In some cases, the cloudflare challenge will not be triggered,# so when cf in the return parameter is true, it means that the challenge has been encountered.ifdata.get("success")anddata.get("cf"):ua=data.get("user_agent")exec_js_resp=data.get("exec_js_resp")cf_clearance_value=data.get("cookies").get("cf_clearance")# use cf_clearance, must be same IP and UAheaders={"user-agent":ua}cookies={"cf_clearance":cf_clearance_value}res=requests.get("https://nowsecure.nl",proxies={"all":proxy},headers=headers,cookies=cookies)if"<title>Just a moment...</title>"notinres.text:print("cf challenge success")Installpip install cf-clearanceUsagePlease make sure it is the latest package. Seeexample.pip install --upgrade cf-clearanceorpipinstallgit+https://github.com/vvanglro/cf-clearance.git@mainInstall Playwright Dependsplaywrightinstallchromiumfirefox
Package: cfclient
Crazyflie PC clientThe Crazyflie PC client enables flashing and controlling the Crazyflie.
It implements the user interface and high-level control (for example gamepad handling).
The communication with Crazyflie and the implementation of the CRTP protocol to control the Crazyflie is handled by thecflibproject.InstallationSee theinstallation instructionsin the GitHub docs folder.Official DocumentationCheck out theBitcraze crazyflie-client-python documentationon our website.ContributeGo to thecontribute pageon our website to learn more.Test code for contributionRun the automated build locally to test your codepython3 tools/build/build
Package: cfc-model
Closed-form Continuous-time ModelsClosed-form Continuous-time Neural Networks (CfCs) are powerful sequential neural information processing units.Paper Open Access:https://www.nature.com/articles/s42256-022-00556-7Arxiv:https://arxiv.org/abs/2106.13898Installationpip install cfc-modelRequirementsPython 3.7 or newerTensorflow 2.4 or newerPandasNumpyFor a fresh anaconda environment with the required dependencies:conda env create --file environment.yml
conda activate cfcUsageExamplefrom cfc_model.dense_models import SequentialModel
import numpy as np
X = np.array([[1, 1, 1, 0], [1, 1, 0, 1], [1, 0, 0, 1], [1, 1, 0, 0],
              [1, 0, 1, 0], [1, 1, 0, 1], [1, 0, 0, 1], [1, 0, 1, 0]])
y = np.array([0, 0, 1, 1, 1, 0, 1, 1])
model = SequentialModel()
model.fit(X, y)
y_pred = model.predict([1, 1, 0, 1]) # y_pred equals 0ConfigurationThe following configuration states can be usedno_gateRuns the CfC without the (1-sigmoid) partminimalRuns the CfC direct solutionuse_ltcRuns an LTC with a semi-implicit ODE solver instead of a CfCuse_mixedMixes the CfC's RNN-state with a LSTM to avoid vanishing gradientsIf none of these flags are provided, the full CfC model is usedExample# Runs an LTC with a semi-implicit ODE solver instead of a CfC
config = {"use_ltc": True}
model.fit(X, y, config=config)Cite@article{hasani_closed-form_2022,
	title = {Closed-form continuous-time neural networks},
	journal = {Nature Machine Intelligence},
	author = {Hasani, Ramin and Lechner, Mathias and Amini, Alexander and Liebenwein, Lucas and Ray, Aaron and Tschaikowski, Max and Teschl, Gerald and 	    Rus, Daniela},
	issn = {2522-5839},
	month = nov,
	year = {2022}
Package: cf-compare-versions
Ormuco Code ChallengeThis project has been created only for demonstration purpose.The challengeThe goal of this question is to write a software library that accepts 2 version string as input and returns whether one is greater than, equal, or less than the other. As an example: “1.2” is greater than “1.1”. Please provide all test cases you could think of.The Answersource directory:./compare_versionsRunpip3 install cf_compare_versionsusage:from compare_versions.compare_versions import compare_versions

result = compare_versions('1.0.0.2.9', '1.0.0.3.4')

# It will return:
#     A positive number: If the first version is greater than the second  
#     A negative number: If the first version is smaller than the second
#     Zero: If the versions are equals
Package: cf-configuration-exporter
# cf-configuration-exporter`cf-configuration-exporter` is a simple utility whose aim is to generate aconfiguration manifest from a live installation of CloudFoundry.The utility is meant to be used either in combination with the CF configurator project:- https://github.com/SpringerPE/python-cfconfigurator- https://github.com/SpringerPE/ansible-cloudfoundry-roleor with the following terraform provider:- https://github.com/mevansam/terraform-provider-cfand helps you get started with an initial manifest or terraform resources without having to extract manuallyall the information needed.The code is compatible with Python 3Documentation of the APIs used:* https://apidocs.cloudfoundry.org* https://docs.cloudfoundry.org/api/uaa#INSTALLATION## ExampleInstall via pip: `pip install cf-configuration-exporter`## Upload to PyPI1. Create a `.pypirc` configuration file. This file holds your information for authenticating with PyPI.```[distutils]index-servers = pypi[pypi]repository=https://pypi.python.org/pypiusername=your_usernamepassword=your_password```2. Login and upload it to PyPI```python setup.py register -r pypipython setup.py sdist upload -r pypi```#USAGE```Define the following env variables:`EXPORTER_API_URL` = the endpoint of the Cloudfoundry API`EXPORTER_ADMIN_USER` = username used for logging in to CloudFoundry`EXPORTER_ADMIN_PASSWORD` = password used for logging in to Cloudfoundry`EXPORTER_EXCLUDE_ENV_VARS` = list of `,` separated strings. The env variables whose name starts byone of the prefixes listed will not be exported.```You can run the utility by executing the run script:```./run```or after installing the pip package```python setup.py install```by running```cf_export_configuration```## AuthorSpringer Nature Platform Engineering, Claudio Benfatto (claudio.benfatto@springer.com)Copyright 2017 Springer Nature
Package: cfconfigurator
# python-cfconfigurator`python-cfconfigurator` is a simple and small library to manage Cloud Foundrycommon operations (not aimed to manage apps or service brokers). The ideabehind this implementation is having a library to be used for ConfigurationManagement tools, in particular for[Ansible modules](https://github.com/SpringerPE/ansible-modules-cloudfoundry).CF class implements support to manage: users, blobstore cache, environmentvariable groups, feature flags, shared domains, private domains, organizations,quotas, spaces, security groups and security group rules.There is also a UAA implementation which adds support to manage users,groups and clients directly with an UAA server.Code compatible with Python 2 and Python 3Documentation of the APIs used:* https://apidocs.cloudfoundry.org* https://docs.cloudfoundry.org/api/uaa## ExampleInstall via pip: `pip install cfconfigurator````from cfconfigurator.cf import CFapi_url = "https://api.test.cf.example.com"admin_user = "admin"admin_password = "admin"cf = CF(api_url)cf.login(admin_user, admin_password)org = cf.search_org("pivotal")print(org)```## Upload to PyPI1. Create a `.pypirc` configuration file. This file holds your information for authenticating with PyPI.```[distutils]index-servers = pypi[pypi]repository=https://pypi.python.org/pypiusername=your_usernamepassword=your_password```2. Login and upload it to PyPI```python setup.py register -r pypipython setup.py sdist upload -r pypi```## TODO* Tests, tests ... fix me!* Buildpack management## AuthorSpringer Nature Platform Engineering, Jose Riguera Lopez (jose.riguera@springer.com)Copyright 2017 Springer Nature
Package: cfcrawler
cfcrawlerCloudflare scraper and cralwer written in Async, In-place library for HTTPX.
Crawl website that has cloudflare enabled, easier than ever!Github repository:https://github.com/ManiMozaffar/cfcrawler/Getting startedTo use library, simply replace your aiohttp client with ours!fromcfcrawlerimportAsyncClientasyncdefget(url):client=AsyncClient()awaitclient.get(url)You can also rotate user agentsfromcfcrawlerimportAsyncClientclient=AsyncClient()client.rotate_useragent()You can also specify which browser you want to usefromcfcrawler.typesimportBrowserfromcfcrawlerimportAsyncClientAsyncClient(browser=Browser.CHROME)You can also use asyncer to syncify the implementationfromcfcrawlerimportAsyncClientfromasyncerimportsyncifydefget(url):client=AsyncClient()syncify(client.get)(url)Coming NextCF JS Challenge solverCaptcha solver integration (2Captcha and etc)ContributionI'll work on this library in few months, I don't have free time right now, but feel free to contribute.
I'll check and test the PRs myself!
Package: cf-crypt
Encryption at rest made easycf-crypt is a package to help you keep all you data resting on disk secure. It make encrypting your data at rest as easy as reading and writing from a file.>>>fromcfcryptimportCryptFileTextIO>>>withCryptFileTextIO('./my_file.crpt','w',encryption_key,identity_key)asfh:...fh.write('Super secret, secret squirrel plans.')InstallInstall the package frompypi.org/project/cf-cryptusingpip$python-mpipinstallcf-crypt[...]
Successfully installed cf-cryptQuick StartGenerate KeysThese keys are generated securely in memory.Like all in memory variables they will disappear when your script ends.
We really need our keys to stick around for as long as we want to decrypt our data.>>>fromcfcrypt.rsa.key_helpersimportgenerate_private_key>>>encryption_key=generate_private_key()>>>identity_key=generate_private_key()Save KeysKeys can be serialized to the PEM format and saved to disk.>>>fromcfcrypt.rsa.key_helpersimportprivate_key_to_pem_file>>>private_key_to_pem_file('./my_encryption_key.pem',encryption_key)>>>private_key_to_pem_file('./my_identity_key.pem',identity_key)ThesePEMfiles are quite literally the keys to your data.Load KeysIf you set a password on thePEMfiles you will need it to load them from disk.>>>fromcfcrypt.rsa.key_helpersimportpem_file_to_private_key>>>encryption_key=pem_file_to_private_key('./my_encryption_key.pem')>>>identity_key=pem_file_to_private_key('./my_identity_key.pem')EncryptEncryption is really easy, just useCryptFileTextIOlike a regular file interface.>>>fromcfcryptimportCryptFileTextIO>>>withCryptFileTextIO('./my_file.crpt','w',encryption_key,identity_key)asfh:...fh.write('Super secret, secret squirrel plans.')DecryptDecryption is also really easy, just useCryptFileTextIOlike a regular file interface.>>>fromcfcryptimportCryptFileTextIO>>>withCryptFileTextIO('./my_file.crpt','r',encryption_key,identity_key)asfh:...data=fh.read()>>>data'Super secret, secret squirrel plans.'More…There are a bunch of other useful encryption related tools in the module. See thedocumentation (cf-crypt.readthedocs.io/en/latest)for details.String encryptionPython object serialization + encryptionRSA signing & verificationFile & folder encryptionKey management.
Package: cfctl
cfctl - CloudFlare ControlA command line tool to do operations on cloudflare and avoid having to go into the web interface.Usageadding a recordcfctl add_record -t 600 demo1.jnvilo.com A 192.168.100.1delete a recordcfctl delete_record demo1.jnvilo.comlist all recordscfctl list_records jnvilo.comdisplay entrycfctl inspect_fqdn demo1.jnvilo.comTestmake testYou can also test with a specific version of Python:make PYTHON_VERSION=2.7.11 test
Package: cfddns
cfddnsDynamic DNS client for Cloudflare DNS.Usagecat<< EOD > domainsexample.commail.example.comexample.orgEODcat<<EOD > cfddns.ymltoken: "<CloudFlare API token>"interval: 900 # in seconds (optional)endpoint: "https://api.ipify.org" # (optional)EODcfddns-ccfddns.ymldomainsInstallArch LinuxInstallcfddnsviaAUR.gitclonehttps://aur.archlinux.org/cfddns.git&&cdcfddns
makepkg-si

cat<< EOD > /etc/cfddns/domainsexample.commail.example.comexample.orgEODvim/etc/cfddns/cfddns.yml# assign `token`systemctlenable--nowcfddnsBuild from sourcegitclonehttps://github.com/uetchy/cfddns.git&&cdcfddns
poetryinstall--build
Package: cf-ddns
# Cloudflare DNS clientUse the Cloudflare API to keep records up to date with your current IP address(es).
By default it will try to get both IPv4 and IPv6 addresses from icanhazip.com. (new in v1.1.0)This cron expression will add/update an A/AAAA record for domain.tld with your external IP address
every 30 minutes:`*/30*  * * *cf-ddns.py--namedomain.tld`Make sure to set the required environment variable(s):
* CF_API_TOKEN, for the recommended least privilege access model.
* CF_EMAIL and CF_TOKEN, for the old access mode with the superuser account token.Executecf-ddns.py -hfor a list of all the arguments.You can add multiple names like this:`--namesubdomain1.domain.tld someother.domain.tld`If you want to use Sentry for alerts, set the DSN in the SENTRY_DSN environment variable.## Requirements:
- A Cloudflare account and domain name.
- Python 3.4 or newer
- Requests (https://github.com/kennethreitz/requests)
- Optional: Raven (for Sentry alerting)## Disclaimer:
This software is provided as is. It should be safe, but don’t blame me if your
computer blows up. It is tested on Mac OSX Python 3.7, Synology NAS Python 3.5.## Installation:`pip install--upgradecf-ddns`Optionally with Sentry alerting:`pip install--upgradecf-ddns[sentry]`## Usage with API (bearer) tokens
If you want to use an API token, there are two options for zone permissions:
1. Allow access to read all zones.
2. Allow access to only a specific zone.If you go with 2. (recommended), you have to set the zone id manually as a command-line
argument with`--zone-id`. If you don’t you’ll get an error saying you don’t have
permission to list all zones. This is because cf-ddns is trying to find your zone id
from the DNS name you gave it and it needs to list all zones to do so.Additionally the token must have access to edit DNS records.Complete (bearer) token instructions:
1. Go to your Cloudflare profile page and click “API Tokens” in the top menu
2. Create new token
3. Type a name for you token and select “Start with a template”
4. Choose the “Edit zone DNS” template
5. Under “Zone Resources” choose the zone you want to use cf-ddns with
6. Continue and save, then copy the token to the CF_API_TOKEN environment variable.
7. Find the zone id on the dashboard Overview page and add it to the command in the`--zone-id`argument.
8. Execute cf-ddns with the`--verify-token`option to verify your setup.
It will exit with code 0 for success and 1 for failure. Results are logged as well.Check out the [Cloudflare blog post](https://blog.cloudflare.com/api-tokens-general-availability/)
for more information about API tokens.[@maedox](https://twitter.com/maedox/)
Package: cf-deploy
cf-deploycf-deploy is a package to automate CloudFormation deployments. It simplifies the deployment process by allowing you to use YAML configuration files to define your stack parameters and resources.Features:Merge multiple configuration files to create a single CloudFormation stackInstallationTo install cf-deploy, run the following command:pipinstallcf-deployUsageTo use cf-deploy, create a YAML configuration file with your CloudFormation stack settings. You can use a base configuration file to define common settings and override or extend them with environment-specific configuration files.Here's a sample base configuration file, base.yaml:region:us-west-2template:s3://my-bucket/my-template.yamldeployment_stages:-dev-prodAnd a sample environment-specific configuration file, dev.yaml:name:my-stack-devprefix:dev-parameters:Stage:devInstanceType:t2.microDeploying a CloudFormation stackTo deploy a CloudFormation stack using cf-deploy, run the following command:cf-deploy-bbase.yaml-cdev.yamlThis command will merge the base configuration file (base.yaml) with the environment-specific configuration file (dev.yaml) and deploy the resulting CloudFormation stack.
Package: cfde-submit
CFDE SubmitThis is a client to interact with the Globus Automate Flows for CFDE use cases.
Both a Python API and a CLI tool are available.InstallationThe CFDE Submission Client requires Python 3.6 or later. To check which version
of Python you have, runpython –version. If you have both Python 2 and
Python 3 installed, you may need to check withpython3 –version. If this is
the case, you will also need to usepip3instead ofpipbelow.Install with pip:pipinstallcfde-submitUsageThis tool can ingest any of the following into DERIVA:A directory to be formatted into a BDBagA premade BDBag directoryA premade BDBag in an archive fileIn all cases, the data must already be in CFDE TableSchema format, or the
ingest may fail. See instructions here (link to docs pending).Command lineThere are four commands available:run,status,login,logout, andreset.
Use them as follows:cfde-submitrunDATA-PATHwill ingest the data found atDATA-PATHinto
CFDE. You can also specify the following options:--output-dir=OUTPUT_DIRwill copy the data inDATA-PATH, if it is a
directory, to the location you specify, which must not exist and must not
be insideDATA-PATH. The resulting BDBag will be named after the output
directory. If not specified, the BDBag will be created in-place inDATA_PATHif necessary.--delete-dirwill trigger deletion of theoutput-dirafter processing
is complete. If you didn’t specifyoutput-dir, this option has no effect.--ignore-gitwill prevent the client from overwritingoutput-diranddelete-dirto handle Git repositories.cfde-submitstatuswill check the status of a Flow instance.cfde-submitloginwill start the login process. If you have tokens saved
from a previous login, this command will validate those tokens and only
re-authenticate you if they are expired. It is not necessary to run this
command beforerunorstatus, because those commands will also
authenticate you if needed.cfde-submitlogoutwill log you out and revoke any valid cached tokens.cfde-submitresetwill reset your cfde-submit configuration.Python APITheCfdeClientclass, once instantiated, has the following methods:start_deriva_flow(self, data_path, catalog_id=None, output_dir=None, delete_dir=False, **kwargs)check_status(self, flow_id=None, flow_instance_id=None, raw=False)logout(self)The arguments operate in the same fashion as the CLI options, and are
documented in detail in the method docstrings.