Saravanan666/pypi-org huggingface dataset:
Package: cgse-common
Generic Functionality used in the PLATO Common-EGSEThis package 'cgse-common' contains functionality that is used by allcgsesub-packages, but it is designed to be a stand-alone generic package that can be used in any other project.InstallationInstall the package using pip:$ pip install cgse-commonUsageAll functionality resides in the packageegse. As an example, if you need a standard way to format your timestamp, use theformat_datetime()function fromegse.system:>>> from egse.system import format_datetime
>>> print(format_datetime())
2023-10-10T08:41:51.937+0000Included FunctionalityA non-comprehensive list of available functionality:Functionality of General Useegse.bits: contains a number of convenience functions to work with bits, bytes and integersegse.decorators: a collection of useful decorator functionsegse.reload: a slightly better approach to reloading modules and function than the standard importlib.reload() function.egse.resource: provides convenience functions to use resources in your code without the need to specify an absolute pathegse.system: defines convenience functions that provide information on system specific functionality like, file system interactions, timing, operating system interactions, etc.egse.version: functionality to retrieve the package version information
Package: cgse-ts
# plato-test-scriptsHigh Level Test Scripts for the PLATO Camera TestingThis repository contains the high level test and analysis scripts for the PLATO Camera Testing. Camera Testing includes (1) the alignment and focus measurements done at CSL and (2) the Camera Testing done at the three test houses IAS, INTA and SRON. Scripts will implement the tests described in the PLATO Camera Test Specification document [PLATO-KUL-PL-TS-0001].
Package: cgshop2022utils
Official Utilities for the CG:SHOP 2022 ChallengeThis package provides some utilities for handling instances and solutions for theCG:SHOP 2022 Challenge on Minimum Partition into Plane Subgraphs.
These are the tools that are used by us, the (technical) organizers, to handle our
instances and your solutions.Reading and writing instances.Reading and writing solutions.Verifying solutions for correctness.The source code can be foundhere.InstallationThe installation is simple:pipinstallcgshop2022utilsIfpipdoes not install the dependencies for you you may also needpipinstallnetworkxThe verification component (currently under development) will be implemented in C++
and require a more complicated installation. We will probably provide a precompiled
version for Linux, but other systems may need to compile the package by hand.
We will provide instructions for this in due time.Reading instancesfromcgshop2022utils.ioimportread_instanceinstance=read_instance("path or file object to instance")The instance is a dict of the following format:{"type":"Instance_CGSHOP2022","id":"unique name of instance","meta":dict,# with information on the instance (e.g., the polygon for visibility instances)"graph":networkx.Graph,# The instance graph with typing.Tuple[int, int] as vertices.}Check out the documentation ofnetworkxon how to deal with the graphs.
It is fairly straight forward.
For example:print("Points:")forvingraph.nodes:print(v)print("Edges:")forv,wingraph.edges:print(v,"<->",w)
Package: cgspan-mining
cgSpancgSpanis an algorithm for mining closed frequent subgraphs. This implementation of cgSpan
is built using an existing implementation for gSpan.gSpanis an algorithm for mining frequent subgraphs.This program implements cgSpan with Python. The repository on GitHub ishttps://github.com/NaazS03/cgSpanThe gSpan implementation referenced by this program can be found on GitHub athttps://github.com/betterenvi/gSpan.Undirected GraphsThis program supports undirected graphs.How to installThis program supportsPython 3.Method 1Install this project using pip:pipinstallcgspan-miningMethod 2First, clone the project:gitclonehttps://github.com/NaazS03/cgSpan.gitcdcgSpanYou canoptionallyinstall this project as a third-party library so that you can run it underanypath.pythonsetup.pyinstallHow to runThe command is:python-mcgspan_mining[-smin_support][-nnum_graph][-lmin_num_vertices][-umax_num_vertices][-vTrue/False][-pTrue/False][-wTrue/False][-h]database_file_nameSome examplesRead graph data from ./graphdata/graph.data, and mine closed subgraphs given min support is 5000python -m cgspan_mining -s 5000 ./graphdata/graph.dataRead graph data from ./graphdata/graph.data, mine closed subgraphs given min support is 5000, and visualize these frequent subgraphs(matplotlib and networkx are required)python -m cgspan_mining -s 5000 -p True ./graphdata/graph.dataPrint help infopython -m cgspan_mining -hReferenceCloseGraph PaperCloseGraph: Mining Close Frequent Graph Patterns, by X. Yan and J.Han.gSpan PapergSpan: Graph-Based Substructure Pattern Mining, by X. Yan and J. Han.
Proc. 2002 of Int. Conf. on Data Mining (ICDM'02).
Package: cgstats
# CGSTATS [![Build Status][travis-img]][travis-url]Models and CRUD to cgstats.## configurationcgstats has a parameter–databasethat needs to hold a connection string to the database:`bash $ cgstats--databasemysql+pymysql://user:pass@127.0.0.1:3306/cgstats`[travis-img]:https://travis-ci.org/Clinical-Genomics/cgstats.svg?branch=master[travis-url]:https://travis-ci.org/Clinical-Genomics/cgstats
Package: cgsubmit
codingame-submitA tool to analyze the results of your submits in codingame competitions and save a lot of time.It will automatically:retrieve all the games you lost by timeout (code too slow, or runtime error). Fixing these issues should always be your number 1 priority.sort the game you lost by biggest score difference. This way you can easily focus on the games you totally lost as there might be some cases you don't handle properly or you have bugs.Installationpip install cgsubmitor to update to the latest version:pip install cgsubmit -UUsageGetting your test session handleThis token is linked to your session and game you are playing.
To retrieve it:open the IDE of the game you are playing in your browser (for examplehttps://www.codingame.com/ide/puzzle/spring-challenge-2023-ants)open the Developer Tools (F12)look for one of this queries and get thehandlevalue:Runpython -m cgsubmit -t your-test-session-handleor for a most advanced usage use-hoption to get the description of all parameters:python -m cgsubmit -h
usage: cgsubmit [-h] -t TOKEN [--noreplay] [--noelo]

Analyse your submit in codingame competitions.

options:
  -h, --help            show this help message and exit
  -t TOKEN, --testsessionhandle TOKEN
                        The test session handle. If you don't know how to get it, look at the doc: https://github.com/FrequentlyMissedDeadlines/cgsubmit
  --noreplay            Remove replay URLs.
  --noelo               Remove opponent rank.Known issuesIf you are using git bash to run the command you might see this kind of error:'charmap' codec can't encode character '\u274c' in position 0: character maps to <undefined>You must go to the settings and set the encoding to UTF-8:
Package: cgt
Circular genome tools (cgt)A sage package for working with circular genomes represented by signed or unsigned permutations. It includes tools for converting between representations as well as visualisations using matplotlib.To install and use this package, paste the following command in your terminalsage -pip install cgtand useimport cgtin a sage script or environment.If you would like to contribute tocgt, please seeCONTRIBUTING.mdfor how to get set up.If you use this software in your work, please cite it use the citation function on the github page or seeCITATION.cffNote:you will need to at least have Sage version 9.0 installed. If you aren't sure how to do this, see the installation instructions inINSTALL.md.
Package: cgtnfeed
cgtnfeedA python package which collects information from CGTN (China Global TV Network)BackgroundCGTN is a international media from China. Their website is very slow. It is probably because the servers are in China,
there are a lot of animations on their website, and the size of the image is very large.This project is a web scrapper that will collect important information from the website so we won't need to open the
website to get informations.Currently this project collects the titles of the top news from CGTN. In the long run, I will add more data to collect
and then make the API.How to useTop NewsThe functionget_top_news()returns a list of dictionary. The dictionary currently has
three key-value pairs.Key
----
title
time
categoryExample code:import cgtnfeed

top_news = cgtnfeed.get_top_news()

for news in top_news:
    print(news['title'])This will print something like this:Xi Jinping to attend UNGA General Debate via video link
Beijing hails 'advancement in quality of democracy' in Hong Kong
China launches Tianzhou-3 cargo spacecraft for space station mission
Chinese ambassador: U.S.-UK-Australia pact 'extremely irresponsible'
U.S. launches mass expulsion of Haitian migrants from Texas
Package: cgtn-videos
cgtn_videosIntroductioncgtn_videosis a python package to retrieve video links and meta data
from the CGTN (China Global Television Network) website.The data is retrieved from theCGTN websiteInstallationInstall with pipRunpip install cgtn-videosInstall from sourcegit clone https://github.com/boeboe/cgtn-videos.gitRunpython setup.py installRun testsRunmake testsUsageSome examples on how to use this package.fromcgtn_videosimport*print("Check the tests folder for example usage")
Package: cgtp-cli
# ChatGPT Terminal AppThis is a simple terminal app that allows you to ask to ChatGPT for a command you need on your terminal.## InstallationTo install the app, you can usepip:pip install cgtp-cli## UsageTo use the app, you can run the following command:cgtp-cli ‘search the process running in the port 4000’You can also use the-optionsflag to display the available options for the command,
and the-descflag to display the description for the command:cgtp_cli search the process running in the port 4000 -options -descYou will need a key for the chat-gtp api for this cli. You can set it using the-keyflag:cgtp-cli -key <your-key>[//]: <> (include an gif here)## LicenseThis app is licensed under the MIT License. See theLICENSEfile for more information.
You can replace the name of the app, the installation instructions, the usage instructions, and the license information with your own information## ContributingFork the project at:https://github.com/edwinsn/cgtp-cli
Package: cgtroll
codingame-trollA tool to disguise your code in an other language. Funny to troll the language ranking.LanguageSupportBash✅C❌C++❌C#❌Clojure❌D❌Dart❌F#❌Go❌Groovy❌Haskell❌Java❌Javascript❌Kotlin❌Lua❌Objective-C❌OCaml❌Pascal❌Perl❌PHP❌Python3✅Ruby❌Rust❌Scala❌Swift❌TypeScript❌VB.NET❌Installationpip install cgtrollor to update to the latest version:pip install cgtroll -UUsagepython -m cgtroll language fileor for a most advanced usage use-hoption to get the description of all parameters:python -m cgtroll -h
usage: cgtroll [-h] {bash} file

Convert your python code to any language supported by codingame to troll the language ranking.

positional arguments:
  {bash}      The language you want to make your code look like.
  file        The file containing your python code.

options:
  -h, --help  show this help message and exitKnown limitationsYour python code must:NOT contain double quotes ("), replace them with single quotes (')NOT contain comments (#), remove them
Package: cgul
cgulCommonGeneralisedUniform andLight. Python package which will be used to ensure consistent data format when working with Xarray type data objects.UsageThe primary function in cgul iscgul.translate_coords. This function operates on anxarray.Datasetorxarray.DataArrayand translates the coordinates to the specified coordinate model. Several coordinate models
are included in the package, and users are recommended to use the default CADS coordinate model. A typical
use case woould be:import xarray as xr
import cgul

infile = 'data_file.nc'
data = xr.open_dataset(infile)

# To harmonise the coordinates and unit names:
data_cgul = cgul.harmonise(
    data,
    coord_model=cgul.coordinate_models.CADS  # This is the default value, so optional in this case
)

# To just harmonise the coordinates:
data_cgul = cgul.translate_coordinates(
    data,
    coord_model=cgul.coordinate_models.CADS  # This is the default value, so optional in this case
)It is is also possible to use command line executables to check files can be harmonised, or to produce netCDF files with harmonised coordinates and metadata:# To check that $INFILE has contents that can be harmonised,
# this will print out the harmonised xarray.Dataset:
cgul harmonise --check $INFILE

# To produce an ouput file, $OUTFILE, which contains the harmonised version of
# the contents of $INFILE:
cgul harmonise --output $OUTFILE $INFILEWorkflow for developers/contributorsFor best experience create a new conda environment (e.g. DEVELOP) with Python 3.10:conda create -n DEVELOP -c conda-forge python=3.10
conda activate DEVELOPBefore pushing to GitHub, run the following commands:Update conda environment:make conda-env-updateInstall this package:pip install -e .Sync with the latesttemplate(optional):make template-updateRun quality assurance checks:make qaRun tests:make unit-testsBuild the documentation (seeSphinx tutorial):make docs-buildLicenseCopyright 2017-2022, European Union.

Licensed 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 at

    http://www.apache.org/licenses/LICENSE-2.0

Unless 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: cgx-notebooks
cgx-notebooksRepository to distribute CloudGenix Python Notebooks and easily install helper functions.SynopsisHelper functions and example .ipynb files for notebooks for use with CloudGenixRequirementsActive CloudGenix AccountPython modules:cloudgenix >=5.2.1b1 -https://github.com/CloudGenix/sdk-pythoncloudgenix_idname>=2.0.1 -plotly>=4.5.2 -pandas>=1.0.1 -numpy -IPython -ipywidgets -fuzzywuzzy -python-levenshtein -LicenseMITVersionVersionChanges1.0.0-99Aaron tweak releases - view commit notes for details.
Package: ch340-nrf
Warning: This project is currently in developement. Use at your own riskInstallationpipinstallch340_nrfUsageimportch340_nrfimporttime# Create a new instance of the ch340_nrf classmodule=ch340_nrf.NRF("COM3")# Get the system informationprint(module.get_system_info())# Send a messagemodule.send_message("Hello World!")# Wait for a responsetime.sleep(0.5)# Print the responseprint(module.get_message())ReasonI made this library because there are no other libraries that allow you to use the ch340 nrf usb adapter with python. After reading the thread on the arduino forumshere, I decided to make my own library. I hope this library helps you with your projects!DependenciespyserialLicenseMITContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.TODOOrganize code betterAdd more documentationAdd more examplesAdd more error handlingImprove initialization timeImprove reliablityAdd async supportThanksThanks for using ch340_nrf!
Package: ch347api
CH347-HIDAPI Python Library+CH347-HIDAPI Github Page+AbstractThis project is the API library of CH347 USB-SPI/I2C/UART bridge chip based on Python.Standard USB-HID mode setting of CH347 chip supported onlyThis library provides full access of SPI/I2C/UART settings and communication with CH347 USB-SPI/I2C/UART
bridge chip in Python language.For demonstration and code reference please refer to thedemo.pyfile insource page.CH347-Chip Official SiteInstallationpip install ch347apiRequirementsPython >= 3.7hidapiCAUTIONThe communication protocol with CH347 through USB-HID I wrote in this project based on the official
demonstration APP. In other words that it was inferred from captured HID package when APP communicates.THUS, THIS API MAY NOT FULLY CAPABLE OF EVERY FUNCTION IN OFFICIAL API FROM CH347DLL.DLL.Update Notes2024-01-12Now with fully compatible UART (UART1 with pins TXD1/RXD1/RTS1/CTS1/DTR1) support under mode 3 (which is HID mode),Baudrate supports ranging from 1.2K to 9MMultithread receiver for UART (optional, default is on) to receive the data in parallel2024-01-08Added independent I2C interface class objects (I2CDevice) and SPI interface class objects (SPIDevice)Added new demo filedemo.pyto demonstrate the usage of classes added above (simplified code)Added device lock to make thread safe2023-08-06Now with fully compatible I2C support, I2C clock speed level: 0 -> 20KHz, 1 -> 100KHz, 2 -> 400KHz, 3 -> 750KHzAdded test.py for demonstration
Package: chaanbot
chaanbotA python 3matrixbot usingmatrix-python-sdk.
The bot is extensible and currently provides:Highlight module allows users to easily notify groups of users. E.g. "!hl javadevs spring-boot vs micronaut?" would
highlight/notify any user in the javadevs group.Weather module allows users to broadcast weather reports.More to come!Bot is under active development and severe breaking changes should be expected until a stable release is created.Install instructionsChaanbot requires Python 3.Add user for bot. Not required but recommended:sudo adduser --disabled-password chaanbot
sudo su chaanbotCreate virtual environment and install bot and its dependencies:python3 -m venv chaanbot
source chaanbot/bin/activate
python3 -m pip install chaanbotStart bot to initialize config file creation, then edit the config file to your liking. Config file location is the
user's config directory as determined by appdirs, typical locations are:Mac OS X:  ~/Library/Application Support/chaanbot/chaanbot.cfg
    Unix:      ~/.config/chaanbot/chaanbot.cfg or in $XDG_CONFIG_HOME, if defined
    Win *:     C:\Users\<username>\AppData\[local or roaming]\chaanbot\chaanbot\chaanbot.cfgOutput of running the bot will also show where the config file is located:chaanbot
nano .config/chaanbot/chaanbot.cfgBot should now be runnable as chaanbot user:chaanbotFor convenience bot can be added as service. With sudo access, copy chaanbot.service file to
/etc/systemd/system/chaanbot.service:sudo nano /etc/systemd/system/chaanbot.serviceBot is now startable from systemctl:sudo service chaanbot startAnd can be set to run on boot:sudo systemctl enable chaanbotUpgrading versionUpgrading from 1.x to 2.0In 2.0 access token login is (hopefully temporarily) disabled, use password login instead. See chaanbot.cfg.sample for
how to set password.Commandssudo su chaanbot
source /home/chaanbot/chaanbot/bin/activate
python3 -m pip install -U chaanbotTODOCoreImprove error handlingIntegration tests and better test coverageImprove installation documentation for non-Ubuntu installationsModulesMake weather coordinates not room-dependent
Package: chaban
ChabanPython chat-bot framework. Uses very much concepts fromdjango.LinksPyPIGitHubCurrent stateUnder heavy development. Chaban supposed to be framework for developing bots for many platforms.
Now working on telegram bots. Also this project needs to have strong CLI, which is also in development.InstallationpipinstallchabanUsageProject structureTo bootstrap a new project, I recommend usingcookiecutter.pipinstallcookiecutterFor now, CLI is not developed, but I hope it will be available soon.Now, run this command to get your chaban template:cookiecuttergh:ibrag8998/cookiecutter-chabanAnd answer to the question it asks :D.The project looks like this:project_slug
+-- project_slug
|   +-- __init__.py
|   +-- handlers.py
|   +-- actions.py
|   +-- text.py
+-- settings
|   +-- __init__.py
|   +-- base.py
|   +-- dev.py
+-- requirements
|   +-- base.txt
|   +-- testing.txt
|   +-- local.txt
+-- scripts
|   +-- installdeps.sh
|   +-- mkenv.sh
+-- run.py
+-- ...Now runmkenv.shscript to make.envfile which stores some configuration and secret keys:cdscripts
./mkenv.shsettings/contains any settings you want, but there some required ones, likeDEBUG.
Put base settings inbase.pyand development-only ones indev.py, the rest will be done for you.
How? Readsettings/__init__.pyfile.requirements/contains separate requirements.base.txtare base, project will not work
without them.testing.txtonly used for tests.local.txtcontains requirements for direct developer,
for example: linter, formatter.scripts/contains bash scripts to manage your project.run.pyis a file that you will run to start up your bot.project_slug/is actual core:handlers.pycontains message handlers.actions.pycontains logic that will be invoked by message handler.text.pycontains text snippet to send in messages.Actual codeFirst, define a message handler inhandlers.pylike this:fromchaban.handlersimportCommandMHclassStartCommandMH(CommandMH):command='start'Now, when a message comes, and your handler looks like the message can be handled by it
(checked by using regex, more info in source code), theactionwill be called. But wait.
We didn't define any action! Head over toactions.pyand add one:fromchaban.actionsimportActionclassStartCommandAction(Action):defact(self,message:dict)->None:self.tbot.send_message(message['chat']['id'],'Welcome!')Well, action is defined, now let's link the handler with the action.
Openhandlers.pyfile and action attribute like this:...from.actionsimportStartCommandActionclassStartCommandMH(CommandMH):...action=StartCommandAction()That's all for basics :D. Now open up your terminal and start bot:pythonrun.pyWrite to your bot with message "/start" and see it works.ContributingPlease, help.
Package: chacha20poly1305
Simple pure-python chacha20-poly1305 implementation based ontlslite-ngcode. Designed
to be compatible with Cryptography API.importosfromchacha20poly1305importChaCha20Poly1305key=os.urandom(32)cip=ChaCha20Poly1305(key)nonce=os.urandom(12)ciphertext=cip.encrypt(nonce,b'test')plaintext=cip.decrypt(nonce,ciphertext)print(plaintext)Pippipinstallchacha20poly1305NotePlease note the pure python implementation probably suffers form
side-channels leakage (timing, memory access). For constant time
implementations use compiled versions:https://github.com/ph4r05/py-trezor-cryptohttps://github.com/AntonKueltz/rfc7539
Package: chacha20poly1305-reuseable
chacha20poly1305_reuseableChaCha20Poly1305 that is reuseable for asyncioInstallationInstall this via pip (or your favourite package manager):pip install chacha20poly1305-reuseableContributors ✨Thanks goes to these wonderful people (emoji key):J. Nick Koston💻🤔📖This project follows theall-contributorsspecification. Contributions of any kind welcome!CreditsThis package was created withCookiecutterand thebrowniebroke/cookiecutter-pypackageproject template.
Package: chackpasspy
CheckPassPyVerifica si el string que se le pasa a la función puede ser considerada como una contraseña segura.Free software: MIT licenseDocumentation:https://chackpasspy.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-03-13)First release on PyPI.