Saravanan666/pypi-org huggingface dataset:
Package: citypay-api-client
This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts.  ## Compliance and Security Your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by  Visa and MasterCard and the PCI Security Standards Council. These include  * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at   lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments   as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or   primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN   and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the   application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information   is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP   address. Our application firewalls analyse data that may be an attempt to break a large number of security common   security vulnerabilities.   # noqa: E501
Package: city-score
City ScoreCity Score is a command-line application for scoring cities based on your personal preferences. Here's an example:CityPopulationZillow® ZHVIPeopleForBikesYelp "gay bars"Nearby ski resortsScorePortland, OR647,176$547,999569Mount Hood Ski Bowl (42 miles) and 2 more100Detroit, MI645,658$64,414427Mt Brighton, MI (41 miles) and 1 more86Cambridge, MA116,892$959,032586Wachusett Mountain (40 miles) and 5 more84TechnologiesPython 3FeaturesRanks all 29,880 cities and towns in the United StatesIncludes multiple built-in data providersDesigned to allow users to easily add and remix dataOutputs prettified to the console or to CSV, HTML, JSON, JSONLDesignCity Score uses a three-step process:Qualification: criteria identify cities that meet your minimum standard.Scoring: scorers score facets of your choosing at various weights.Generation: dimensions appear in the final output.Quick startDownload City Score from PyPI:$ python3 -m pip install city_scoreCreate a script (myscore.py) like this:fromcity_scoreimportrunfromcity_score.sources.coreimport*fromcity_score.sources.peopleforbikesimport*fromcity_score.sources.zillowimport*sources=(PeopleForBikes,Zillow,)criteria=(minimum_bike_score(25),minimum_population(60000),maximum_median_home_price(1000000),prohibited_states(('TX','FL','CO',)),)scorers=(median_home_price_scorer(lower=350000,upper=800000),bike_score_scorer(lower=40,upper=80,weight=2),)dimensions=(population,median_home_price,median_rent,bike_score,)run(sources,criteria,scorers,dimensions)Run your script:$ python3 myscore.py --sort=score --scale-scoresData sources🚲 PeopleForBikes provides a score for biking infrastructure.🏂 Snowpak provides the name and location of most ski resorts.🏃🏻 TrailLink provides the number of nearby trail miles.🍕 Yelp provides data on many points of interest, including businesses.🏡 Zillow provides estimates for home and rent prices.LicenseMIT License
Package: city-scrapers-core
City Scrapers CoreCore functionality for creating public meetings web scrapers for theCity Scrapersproject.See thedocumentationfor more details.Installation# To install base packagepipinstallcity-scrapers-core# To install with AWS, Azure, or GCS dependenciespipinstall'city-scrapers-core[aws]'pipinstall'city-scrapers-core[azure]'pipinstall'city-scrapers-core[gcs]'
Package: city-scrapers-sentry
city-scrapers-sentryA Scrapy extension that logs spider errors to Sentry.This project began as a fork ofscrapy-sentry, which was developed by Jordi Llonch. We are grateful for his work and those of other contributors.Note: while this extension captures errors from Scrapy spiders, it does not capture errors elsewhere in Scrapy's operation (e.g. the Scrapy pipeline).Requirements:ASentryaccount.TheDSNfor your Sentry project.Installationpip install city-scrapers-sentrySetupAddSENTRY_DSNandcity_scrapers_sentry.extensions.Errorsextension to your Scrapy project'ssettings.pyfile:Example:# sentry dsn
SENTRY_DSN = 'http://public:secret@example.com/1'
EXTENSIONS = {
    "city_scrapers_sentry.extensions.Errors": 10,
}DevelopmentInstallpipenvif you don't have it already.At the project root, create a .env file and include the following. Replace<your-sentry-dsn>with your Sentry DSN:SENTRY_DSN=<your-sentry-dsn>Run the following command from the project root to activate pipenv's virtual environment and install project dependencies:pipenv sync --devWhen activated, pipenv should load your SENTRY_DSN env var from the .env file.Enter the example_project directory:cd example_projectSimulate a failed spider run. The spider will log an error to your Sentry account:scrapy crawl example
Package: ciur
ContentsNutshellInstallationCiur use MIT LicenseContributionCiur is a scrapper layer in code developmentCiur is a lib because it has less black magic than a frameworkIt exports all scrapper related code into separate layer.If you are annoyed bySpaghetti code,
sql inside php and inline css inside html
THEN you also are annoyed by xpath/css code inside crawler.Ciur gives the taste ofLasagna codegenerally by enforcing encapsulation for scrapping layer.For more information visit thedocumentation.NutshellCiur uses own DSL, here is a small example of aexample.org.ciurquery:root `/html/body` +1name `.//h1/text()` +1paragraph `.//p/text()` +1This command$ciur-phttp://example.org-rhttps://bitbucket.org/ada/python-ciur/raw/HEAD/docs/docker/example.org.ciurWill produce a json{"root":{"name":"Example Domain","paragraph":"This domain is established to be used for illustrative
                       examples in documents. You may use this
                       domain in examples without prior coordination or
                      asking for permission."}}Installationpip install ciurInstall via docker$dockerrun-itpython:3.9bashroot@e4d327153f2f:/#pipinstallciurroot@e4d327153f2f:/#ciur--helproot@e4d327153f2f:/#ciur--helpusage:ciur[-h]-pPARSE-rRULE[-w][-v]*CiurisascrapperlayerbasedonDSLforextractingdata**Ciurisalibbecauseithaslessblackmagicthanaframework*Ifyouareannoyedby`Spaghetticode`thanwecantaste`Lasagnacode`withhelpofCiurhttps://bitbucket.org/ada/python-ciuroptionalarguments:-h,--helpshowthishelpmessageandexit-pPARSE,--parsePARSEurlorlocalfilepathrequireddocumentforhtml,xml,pdf.(f.e.http://example.orgor/tmp/example.org.html)-rRULE,--ruleRULEurlorlocalfilepathfilewithparsingdslrule(f.e./tmp/example.org.ciurorhttp:/host/example.org.ciur)-w,--ignore_warnsuppresspythonwarningwarningsandciurwarningshints-v,--versionshowprogram'sversionnumberandexitCiur use MIT LicenseThis means that code may be included in proprietary code without any additional restrictions.Please seeLICENSE.ContributionThe code ofCuirwas concepted in 2012,
and is going to continue developing.All contributions are welcome and should be done via Bitbucket (Pull Request, Issues).A second alternative as exception (maybe if bitbucket is not available)
can be done via email ciur[mail symbol]asta-s.eu.
Package: ciutils
Helpers to use in CI environments (e.g. use xmlrunner withtestcommand)What’s new in version 0.0.6Patch xmlrunner to support skipped test cases in python=2.6What’s new in version 0.0.3Added support in Linux (Unix ?) to look up free
TCP ports to be used during test runs.What’s new in version 0.0.2Helper function junitrunner configures the runner’s
XML output folder using process’ environment variables.
Package: ciuy
ciuy🇺🇾 🇪🇸 Documentación en español disponibleaquí/ Spanish documentation is availablehere.Package for validating Uruguayan identity document numbers. Full documentation is availablehere.The functions in this package work with strings and ignore any non-digit characters. Numbers are valid too. So for example, the following expressions represent the same document number:'1.234.567-2'
'12345672'
12345672This package includes the following functions:validate_ci(ci: str) -> bool: Returns true ifciis a valid document number, returns false otherwise.ciis a string which represents a document number, including the validation digit.cican be a number as well.validation_digit(ci: str) -> str: Returns the validation digit forci.random() -> str: Returns a random document number (including validation digit) in the (100.000, 9.999.999) range.Installation$ pip install ciuyUsage>>> import ciuy
>>> ciuy.validate_ci("1.234.567-2")
True
>>> ciuy.validation_digit("1.234.567")
'2'
>>> ciuy.random()
'82405816'TestingThis package includes some doctests, as well as unit tests that can be run withpytest.After cloning the repository, you can run the doctests with:$ python3 -m doctest ./ciuy/__init__.py -v
 (several lines ommited)
11 passed and 0 failed.
Test passed.Usepy.testto run the unit tests:$ py.test
============================= test session starts ==============================
platform linux -- Python 3.8.1, pytest-5.3.5, py-1.8.1, pluggy-0.13.1
rootdir: /home/ciuy
collected 98 items     

tests\test_clean.py ..........                                           [ 10%]
tests\test_command_line.py ........................                      [ 34%]
tests\test_random_ci.py ..                                               [ 36%]
tests\test_validate_ci.py .......................................        [ 76%]
tests\test_validation_digit.py .......................                   [100%]

============================== 98 passed in 1.09s =============================You can also usepytestto run all tests, including doctests, with:$ py.test --doctest-modulesCommand lineAfter installation, the following commands become available:$ validate_ci 1.234.567-2
True
$ validation_digit 1.234.567
2
$ random_ci
82405816Based on the ci_uy Ruby gem by Fernando Briano (link).
Package: civ5-wallpapers
Sid Meier’s Civilization Vis a great turn-based strategy game, and it comes
with a bunch of great paintings, spread all around the game. This tool allows
you to extract those, and to use them as your wallpaper for your favourite
Linux distro.You must have a legit copy of Civilization V installed on your computer to
use this program.To learn more about how to use it, check out theReadme on GitHub.
Package: civetqc
CivetQCAboutCivetQC is a fully automated pipeline for quality control ofCIVEToutputs. Using the random forest algorithm implemented in scikit-learn, CivetQC categorises outputs as acceptable or unacceptable based on a variety of quality metrics, including number of surface-surface intersections, self-intersections, and brain mask error, among others. The model was developed using 1216 T1-weighted scans from several studies affiliated with McGill University in Montreal, Canada. A separate sample of 120 individuals from the UK Biobank served to evaluate final model performance.We rated the output quality for each subject on a scale from 0 to 2 (0 = fail, 1 = questionable, 2 = pass) based on visual inspection of CIVET outputs. Ratings of 1 or 2 were considered acceptable, whereas ratings of less than one were considered unacceptable. The model was trained using stratified fivefold cross validation, and the optimal set of parameters were chosen based on the mean ROC-AUC score from fifty iterations of a randomised search of the hyperparameter space. Finally, we selected the optimum discrimination threshold in terms of maximising the F2 score.The training data contained 1163 acceptable scans (95.6%) and 53 unacceptable scans (4.4%). During cross-validation, the mean AUC score for the best model was 0.91. As depicted below, the optimal F2 score was achieved with a discrimination threshold of 0.2, which yielded 1.00 precision and 0.98 recall for acceptable scans, and 0.71 precision and 0.98 recall for unacceptable scans.The testing data, on the other hand, included 98 scans of acceptable quality and 22 scans of unacceptable quality. The mean AUC score was 0.98, with 1.0 precision and 0.97 recall for acceptable scans, and 0.88 precision and 1.0 recall for unacceptable scans.InstallCivetQC is available via the Python Package Index (PyPI):pip install civetqcUsageIn most cases, the preferred method of using CivetQC is through the command line interface. Users must provide an input path, which may be either a file or a directory. If available, it is recommend to provide the file outputted by CIVET with aggregated tabular QC metrics. However, if this file is not available, users may instead provide a path to a directory containing files of the format prefix_id_civet_qc.txt, in which case CivetQC will attempt to extract the relevant metrics for each subject.positional arguments:
input_path        path to file or directory with CIVET QC outputs

optional arguments:
-h, --help        show this help message and exit
-v, --version     show program's version number and exit
--threshold       probability above which a failure will be predicted (default: 0.2)
--output_dir      directory for results (default: $PWD)
--output_format   format for output file: csv, json (default: csv)
Package: civicjson
civic.json-cli is a command line interface that helps make civic.json easier to use. This tool will let you:Install a civic.json template to your repositoryValidate one that’s already there.It implements thecivic.json (extended)specification, a (backwards compatible) modification to BetaNYC’s original civic.json specification. The update aims to broaden civic.json’s user base to include civic hackers inside and outside of government.You can read more about that on thecivic.json (extended) homepageor in itsGitHub repository.DependenciesPython 2.7 or 3.3+jsonschemato validate civic.json files against the schemarequeststo get the schema and template files from GitHub and ensure they’re up to dateAn active internet connectionUseCreate a civic.json fileRuncivicjson initfrom the base directory of your repository to initialize a civic.json file (with explanatory text).Validate a civic.json fileRuncivicjson validatefrom the folder containing your civic.json file. If there are any errors, it will output them to the console.
Package: civiproxy-logs2json
CiviProxy_Logs2JsonTranslate aCiviProxylogfile into JSON format.Installationpython3-mpipinstallciviproxy_logs2json--userExample UsagePass logfile as option:cpl2j-f/var/www/proxy_logs/proxy.logPipe logfile into program:catproxy.log|cpl2jSet JSON indentation to two spaces:catproxy.log|cpl2j-s2TipUseVisiDatato explore the data in a very comfortable way:
/var/www/proxy_logs/proxy.logcpl2j-f/var/www/proxy_logs/proxy.log|vd-fjson
Package: civipy
Getting StartedThis is a brand-new project and code is subject to change at any time.Reading the source code is the primary documentation for now. There are also
some tests which document usage. Author is hanging out in CiviCRM mattermost.Store your credentials in environment variablesCIVI_REST_BASE,CIVI_USER_KEY,CIVI_SITE_KEY.To log to a file instead of the screen, set theCIVIPY_LOG_FILEenvironment
variable to the file path you want to log to.You can either use subclasses of CiviCRMBase, e.g.CiviContact._get(primary_email="ana@ananelson.com")CiviEmail.find_or_create(search_key_name=["contact_id","email"],**kwargs)Or directly call CiviCRMBase:CiviCRMBase._get("Contact",primary_email="ana@ananelson.com")Functions which directly call CiviCRM API methods, with a minimum of
processing, start with an underscore, e.g._get. Convenience methods which do
more processing do not start with an underscore, e.g.find_or_createREST_BASETheCIVI_REST_BASEsetting lets you specify the URL of your REST API, OR it
can now refer to thecvordrushexecutable on your file system. If "http"
is found in CIVI_REST_BASE, the system will use http calls to the REST API. If
the string "drush" is found in CIVI_REST_BASE, it will use drush. And if
neither of these are found, it will attempt to call the cv command line API.Copyright & Licensecivipy Copyright (c) 2020 Ana NelsonLicensed under the GPL v3This 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.You should have received a copy of the GNU General Public License
along with this program.  If not, seehttps://www.gnu.org/licenses/.https://www.gnu.org/licenses/gpl-3.0.txt
Package: civiq6
CIViQ6 - Camera Integration for Vimba and Qt6CIViQ6 is a Python package which integratesVimbaPythonand Qt6 multimedia scheme.It provides:Class to instantiate the Vimba instance inQThreadCamera API similar to that of QtMultimediaCompatibility withQVideoSinkandQVideoWidgetThe following Qt bindings are supported:PySide6PyQt6This package is tested using Vimba 6.0, VimbaPython 1.2.1, and Mako U-130B camera device connected to the device with Window 11.How to useCIViQ6 imitates QtMultimedia scheme to provide API for the Allied Vision camera device.CIViQ6 classQt6 counterpartVimbaRunner-VimbaDevicesQMediaDevicesVimbaCameraDeviceQCameraDeviceVimbaCameraQCameraVimbaCaptureSessionQMediaCaptureSessionRunning the Vimba instanceVimbaRunneris a runner which wraps the VimbaPython API and starts Vimba.To start the Vimba instance, moveVimbaRunnerto a dedicatedQThreadand run it.
This task must be done before any other Vimba-related operation.Streaming the cameraOnce the Vimba instance is started, user can constructVimbaCamerainstance, set it toVimbaCaptureSession, and run it just as one would do withQCameraandQMediaCaptureSession.SetQVideoWidgetorQVideoSink(or any otherQObject-based preview) to the capture session to stream the camera.Setting the camera propertiesVimbaCameraprovides methods which return VimbaPython'sFeatureobjects that can get and set the camera properties.Capturing and recordingUnlike Qt6, CIViQ6 does not have default classes that support image capturing and video recording fromVimbaCaptureSession. User must define own classes that write VimbaPython'sFrameobject to file.The documentaion provides examples for defining the image capturer and video recorder.ExamplesUse cases are provided inexamplesdirectory.
They can be found in documentation as well.InstallationBefore you install, be careful for other Qt-dependent packages installed in your environment.
For example, non-headlessOpenCV-Pythonmodifies the Qt dependency thus can make other Qt bindings unavailable.To install CIViQ6, you first need to installVimbaPythonpackage which is not distributed by PyPI.
Go to its repository and follow the instructions.After VimbaPython is installed,civiq6can be installed usingpip.$ pip install civiq6DocumentationCIViQ6 is documented withSphinx.
Documentation can be found on Read the Docs:https://civiq6.readthedocs.io/If you want to build the document yourself, clone the source code and install with[doc]option.
This option installs the additional packages to build the document and to run the examples.Go todocdirectory and build the document.$ pip install civiq6[doc]
$ cd doc
$ make htmlDocument will be generated inbuild/htmldirectory. Openindex.htmlto see the central page.
Package: civis-jupyter-extensions
Tools for using the Civis Platform with Jupyter notebooksInstallation and SetupRun the following commands in a shell:pip install civis-jupyter-extensions
jupyter nbextension install --py civis_jupyter_ext
jupyter nbextension enable --py civis_jupyter_extIn order to use the extensions, make sure to have your Civis Platform API key in
your local environment asCIVIS_API_KEY.Magic CommandsTo load the magic commands, use the following in ipython or a
Jupyter notebook:%load_ext civis_jupyter_extYou can also autoload the magic commands every time a notebook is opened by
adding:c.InteractiveShellApp.extensions = ['civis_jupyter_ext']to your~/.ipython/profile_default/ipython_config.py.SQL QueriesTo get a table preview, use the cell magic like this:%%civisquery my-database
select * from dummy.table limit 10;To return a DataFrame for further processing, use the line magic like this:df = %civisquery my-database; select * from dummy.table;
Package: civis-jupyter-notebook
A tool to enable any Docker image to be used with Civis Platform Jupyter notebooks.UsageIn yourDockerfile, put the following code at the end:ENV DEFAULT_KERNEL <your kernel>  # set to python3 or ir

RUN pip install civis-jupyter-notebook && \
    civis-jupyter-notebooks-install

# Add Tini
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini

EXPOSE 8888
WORKDIR /root/work
ENTRYPOINT ["/tini", "--"]
CMD ["civis-jupyter-notebooks-start"]Here you need to replace<your kernel>with the name of your kernel (e.g.,python3orir). Note that your Dockerfile must userootas the default user.See theexampleDocker image for more details.Integration Testing Docker Images with the Civis PlatformIf you would like to test your image’s integration with the Civis Platform locally follow the steps below:Create a notebook in your Civis Platform account and grab the id of the notebook. This ID is the number
that appears at the end of the URL for the notebook,https://platform.civisanalytics.com/#/notebooks/<NOTEBOOKID>.Create an environment file calledmy.envand add the following to it:PLATFORM_OBJECT_ID=<NOTEBOOK ID>
CIVIS_API_KEY=<YOUR CIVIS API KEY>Build your image locally:docker build-ttest ..Run the container:docker run--rm-p8888:8888--env-filemy.env test.Access the notebook at the ip of your Docker host with port 8888 (e.g.,http://localhost:8888/notebooks/notebook.ipynb).Integration Testing Code Changes with the Civis PlatformThe scriptstests/build_dev_image.shandtests/run_dev_image.shcan be used to test the
integration of code changes with the Civis Platform.From the top directory in the repo type:$ ./tests/build_dev_image.sh
$ ./tests/run_dev_image.sh <NOTEBOOK ID>where<NOTEBOOK ID>is the ID of a Civis Platform notebook. See step 1 above if you do not
have a notebook ID. Then you can connect to the notebook from your local browser and check
to make sure it is working properly.ContributingSeeCONTRIBUTING.mdfor information about contributing to this project.LicenseBSD-3SeeLICENSE.mdfor details.