Saravanan666/pypi-org huggingface dataset:
Package: pycarsimlib
pycarsimlibAn easy-to-use wrapper library to call carsim solver from python script.Environmental setupcd /path/to/workingdirgit clone https://github.com/MizuhoAOKI/pycarsimlib.gitInstall pycarsimlib from pipYou can also install pycarsimlib easily with pip.pip install pycarsimlibRun a sample scriptLaunch carsim software.Make a dataset in which vehicle does not run.Edit procedures and declare import and export variables with "Additional Data" textbox. ex.IMPORT IMP_STEER_SW Replace 0.0! 1
IMPORT IMP_FBK_PDL Replace 0.0! 1
IMPORT IMP_THROTTLE_ENGINE Replace 0.0! 1
EXPORT XCG_TM
EXPORT YCG_TM
EXPORT YawAfter you finish editing gui, Press "Run Math Model" button to generate a simulation setting file (simfile.sim)ChangeCARSIM_DB_DIRvalue in examples/runcarsim.py according to your environment.ex.r"C:\Users\Public\Documents\CarSim2022.1_Data"Run the script.$ cd examples
$ python runcarsim.pyPress "Video + Plot" button on carsim gui to visualize simulation results.
Package: pycart
ecmm428 - ThepycartpackageContributorsContributors to this project areAlex Rundle (ARundle01)LicenseThis project is licensed under the BSD 3-Clause LicenseSPDX-License-Identifier: BSD-3-ClauseInstallationUsing PipMake sure you have the latest version of PIP installed:py -m pip install --upgrade pipThis package is currently hosted on PyPi and TestPyPi, as it is currently in unstable development.To install the latest stable version
and use this package from PyPi:py -m pip install pycartTo install
and use the latest development version from TestPyPi:py -m pip install -i https://test.pypi.org/simple/ pycartPre-requisitesAll code in this Repository and Package was developed and tested on Windows 10.This Repository requires:Python >=3.9.7, <3.10Read the Docs!Further information aboutpycartcan be foundhere,
including further installation and dependency details, a quickstart guide and API reference.Key DependenciesTo usepycart, you will need Python>=3.9, alongside the following
fixed version dependencies:PackageVersionPython>=3.9, <3.10matplotlib3.7.1geopandas0.12.2geojson3.0.1pandas1.5.3numpy1.24.2libpysal4.7.0shapely2.0.1alive-progress>3.1.1
Package: pycarta
# pycartaPyCarta provides a pythonic interface to the Carta data virtualization and
analysis environment.## DescriptionCarta provides a data virtualization environment that allows many, possibly
disparate, data resources to be connected to a uniform data processing and
analysis platform.PyCarta provides a pythonic interface to the Carta API, allowing interactive
development of data analysis pipelines within python and development of Carta
Operations within python.
Package: py-cartes-io
Official Cartes.io Python packageUsageInstall Cartes.io Python package:pipinstallpy-cartes-ioFirst, import the package:importpy_cartes_ioascartesCreate a mapnewMap=cartes.Maps().create()print(newMap['uuid'])print(newMap['token'])Get a list of mapscartes.Maps().get()You can use theadd_parammethod to add parameters to the request, especially useful for pagination:cartes.Maps().add_param('page',2).get()# There is also a shorthand for thiscartes.Maps().page(2).get()Get a specific mapcartes.Maps('048eebe4-8dac-46e2-a947-50b6b8062fec').get()Get a maps markerscartes.Maps('048eebe4-8dac-46e2-a947-50b6b8062fec').markers().get()You can also add parameters to the request withadd_parammethod:map=cartes\.Maps('651107a9-1d22-46a8-8254-111f7ac74a2b')\.markers()\.add_param('show_expired',True)\.get()print(map)Create markersparams={'lat':row['lat'],'lng':row['lng'],'description':row['description'],'category_name':row['category_name'],'link':row['link']}cartes.Maps('048eebe4-8dac-46e2-a947-50b6b8062fec').markers().create(params)# you can also pass a map_token (or api_key) if your map settings require itcartes.Maps('048eebe4-8dac-46e2-a947-50b6b8062fec',map_token="xxx").markers().create(params)Get related maps for a specific mapcartes.Maps('048eebe4-8dac-46e2-a947-50b6b8062fec').related().get()
Package: pycartool
PyCartoolA simple open source Python package for I/O between Cartool and pythonAbout CartoolCartool is the EEG analysis software developped at the Functional Brain Mapping Lab (FBMLab), in Geneva, Switzerland. This project was initiated in 1996, and is still actively developped up to these days. It has been entirely programmed by Denis Brunet in C++, and doesn't rely on any other dependency to run.
fromCartool website.InstallationThe latest stable version of Pycartool is available throughPyPi:pip install pycartoolDocumentationDocumentation is available athttps://pycartool.readthedocs.io/en/stable/Contributing to PycartoolAny contribution is welcome, please let us know by opening an issue!
Package: pycaruna
pycarunaBasic Python implementation for interfacing with Caruna Plus (sometimes calledCaruna+). It supports only basic
methods, but enough to extract electricity usage data for further processing.Supported features:Get user profile informationGet metering points ("assets")Get consumption data (daily/hourly)UsageThe project is published on PyPI:https://pypi.org/project/pycaruna/. You can use this package by adding the
following to yourrequirements.txt:pycarunaTheexamples/directory has example Python programs illustrating how to use the library.Theresources/directory has examples of API response structures.CaveatsDuring daylight savings time changes, the API may return a duplicate datapoint (same timestamp in two consecutive
data points). Seehttps://github.com/Jalle19/pycaruna/issues/7for more details.The authentication procedure requires a lot of HTTP requests to be sent back and forth, so the process is
relatively slow. It's best to store and reuse the token produced by it instead of doing the authentication
process all over again all the time.Related projectscaruna-influxdb- a collection of scripts for ingesting your Caruna data
into InfluxDBCreditshttps://github.com/kimmolinna/pycarunaLicenseMIT
Package: pycarwings2
pycarwings2Python3 version of the pycarwings2 library.Library for connecting and interacting with Nissan's CARWINGS service for Nissan LEAF cars.
Uses the (newly secure!) REST/JSON API rather than the previous XML-based API.Note: The US may use an entirely RESTful API as mentioned inthis gist by BenWoodfordandIssue 30Please report if this works in the US.  I am based in the UK.Inspired by original pycarwings library:https://github.com/haykinson/pycarwingsincluding code fromhttps://github.com/jdhorne/pycarwings2andhttps://github.com/BenWoodford/pycarwings2Asynchronous methodsNote that several of the most interesting methods in the CARWINGS service are
asynchronous--you ask the service to do something, and it just says "ok". You then
have to poll a corresponding method to find out if the operation was successful.Recently the polling has continued to return zero, yet when querying the data
held on the Nissan servers the last update date changes, indicating a response
has been received from the car, see examples/get-leaf-info.py for how this can
be handled.More details are located at the top ofpycarwings2.py.Installationpip3 install pycarwings2Example usageCopy file ./examples/config.ini to ./examples/my_config.iniEdit my_config.ini and enter your username, password and regionRun python3 ./examples/get-leaf-info.pyLicenseCopyright 2016 Jason Horne
Copyright 2018 Phil ColeLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: pycas
Notice: this seems to not quite fit the needs of the project it was intended for.  It will remain in its current form,
but consider the package no longer maintained.  Feel free to improve it further if you choose, and submit pull
requests on github.What?This is a copy of Jon Rifkin’s Python CAS client.  The original can be found athttps://wiki.jasig.org/display/CASC/Pycas.  This fork lives athttps://github.com/ryanfox/pycasand on Pypi.The original appears to have not been updated for some time now, and is not on Pypi. This is an attempt to rectify
that situation.Potential things to be added:Unit testsBetter security:Remove default secret keyBetter yet, ditch md5 entirelyAdd signed cookies (e.g. itsdangerous)Enforce the timeoutInstallationpip install pycasWhy?The pycas CAS client provides CAS authentication for your Python CGI web application.How?STEPS TO ADD CAS AUTHENTICATIONAdd four lines to your Python Web app like this:import pycas
CAS_SERVER  = "https://casserver.mydomain"
SERVICE_URL = "http://webserver.mydomain/cgi-bin/webapp.py"
status, userid, cookie = pycas.login(CAS_SERVER, SERVICE_URL)Process the returned variables:status carries the success or failure status.
userid is the user's account name.
cookie is the header string to send to the client if it's not empty.For more information, see comments in the Python code.
Package: pycasatunes
PyCasaTunesAsynchronous python client for CasaTunes.
This package allows you to interact with CasaTunes API to control your home audio.InstallationpipinstallpycasatunesAttributions@timmo001for source of inspiration with hisaiolyric package.@ludeeusfor his generator class.⭐️ this repository if you found it useful ❤️
Package: pycasbin-firebase-adapter
Firebase Adapter for PyCasbinFirebase Adapter is theFirebaseadapter forPyCasbin. With this library, Casbin can load policy from Firebase Firestore or save policy to it.Installationpip install pycasbin_firebase_adapterSimple Exampleimportpycasbin_firebase_adapterimportcasbinadapter=pycasbin_firebase_adapter.Adapter('path/to/services.json')e=casbin.Enforcer('path/to/model.conf',adapter)sub="alice"# the user that wants to access a resource.obj="data1"# the resource that is going to be accessed.act="read"# the operation that the user performs on the resource.ife.enforce(sub,obj,act):# permit alice to read data1casbin_sqlalchemy_adapterpasselse:# deny the request, show an errorpassCreditsBased onsqlalchemy-adapterGetting HelpPyCasbinLicenseThis project is licensed under theApache 2.0 license.
Package: pycasbin-redis-watcher
pycasbin redis watcherCasbin role watcher to be used for monitoring updates to casbin policiesInstallationpip install pycasbin-redis-watcherBasic UsageExample used along withhttps://github.com/ScienceLogic/pycasbin/flask-authzfrom flask_authz import CasbinEnforcer
from casbin_redis_watcher import RedisWatcher
casbin_enforcer = CasbinEnforcer(app, adapter)
watcher=RedisWatcher(redis_hostname, redis_port)
watcher.set_update_callback(casbin_enforcer.e.load_policy)
casbin_enforcer.set_watcher(watcher)Using alongside UWSGIThis redis-watcher module starts separate processes which subscribe to a redis channel, and listens for updates to the casbin policy on that channel. When running within WSGI contexts (like uwsgi) you may want to start these processes as a postfork action. As is depicted below:try:
    from uwsgidecorators import postfork
    print("Running in uwsgi context")
except ModuleNotFoundError:
    print("Not running in uwsgi context")
    postfork = None

if postfork:
    @postfork
    def load_watcher():
        global casbin_enforcer
        watcher = RedisWatcher(redis_info.hostname, redis_info.port)
        watcher.set_update_callback(casbin_enforcer.e.load_policy)
        casbin_enforcer.set_watcher(watcher)
Package: py-cascade-cms-api
Cascade CMS 8 REST API Python DriverThis is a module for simplifying interaction withHannon Hill's Cascade CMS 8 REST API. This was built to handle some day-to-day task automation with Cascade CMS 8, e.g., access control management, workflow management, file naming rule enforcement, and more.How it WorksThe driver classCascadeCMSRestDriverconstructor accepts either a username and password combination or a user-specific API key (i.e., for a service account in Cascade CMS) in addition to an organization name, e.g. "cofc". From there, it uses these values to create some headers that are used in combination with therequestslibrary to wrap requests against the Cascade CMS REST API in simple methods, likelist_sites. The methods are based onthe API's WSDL description. (Replace my-org in the previous link with your own organization).InstallationTo install the package, simply run:pip install py-cascade-cms-apiUsage# import
from cascadecmsdriver.driver import CascadeCMSRestDriver

# you can provide a username and password or alternatively an api key
# verbose boolean indicates whether to use verbose logging
driver = CascadeCMSRestDriver(
    organization_name="my-org", api_key='my-api-key', verbose=True)
## driver = CascadeCMSRestDriver(
##    organization_name="my-org", username='my-username', password='my-password',
##    verbose=True)
##
sites = driver.list_sites()['sites']
for s in sites:
    asset = driver.read_asset(asset_type='site', asset_identifier=s['id'])
    driver.debug(asset)
Package: pycases
pycasesA case conversion library for Python.FeaturesAutomatic case detection, no need to specify the input caseExtremely fast, written in Rust ✨Support for Unicode charactersSupport for providing acronyms in title caseSupported casesFunctionOutputcases.to_camel(s)camelCasecases.to_pascal(s)PascalCasecases.to_snake(s)snake_casecases.to_screaming_snake(s)SCREAMING_SNAKE_CASEcases.to_kebab(s)kebab-casecases.to_screaming_kebab(s)SCREAMING-KEBAB-CASEcases.to_train(s)Train-Casecases.to_lower(s)lower casecases.to_title(s)Title Casecases.to_upper(s)UPPER CASEGetting startedInstall usingpipinstallpycasesNow convert a string using the relevant function.importcasescases.to_snake("XMLHttpRequest")# returns "xml_http_request"DetailsEach of the provided functions using the same underlying implementation which
does the following:Divide the input string into wordsConvert each word as requiredJoin the words back together optionally with a separatorWord boundaries are defined as follows:A set of consecutive Unicode non-letter and non-number characters.For example: 'foo _bar' is two words (foo and bar)A transition from a lowercase letter to an uppercase letter.For example: fooBar is two words (foo and Bar)A transition from multiple uppercase letters to a single uppercase letter
followed by lowercase letters.For example: FOOBar is two words (FOO and Bar)Functions where the transform is "title" accept an optionalacronymsargument,
which is a mapping of lowercase words to their output. For example:>>>cases.to_pascal("xml_http_request",acronyms={"xml":"XML"})'XMLHttpRequest'>>>cases.to_pascal("xml_http_request",acronyms={"xml":"XML","http":"HTTP"})'XMLHTTPRequest'BenchmarksA simple benchmark against various other libraries is provided in./benches. The following table shows the results when run on my
Macbook M2 Max.LibraryMin (µs)Max (µs)Mean (µs)cases21.375049.667022.1288pure python62.8750186.958066.2344regex80.8330201.250087.0549stringcase101.8340204.9590108.6977inflection230.2920581.4580253.9194case-conversion1,431.79201,745.70801,506.2268LicenseThis project is licensed under the terms of the MIT license. SeeLICENSEfor more details.
Package: pycasestyle
pycasestylepycasestyle is a Python library for converting variable naming styles between CamelCase, snake_case, kebab-case, and PascalCase.Supported styles:
- CamelCase
- SnakeCase
- KebabCase
- PascalCaseInstallationTo install pycasestyle, you can use pip:.. code-block:: bash
pip install pycasestyleUsageYou can import the text formatting styles directly from the pycasestyle module and use them in your code. Here's an example of how to use the text formatting styles:.. code-block:: python
import pycasestyle# Converting to camelcase from text
camelcased_text = pycasestyle.camelcase.from_string("i want a camel")
print(camelcased_text)  # Output: "iWantACamel"

# Converting to camelcase from dict
camelcased_dict = pycasestyle.camelcase.from_dict({"i want a camel": "value"})
print(camelcased_dict)  # Output: {"iWantACamel": "value"}

# Converting to snakecase from text
snakecased_text = pycasestyle.snakecase.from_string("I Want A Snake")
print(snakecased_text)  # Output: "i_want_a_snake"

# Converting to snakecase from dict
snakecased_dict = pycasestyle.snakecase.from_dict({"I Want A Snake": "value"})
print(snakecased_dict)  # Output: {"i_want_a_snake": "value"}

# Converting to kebab-case
kebabcased_text = pycasestyle.kebabcase.from_string("I Want A Kebab")
print(kebabcased_text)  # Output: "i-want-a-kebab"

# Converting to kebab-case from dict
kebabcased_dict = pycasestyle.kebabcase.from_dict({"I Want A Kebab": "value"})
print(kebabcased_dict)  # Output: {"i-want-a-kebab": "value"}

# Converting to PascalCase from text
pascalcased_text = pycasestyle.pascalcase.from_string("i want a pascal")
print(pascalcased_text)  # Output: "IWantAPascal"

# Converting to PascalCase from dict
pascalcased_dict = pycasestyle.pascalcase.from_dict({"i want a pascal": "value"})
print(pascalcased_dict)  # Output: {"IWantAPascal": "value"}Use casesIf you needed convert schemas, mappings, contracts, etc. This tool is specific to turn easily your job.Real use case:You need to migrate information from Postgres to Elasticsearch, however, the mapping used in Elastic is following the camelcase pattern, whereas in Postgres it is with the Snakecase pattern, see how simple it is to solve:.. code-block:: python
import pycasestylepostgres_contract = {
    "id": 1,
    "customers_id": 32,
    "users_id": 56,
    "period_datetime": "2024-08-10"
}

elastic_contract = pycasestyle.camelcase.from_dict(postgres_contract)
print(elastic_contract) # Output: {
    "id": 1,
    "customersId": 32,
    "usersId": 56,
    "periodDatetime": "2024-08-10"
}ContributingIf you encounter any issues or have suggestions for improvement, feel free to open an issue or submit a pull request on theGitHub repository <https://github.com/preduus/pycasestyle>.LicenseThis project is licensed under the Apache License 2.0 License. See theLICENSE <https://github.com/preduus/pycasestyle/LICENSE>file for more details.
Package: pycashaccount
Cash Account HelperYou can already take payment information like an address and register acash accountatcashaccount.info.
I really recommend you do.This CLI and library will help you prepare cash account registrations that you can broadcast yourself.InstallationRequires python3 for now.pip install pycashaccountStatus / ToDoIt is very basic still. Please file an issue if you have additional use cases for it.OP_RETURN output for electron-cash op_return markdownOP_RETURN hex-like outputp2sh outputsupport payment codesgenerate raw hex output that common node CLIs can usesupport stealth addressessupport lookup of cash accountsNote about Bip47 payment codesBip47payment codes are very interesting.
Please readthis introductionto them before usingpycashaccountto register a payment code.
The payment code itself is non-trivial to generate sopycashaccountlets you create registration info
from the xpub as well as the payment code itself. Please be very careful with xpubs.
Please make absolutely sure you do not export and start copy-pasting anxpriv.CLI (command line interface) usage after installationFor example, get the information required for a key hash and script hash accounts:p2pkh="bitcoincash:qrme8l598x49gmjhn92dgwhk5a3znu5wfcf5uf94e9"p2sh="bitcoincash:pp4d24pemra2k3mths8cjxpuu6yl3a5ctvcp8mdkm9"paymentcode="PM8TJTLJbPRGxSbc8EJi42Wrr6QbNSaSSVJ5Y3E4pbCYiTHUskHg13935Ubb7q8tx9GVbh2UuRnBc3WSyJHhUrw8KhprKnn9eDznYGieTzFcwQRya4GA"xpub="xpub6D3t231wUi5v9PEa8mgmyV7Tovg3CzrGEUGNQTfm9cK93je3PgX9udfhzUDx29pkeeHQBPpTSHpAxnDgsf2XRbvLrmbCUQybjtHx8SUb3JB"cashaccountkeyhashname1"$p2pkh"cashaccountscripthashname2"$p2sh"--format=opreturn
cashaccountpaymentcodename4from-xpub"$xpub"--format=electron-markdown
cashaccountpaymentcodename3from-code"$paymentcode"Generally:cashaccountpayment_typenamepayment_info[--format]Get help:cashaccount--help

cashaccountkeyhash--helpCLI usage directly from repositorySame usage as the installed cli, except you can call it from thecliscript at the repository root:./cli--helpLibrary usageLook atcashaccount/cli.pyfor usage.For example, create a registration from a name and payment information.fromcashaccountimportKeyHashInfo,Registration,opreturnname='emergent_reasons'info=KeyHashInfo('bitcoincash:qrme8l598x49gmjhn92dgwhk5a3znu5wfcf5uf94e9')registration=Registration(name,info)print(registration)print(opreturn(registration))ContributionsCode contributions are welcome:Fork the repository and submit a pull request from your fork.Install test requirementspip install -r requirements-test.txtUpdate tests to cover any changesConfirm all tests pass before submitting a Pull Request (e.g.pytest --cov-report term-missing --cov=cashaccount test/)Support donations are also welcome:🌵emergent_reasons#100(bitcoincash:qz3aq0uhltztqyjy2esa0lshadg9pf87yu7yealu3a)☯Jonathan#100for donations to the cashaccount project (bitcoincash:qr4aadjrpu73d2wxwkxkcrt6gqxgu6a7usxfm96fst)Electron Cash (bottom of the page)The team added a general OP_RETURN feature where you can use the opreturn formatting.
Package: py-casim
Python CasimPython package and cli to upload image on Casimages.In python projectfrompy_casimimportCasimc=Casim("my_image.jpg")link=c.get_link()print(link)To resize an image :frompy_casimimportCasimc=Casim("my_image.jpg",resize=640)link=c.get_link()print(link)To get another url/code return :frompy_casimimportCasimc=Casim("my_image.jpg",resize=640)link=c.get_share_code(3)# return HTML codeSee the doc for details.From command linefoo@bar:~$py-casimmy_image.jpghttps://nsa40.casimages.com/img/xxxxxxxxxxxxxxx.pngor with options :foo@bar:~$py-casim--size640my_image.jpghttps://nsa40.casimages.com/img/xxxxxxxxxxxxxxx.pngFree software: MIT licenseDocumentation:https://py-casim.readthedocs.io.Featuresupload image and get his urlpython package (import) OR command line toolDevThere's an alternative tomakecalledinvoke(Makefile equivalent is tasks.py)pip install invokeinvtestinvlint
invcoverage
inv--listCreditsThis package was created with Cookiecutter and theaudreyr/cookiecutter-pypackageproject template.Cookiecutter:https://github.com/audreyr/cookiecutteraudreyr/cookiecutter-pypackage:https://github.com/audreyr/cookiecutter-pypackageHistory1.0.0 (2020-07-22)Stable release0.2.0 (2020-02-28)Better Doc0.1.0 (2020-02-16)Configure Travis CIFirst release on PyPI.
Package: pycasino
pycasino - casino games in Pythonpycasino is a Python library and command-line utility aiming to recreate severalcasino games. The idea for this library is based on the bookHands-On Programming with Rby Garret Grolemund (available for free). The implementation of the Deck class is based ondeck.Installationpipcan be used to install pycasino:pipinstallpycasinoHowever, we recommend to install pycasino usingpipxto make it available outside your virtual environment:pipxinstallpycasinoUsagepycasino can be used as a command-line utility as follows:pycasino<dir>ContributingPlease refer toCONTRIBUTING.mdLicenseBSD-3
Package: py-caska
py-Ayra LibraryCore library ofThe Ayra, a python based telegram userbot.Installationpip3install-Upy-AyraDocumentationUsageCreate folders namedplugins,addons,assistantandresources.Add your plugins in thepluginsfolder and others accordingly.Create a.envfile with following mandatory Environment VariablesAPI_ID
API_HASH
SESSION
MONGO_URICheck.env.samplefor more details.Runpython3 -m Ayrato start the bot.Creating pluginsTo work everywhere@ayra_cmd(pattern="start")asyncdef_(e):awaite.eor("Ayra Started!")To work only in groups@ayra_cmd(pattern="start",groups_only=True,)asyncdef_(e):awaiteor(e,"Ayra Started.")Assistant Plugins 👇@asst_cmd("start")asyncdef_(e):awaite.reply("Ayra Started.")See more working plugins onthe offical repository!Made with 💕 byKynan.LicenseNaya-Userbot is licensed underGNU Affero General Public Licensev3 or later.CreditsLonamiforTelethon