Saravanan666/pypi-org huggingface dataset:
Package: currency-symbols
currency-symbols :money_with_wings:Get currency symbol by currency codeeg: USD -> $ReferencesISO 4217 - Currency CodesInstallation$ pip3 install currency-symbolsUsagefromcurrency_symbolsimportCurrencySymbolsdollarSymbol=CurrencySymbols.get_symbol('USD')print(dollarSymbol)# Output:# $euroSymbol=CurrencySymbols.get_symbol('EUR')print(euroSymbol)# Output:# €britishPoundSymbol=CurrencySymbols.get_symbol('GBP')print(britishPoundSymbol)# Output:# £bitcoinSymbol=CurrencySymbols.get_symbol('BTC')print(bitcoinSymbol)# Output:# ฿ContributingInterested in contributing to this project?
You can log any issues or suggestion related to this libraryhereRead our contributingguideon getting started with contributing to the codebaseCreditsInspired by work of@bengourleyoncurrency-symbol-map
Package: current
Get the path of a file relative to the current module. Import a Python module
relative to the current module. Temporarily changesys.pathfor imports.
Get the path of a file relative to the module of the current caller.LinksGitHub:https://github.com/xflr6/currentPyPI:https://pypi.org/project/current/Issue Tracker:https://github.com/xflr6/current/issuesDownload:https://pypi.org/project/current/#filesInstallationThis package runs under Python 3.7+, usepipto install:$pipinstallcurrentUsageGet paths relative to the current module:>>>importcurrent>>>here=current.current_path()>>>parent=current.current_path('..')>>>bruces=current.current_path('..','australia','bruces','bruces.ini')Temporarily add the parent directory tosys.path:>>>withcurrent.inserted_path()...importaustraliaGet paths relative to the module of the callers of the current code:>>>caller=current.caller_path()>>>callercaller=current.caller_path(steps=2)Potential issuesThis package usessys._getframe(which is almost the same asinspect.currentframe,seedocs). Under IronPython this might require
enabling theFullFramesoption of the interpreter.LicenseCC0 1.0 UniversalChangelogVersion 0.4.1: Drop Python 3.6 support.Version 0.4: Drop Python 2 and 3.5 support; tag Python 3.9 and 3.10 support.Version 0.3.6: Tag Python 3.8 support. Extend test coverage.Version 0.3.5: Drop Python 3.4 support.Version 0.3.4: Tag Python 3.7 support.Version 0.3.3: Drop Python 3.3 support. Add python_requires.Version 0.3.2: Port tests from nose/unittest to pytest. Update meta data, tag Python 3.5/3.6 support.Version 0.3.1: Added wheel.Version 0.3: Added Python 3.3+ support.Version 0.2.1: Fixed caller_path. Documented sys._getframe dependency.Version 0.2: Added caller_path.Version 0.1: First public release.
Package: current-path
current_pathcurrent_pathis a small library for getting current
path data for a script that imports this library.Installationpip install current-pathUsageGet the current file's path which importscurrent-path:fromcurrent_pathimportcurrent_fileif__name__=='__main__':print(current_file())Get the current directory's path which contains the file
which importscurrent-path:fromcurrent_pathimportcurrent_dirif__name__=='__main__':print(current_dir())Temporarily change the current working directory to the file's directory
until the code block under the context manager has been completed:fromcurrent_pathimportcurrent_dir_as_cwdimportosdefcreate_file(path:str):withopen(path,'w'):"""File has been created."""if__name__=='__main__':#  CWD is some arbitrary directory.withcurrent_dir_as_cwd():#  CWD is this file's directory.os.mkdir("file_directory")create_file("file_0.txt")#  CWD returns to same arbitrary directory.The above code ensures that, no matter which working directory the script is
invoked from, the file is created in the same location.LicenseLicensed under theCC0 License.
Package: currentsapi
currentsapi-pythonA Python client for theCurrents APIProvided under MIT License by Zhi Rui Tam.Note: this library may be subtly broken or buggy. The code is released under
the MIT License – please take the following message to heart:THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.GeneralThis is a Python client library for CurrentsAPI version 1. The functions for the library should mirror the
endpoints from thedocumentation.InstallationInstallation for the package can be done via pip.pip install currentsapi-pythonUsageAfter installation, import client into your project:fromcurrentsapiimportCurrentsAPIInitialize the client with your API key:api=CurrentsAPI(api_key='XXXXXXXXXXXXXXXXXXXXXXX')EndpointsLatest Newsapi.latest_news()Queryapi.search(keywords='Trump')
Package: curr-get-exchange
Get-Exchange-Rate-ProgramaticallyGives currencies upto the previous dayInstalling using pippip install curr_get_exchange==1.0.0Using it in your Python Codefrom curr_get_exchange import get_exchange''' METHOD 1 '''history_check = get_exchange.beginCheck(from_date="2021-01-01", to_date=False, from_currency='EUR', to_currency='KES')history = history_check.gotten_currencyprint(history) #Returns a dictionaryOutput{'2021-02-25': {'value': 133.4787, 'details': ['Thursday', '2021-02-25', '1 EUR =133.4787 KES']}, '2021-02-24': {'value': 133.6242, 'details': ['Wednesday', '2021-02-24', '1 EUR =133.6242 KES']}, '2021-02-23': {'value': 133.2971, 'details': ['Tuesday', '2021-02-23', '1 EUR =133.2971 KES']}, '2021-02-22': {'value': 133.3624, 'details': ['Monday', '2021-02-22', '1 EUR =133.3624 KES']}, '2021-02-21': {'value': 133.1358, 'details': ['Sunday', '2021-02-21', '1 EUR =133.1358 KES']}}yesterday_exchange = history[history_check.correctKey('2021-02-25')] #correctKey formarts dd-mm-yyyy or yyyy-mm-dd to required key /Use any formartyersterday_value = yesterday_exchange['value']yersterday_details = yesterday_exchange['details']print(yesterday_exchange)print("Values>> ", yersterday_value)print("Details>> ", yersterday_details)Output{'value': 133.4787, 'details': ['Thursday', '2021-02-25', '1 EUR =133.4787 KES']}Values:   133.4787Details:   ['Thursday', '2021-02-25', '1 EUR =133.4787 KES']''' METHOD 2 '''history_checktWO = get_exchange.beginCheck(from_currency='EUR', to_currency='USD') #correctKey formarts dd-mm-yyyy or yyyy-mm-dd to required key /Use any formartusdValue = history_checktWO.gotten_currency[history_checktWO.correctKey('2021-02-05')]['value']print("USD value: %s"%(usdValue))Output
{'value': 133.4787, 'details': ['Thursday', '2021-02-25', '1 EUR =133.4787 KES']}Values:   133.4787Details:   ['Thursday', '2021-02-25', '1 EUR =133.4787 KES']USD value: 1.2048OTHER IMPORTANT METHODS''' OTHER METHODS '''check = get_exchange.beginCheck()#Reformarts date to how keys in dictioray are passed, use these and you won't find errors with your dateprint(check.correctKey('1-1-2020'),' | ', check.correctKey('01-01-2020'),' | ', check.correctKey('2020-01-01'))a = check.returnDateSysFormart('01-02-2021')print("retrun date in system formart: ", a)b = check.returnDateHumanFormart(a)print("return date string in human formart: ", b)c = check.returnDateString(b)print("return date (string) in system formart: ", c)f = {'eur': 5, 'kes': 6, "usd": 7}print("\nDictionary %s returns keys to list: %s"%(f, check.keysToList(f)))Output
2020-01-01  |  2020-01-01  |  2020-01-01retrun date in system formart:  2021-02-01 00:00:00return date string in human formart:  01-02-2021return date (string) in system formart:  2021-02-01Dictionary {'eur': 5, 'kes': 6, 'usd': 7} returns keys to list: ['eur', 'kes', 'usd']
Package: curricula
CurriculaCurricula is a set of specifications and tools for managing content and grading assignments in a college-level computer science setting.
It is currently being developed byNoah Kimfor CSCI 104, the most challenging core-track C++ course at USC for CS majors.How Does it Work?Curricula covers the two main aspects of managing assignments for a programming course.Assignment creation: Curricula provides a schema for developing assignments per-problem rather than all at once.
This allows content producers to easily port assignments from previous semesters to the evolving parameters of the current.
Assignments can then be built up from their components problems, separating each and combining their independent parts into packages for publishing, grading, etc.Submission grading: the other function of Curricula is to provide a robust framework for testing all aspects of submitted code.
This includes checks for things like correctness, time complexity, resources leakage, and even code style, all while facilitating granular configuration.
These tests are written to a universal output format so that they can be reinterpreted without having to re-run the code.Using CurriculaCurricula can be used by installing thecommand line interface.
This repository only contains the core functionality.
Package: curricularanalytics
CurricularAnalytics.pyCurricularAnalytics.pyis a toolbox for studying and analyzing academic program curricula. The toolbox represents curricula as graphs, allowing various graph-theoretic measures to be applied in order to quantify the complexity of curricula. In addition to analyzing curricular complexity, the toolbox supports the ability to visualize curricula, to compare and contrast curricula, to create optimal degree plans for completing curricula that satisfy particular constraints, and to simulate the impact of various events on student progression through a curriculum.CurricularAnalytics.py is a Python port of the original Julia packageCurricularAnalytics.jl.PyPI listingDocumentationGitHub repoOriginal Julia versionDocumentationFull documentation is available atGitHub Pages.
Documentation for functions in this toolbox is also available via the Julia REPL help system.
Additional tutorials can be found at theCurricular Analytics Notebookssite.InstallationInstallation is straightforward. First, ensure you have Python 3.8 or higher installed. Then, run the following command.# Linux/macOSpython3-mpipinstall-Ucurricularanalytics# Windowspy-3-mpipinstall-UcurricularanalyticsContributing and Reporting BugsWe welcome contributions and bug reports! Please seeCONTRIBUTING.mdfor guidance on development and bug reporting.DevelopmentTo build a distribution for upload toPyPI, run the following command.rm-rdist
python-mbuild# To Test PyPIpython3-mtwineupload--repositorytestpypidist/*# To real PyPItwineuploaddist/*Learn more aboutbuild and setuptools.
Package: curriculumagent
CurriculumAgentCurriculumAgent is a cleanup and improved version of theNeurIPS 2020 Competition Agent by binbinchen.
The agent is build to extract action sets of the Grid2Op Environment and then use rule-based agent to train
a Reinforcement Learning agent. We explain each step in more detail in our paper.When using the CurriculumAgent, please cite our paper with.@article{lehna_managing_2023,
	title = {Managing power grids through topology actions: A comparative study between advanced rule-based and reinforcement learning agents},
	issn = {2666-5468},
	url = {https://www.sciencedirect.com/science/article/pii/S2666546823000484},
	doi = {https://doi.org/10.1016/j.egyai.2023.100276},
	pages = {100276},
	journaltitle = {Energy and {AI}},
	author = {Lehna, Malte and Viebahn, Jan and Marot, Antoine and Tomforde, Sven and Scholz, Christoph},
	date = {2023},
}The code of the paper can be found under/paper_data_MPGTTA.SetupAll requirements are listed inrequirements.txt.Installing the package should already give you all needed requirements.Usage/DocumentationPlease take a look at oursphinx documentationon how to use the package.We also provide several jupyter notebooks in./jupyter_notebooksto get you started quickly.LicenseCopyright (c) 2022 EI Innovation Lab, Huawei Cloud, Huawei Technologies and Fraunhofer IEE
The code is subject to the terms of Mozilla Public License (MPL) v2.0.
Commercial use is NOT allowed.Please take a look at the LICENSE file for a full copy of the MPL license.
Package: curriculum-analysis
Curriculum analysisA simple tool for analysing DMU module and programme specifications with respect to provided keywords.InstallationInstallation is via pip.pip install curriculum_analysisUsageBasic usage is via the command line scriptcurriculum-analysis.curriculum-analysis <filename> [-c <optional configuration file>]The tool will process the provided file according to the configuration given.
If no configuration is given, then the default configuration will be used.The default configuration file (config.cfg) is placed in the users home directory under a hidden folder~/.curriculumAnalysis.[curriculumAnalysis]
keywords_path = ~/.curriculumAnalysis/keywords.txt
outpath = ~/.curriculumAnalysis/output
format = jsChanging these values will influence the default settings.Example usagecurriculum-analysis modules.txt
Package: curriculum-module-generator
Tutorials-GeneratorA Python script that helps instructors create textbook or jupyter labs tutorials using chatGPTpython template_main.py --topic "for loops in python" --identity "Professor of Computer Science" --target_audience "beginner programmers" --tutorial_output_file "loops.ipynb" --wiki_output_file "loops.md" --model "gpt-3.5-turbo"
Package: curry-batch
Curry-batch reads from stdin a YAML list of argument lists and a set of command templates as arguments.
It curries the commands with the argument lists, runs them, and captures the outputs, storing them in a new list.Example:argument list:helloworldbrainwashtemplate filters:
"echo {1}" "echo {2}" "echo {1}, {2}!" "echo {1} {2} {1} {2}"output:helloworldhello, world!hello world hello worldbrainwashbrain, wash!brain wash brain wash
Package: curryproxy
A fast and performant proxy and aggregator for querying multiple
instances of an API spread across globally distributed data centers.CapabilitiesCurryProxy can handle multipleroutesfor use against different
revisions of an API or for use against completely unrelated APIs. Seeetc/routes.sample.yamlfor an example configuration.Simple request forwarding (useful for preserving backwards
compatability with pre-CurryProxy versions of an API hosted in a
single datacenter)Example:GEThttps://api.example.com/v1.0/foo/barforwarded toGEThttps://1.api.example.com/v1.0/foo/barAdvanced request forwarding to multiple endpointsExample:GEThttps://api.example.com/1,2/v1.0/foo/barforwarded
to the following:GEThttps://1.api.example.com/v1.0/foo/barGEThttps://2.api.example.com/v1.0/foo/barRequests are made in parallelJSON responses received from multiple endpoints areaggregatedand returned to the clientExample:{"foo": 1}received from 1 and{"bar": 2}received from 2 are aggregated to[{"foo":1}, {"bar": 2}]and
returned to the clientRich, meaningfulerrorslogged and returned to the client when
a proxied request failsInstallationpip install curryproxywill do what you expect.There are a couple of extra options:pip install curryproxy[tests]. This will install any packages
required to run the tests.pip install curryproxy[frozen]. This will install curryproxy with
explicitly pinned dependencies, as generated bypip freeze. This
is intended as a convenience for those who want the package to provide
a reproducible environment. The versions used will be the latest
working ones at the time the given Curry version was released.You will need to provideconfiguration filesbefore starting Curry.NOTE: The configuration files have changed in v2.x.routes.jsonandlogging.confhave becomeroutes.yamlandlogging.yamlrespectively. See the sample files for examples.LimitationsMerging responses from multiple endpoints together occurs only under
certain conditions outlined on theMultiple Endpoints Aggregationwiki page.TestingTests are set up to run withtox.The defaulttoxsetup creates environments for each known-usable
version of each of our dependencies, and runs the tests in each of them.
That amounts to around a dozen environments at the moment, so you’ll
probably want to run them in parallel withtox-pauto.If you don’t want to be that thorough (perhaps you’re smoke testing a
work in progress), you can run against only the most recent supported
versions of dependencies withtox-epy36.You can test against specific dependency versions like this:tox -e py36-requests2.{2,3,4,5,6,7} -p auto
tox -e py36-webob1.{2,3,4,5} -p auto
tox -e py36-grequests0.{2,3} -p auto
tox -e py36-requests.latesttox-elintis also available, and will run various linting checks.RoadmapOData support for server-side ordering and pagingResponse caching for a specified time
Package: curse-app-api
Project description might be outdated onPyPI, latest version available onGithub.Curseforge App APIThe package provides classes to interact with Curseforge app API.Note: I wrote neither API nor documentation(btw documentation with methods and results took fromthere).Installation/UpgradeRequires at least python 3.6Install/Upgrade with $ pip install --user --upgrade curse-app-apiRequirementsrequests>=2.25.1
selenium>=3.141.0
selenium-requests>=1.3
webdriver-manager>=3.4.2
msedge-selenium-tools>=3.141.3Usage:# getting API classfromcurse_app_apiimportCurseAPI,WDCurseAPI# creating API classapi=CurseAPI()# example methodprint(api.get_category_timestamp())# using API with webdriver (this part works slowly because it downloads webdrivers and tries to invoke them)wdapi=WDCurseAPI()# it will print the same result as previous printprint(wdapi.get_category_timestamp())# also if something goes wrong, you can get last query linkprint(api.last_query_link)# and its responseprint(api.last_response)Current supported WebDriversFor current supported web drivers you don't have to download them and install manually.
To use Safari web driver, you need to configure it first: run oncesafaridriver --enablein terminal.ChromiumDriver
MSEdgeDriver
GeckoDriver (Firefox)
OperaChromiumDriver
Safari web driverContributingIf you want to contribute:If you find bugs related to this project, open an issue in
Github issues tracker.If you want add a new feature, fork this repo, make changes locally and open a pull request. I'll check changes
myself and merge your code into main branch.Note:This API implements curseforgeAPPAPI != Curseforge. It means that not all projects on Curseforge can be captured by API, only those,
which seen by Curseforge Desktop.
So don't report bugs related to this unless project can be seen by Curseforge desktop. If you report this bug, please, provide a screenshot
that your project wasn't captured by API but can be seen in Curseforge Desktop.TODOCaching webdriver for subsequent usage.
Package: cursebox-lib
Curses made simplepipinstallcursebox-libCursebox is a library based around thecursesstandard module. Its goal is to avoid the C-like ceremony ofcursesand provide a modern approach to terminal drawing:>>>fromcurseboximport*>>>withCursebox()ascb:...width,height=cb.width,cb.height...greeting="Hello, World!"...# Center text on the screen...cb.put(x=(width-len(greeting))/2,...y=height/2,text=greeting,...fg=colors.black,bg=colors.white)...# Wait for any keypress...cb.poll_event()It provides several useful features:No setup/teardownRGB conversion to terminal 256-colors paletteEvent managementFull documentation onRead the DocsTODOUnit testsFinish documentationHandmadecursesmodule using ANSI escape sequences for Windows replacementAdd pixel buffer from other project
Package: cursed-datatypes
cursed_dataypes is a library offering cursed variations of standard Python datatypes (so far limited to cursed_list)install:pip install cursed-datatypesimport:from cursed_datatypes import cursed_list, cursed_tupleWhat is cursed about these datatypes?well, you know how you absolutely never thought "I wonder what element 2.345 of this list is"?cursed_list allows you to find out!cursed_list extends the builtin list type to allow floating point indices, or floating point slices.It interpolates the values of the list elements to get these fractional elements;e.g.cursed_list([1,2,3])[0.333])would give1.333floating point slices work similarly, including if the step is a floatNote: this means the number of elements of a slice of a cursed_list can bemorethan the length of the
original cursed_list object.cursed_tuple works similarly, except it is immutable.Limitations:Can only assign to cursed_list slices as if it were a normal list; no floatsCan't handle complex number indices - I have no idea what that should even look likeWhere should I use this?You probably shouldn't, definitely not for anything serious.The whole point of this is to be like nails on a chalkboard for programmers.
Package: cursed-for
cursed-forAdding C-style for loops to Python, because you can.>>>for(i=0;i<10;i+=2):...print(i)02468Installationpip install cursed-forUsageAdd the following# codingcomment at the top of the file in which you wish to
curse:# coding: cursed_forThen write the cursed for-loops as needed. Checkthis filefor an example.For an interactive REPL, typecursed-forin your terminal:$cursed-forCursed Python REPL, 3.10.4 (main, Apr  2 2022, 09:04:19) [GCC 11.2.0]>>> x = 10>>> for (;x > 5;x -= 3):...     print(x)107But why?This was made because of a cursed idea I had one night, which I put ontwitter:And although this worked, I didn't like the look of it. But using the methods I
used, I was confined by Python's syntax, which really doesn't support the kind
of things I'd have liked to do. But then I stumbled upon acoupleofpackageswhich gave me exactly the tools I needed to commit this atrocity.OK, but how is this possible?I wrote ablogon the approaches I went through to implement this.The rough iterations that happened during the development are documented in theapproach folder. It contains both the AST manipulation method, and
the "truly cursed" method.The "old way" usageThe first version (as shown in the original tweet) is also present in the
repository, for archival purposes.Note that this only really works in a REPL. To start it, runcursedfor.pyin the terminal. It's a single file, you can get it by just downloading the one
file if you want to.>>>with_for(i:=0,i<10,i+=2):...print(i)02468Help, something is broken!You can use thecursed-for-decodecommand to figure out what code is being
generated by the module:$catx.pyfor (i = 1; i < 100; i += 1):print(i)$cursed-for-decodex.pyi = 1while i < 100:print(i)i += 1If the generated code seems wrong,file a bug reportwith the code
snippet.
Package: cursedspace
cursedspaceA python library/framework for TUI application on the basis of the curses
package.Example useHere’s a very simple example of how to use the cursedspace package:#!/usr/bin/env python3

import curses
from cursedspace import Application, Key, Panel, colors


class DemoApplication(Application):
    def __init__(self):
        super().__init__()
        self.panel = None

    def main(self):
        self.panel = Panel(self)
        self.resize()

        self.screen.addstr(0, 0, "Just some color example", colors.attr(colors.RED))

        while True:
            curses.doupdate()

            key = self.read_key()

            if key == Key.RESIZE:
                self.resize()
            elif key in [Key.ESCAPE, "q", "^C"]:
                break

    def resize(self):
        height, width = self.size()
        self.panel.resize(height, width)
        self.panel.paint()


# run the application
DemoApplication().run()For more examples see theexamplesfolder.ComponentsApplicationis the main application class and provides boilerplate
initialisationsPanelis a basic panel with support for borders and key handling in the
context of anApplicationInputLineis a panel with very basic editing support.Keyprovides a convenient wrapper around curses’ key system. It can be
used standalone even when you don’t want to useApplicationorPanel.ShellContextis a convenient wrapper to execute external processes (e.g.
through subprocess) and returning to the curses context afterwards again.colorsis a generic way to define colors in pairs (foreground and
background) and have them automatically registerd for use in curses. You
only have to callcolors.attr(ColorPair(...))to use a new color
combination (limited by the terminal, of course).