Saravanan666/pypi-org huggingface dataset:
Package: calculon
# CalculonThis project is a customizable implementation of the producer-consumer pattern using Python’s multithreading and multiprocessing capabilities. Calculon allows you to:define a custom producer that puts values into a queue;define a custom consumer that processes values obtained from the queue;choose between multiprocessing or multithreading option to run the functions;pass arbitrary information to and back from each of the producer / consumer;This package will be helpful to someone who is looking to use a producer-consumer
pattern to perform simple parallel computing tasks.# Documentation
Documentation is hosted on [Read the Docs] (https://calculon.readthedocs.org/en/latest) and includes detailed information on installing and using the package.# License
This project was released under MIT license, seeLICENSEfile for more information.# Release Notes
See RELEASE file for the release history.
Package: calculos
CalculadoraCalculadora simples em Python PuroObjetivos de estudos, seguindo as boas prÃ¡ticas do curso PythonPro:Desenvolver o projeto apenas na linguagem pura;Testar os comandos de GIT;Implementar teste automatizado no Travis;Implementar automaÃ§Ã£o de Libs pelo Pyup.io;No decorrer, desenvolver uma 'interface' de interaÃ§Ã£o.*VersÃ£o: Python 3.9*InstalaÃ§Ã£o Python e dependÃªncias:'''Console:{
py -3 -m venv .venv
.venv\Scripts\activate
pip install -r requirements-dev.txt
}'''
Package: calc-ultra
calc-ultraCalculus made easyThe Calc-ULTRA calculus calculator, but as a module!Little Python background knowledge needed!Supports:Simple calculationsDerivativesPartialsImplicit differentiationAntiderivativesDefinite integralsImproper integralsLimitsOne-sided limitsNEW SINCE V1.2.1:Graphs for differentiation and integrals are supported!NoteThis is the module package of the Calc-ULTRA calculator. For the Python script of this package, visithttps://github.com/sudoer-Huatao/Calc-ULTRAInstallation and RunningRun the calculus calculator with a single line of codeCommand line:pip3 install calc-ultra.
Due to Python import identifiers restrictions, please import Calc-ULTRA as "calc_ultra" and not "calc-ultra" when you need to use the calculator.To run the calculator, import Calc-ULTRA ascalc_ultralike so:from calc_ultra import mainMake sure you have the latest version installed. To update calc-ultra, runpip3 install --upgrade calc-ultra.RequirementsThis program requires thesympy,numpy, andmatplotlibmodules installed. Other required modules are built in to most Python IDEs.WarningsFunction limitationsDue to limitations of the SymPy module,some functions cannot be integrated. The Error Functionerf(x)can be integrated in both indefinite integral and definite integral calculation, but the Absolute Value and Factorial functions are only available to definite integral calculations. Also, the factorial function cannot be graphed properly. Integration of composed functions are also limited due to SymPy limitations. While some composed functions work, others don't. 😟Test PYPIPrevious test versions of this project are on Test PYPI. View onhttps://test.pypi.org/project/calc-ultra/.AcknowledgementsWithout them, this would be impossibleA general thank-you to all GitHub users who gave feedback and/or starred this repository. ⭐️
And... a SPECIAL THANK-YOU to @Haobot for troubleshooting and feedback! 👍❤️This program was made using SymPy and SciPy for calculation and Matplotlib and NumPy for graphing.GalleryDerivaCalc derivative with graph demo:InteCalc antiderivative with graph demo:InteCalc definite integral with graph demo:LimCalc limit demo:LicenseThis project is licensed under the terms of the MIT license.
Package: calcure
CalcureModern TUI calendar and task manager with customizable interface. Manages your events and tasks, displays birthdays from yourabook, and can import events and tasks fromcalcurseandtaskwarrior.See documentationfor more information.FeaturesVim keysView tasks and events from .ics files synced with cloudsOperation with fewest key presses possibleTodo list with subtasks, deadlines, and timersBirthdays of your abook contactsImport of events and tasks from calcurse and taskwarriorIcons according to the name ✈ ⛷ ⛱Private events and tasks •••••Plain text database in your folder for cloud syncCustomizable colors, icons, and other featuresResize and mobile friendlyCurrent weather ⛅Support for Persian calendarInstallationLinux and Mac OSThere are several ways to install it, for example:pipx install calcure- most up-to-date version from PyPi. You may need to installpipxfirst.yay -S calcure-AUR packagefor Arch-based distributions.calcureis also available as NixOS package.WindowsInstallWindows Terminalapp from the app storeInstallpython 3.xalso from the app store (if you just typepythonin the Windows Terminal app it will offer you to install)Install the program and libraries by typing in the Windows Terminalpip install windows-curses calcureNow you can finally run it by typing in the Windows Terminalpython -m calcureUpgrade to the most recent versionpip install --upgrade calcureDependenciespython3.7 and higher (usually already installed)holidays,jdatetime,icalendar, andtaskwpython libraries (should be installed automatically with the calcure).UsageRuncalcurein your terminal. You may need to restart your terminal after the install.Syncing with cloud calendarsThis page in documentationshows examples how to sync and display in read-only mode events and tasks from Nextcloud, Google, and other calendars.User argumentsVarious user argumentscan be added started in special mods add tasks and events etc.Key bindingsList of all key bindingscan be accessed in the wiki and via?key in the program.SettingsExample of config.ini fileandexplanations of all settingsare available in the documentation.
On the first run, program will create aconfig.inifile where you can edit parameters, colors, and icons at~/.config/calcure/config.ini.TroubleshootingTypical problems and solutionsare described in documentation. If you faced a new problem, don't hesitate to open an issue.Contribution, translations, donationsFull information about contributionis available in the documentation.If you'd like to support the development, considerdonations.
Package: calc_with_mem
RequirementsThe main package file should contain a class Calculator that should be able to perform these actions:Addition / Subtraction.

Multiplication / Division.

Take (n) root of a number.

Reset memory (Calculator must have its own memory, meaning it should manipulate its starting number 0 until it is reset.).This means that, for example, calculator should perform actions with a value inside its memory (for this example, the value inside the calculator's memory is 0): calculator.add(2) results in 2.RealizationCalculator class object for the operations uses the following methods:addition: plus method is used

    subtraction: minus method

    multiplication: multiply method

    division: divide method

    take (n) root of a number: root method

    reset memory: reset methodCalculator class has an attribute called memory, performing actions above on it with memory's starting value 0.0 until the memory is reset.Thus, all methods above require just one argument, except reset method for which the argument is optional and without it memory is set to the default value of 0.0.For example,calculator.plus(2) adds 2 to the memory

    calculator.minus(5) subtracts 5 from the memory

    calculator.multiply(10) multiplies the memory by 10

    calculate.divide(3) divides the memory by 3

    and calculator.root(4) takes 4th root of the memoryReset method calculator.reset(0) by default sets the memory to 0.0,  but it is allowed to set the memory to the desired value,
providing an optional argument as calculator.reset(desired_value).Calculator works with integer and float numbers, a validation is performed before the methods are used.
Calculator also prevents from division by zero and a root operation on a negative number.
In such cases an operation is not performed and a relevant assertion error message is provided.Package and fileshttps://pypi.org/project/calc-with-mem/To start using install the package use:pip install calc-with-memFollowing the requirements, the package contains already described Calculator() class.The files submitted:README.MD - this file

calc_with_mem - folder with the main calc_with_memory.py module (comments are present in the document) and files to create a package

test.py - unittest checks are performed to test the calculator (comments are also present in the document)

LICENCE.TXT - MIT licence defined

setup.py - used to create a packageThe calculator was also tested on Google Colab and calc_with_mem.ipynb file added.The file 115.ipynb was uploaded by Turing College.PyCharm 2022.3.2 (Community Edition) was used for the project, and the codes submitted are in compliance with PEP 8 requirements.
Package: calc-work-hours
Calc Work Hours计算两个DateTime之间，工作时间的长度（小时）。这个工具最初是用来计算任务工时的。给定任务开始时间，任务结束时间，得出任务工时。会刨去中国的法定节假日及周末。因为中国假日每年发布一次，所以这个工具的第二位版本号就是最新支持年份，如：v0.2023就是已经更新到2023年节假日及调休。起始年份是2015年。早于2015年的日期，或者晚于版本号日期，只刨去周末。Calculate the length of work hours between twoDateTimes. This tool was originally used to calculate task hours. Given the task start time and the task end time, the task hours are calculated. It will exclude China's statutory holidays and weekends. Because China's holidays are released once a year, the second version number of this tool is the latest supported year, such as:v0.2023means that it has been updated to 2023 holidays and adjustments. The starting year is 2015. Dates earlier than 2015 or later then the version year will only exclude weekends.Install目前只支持 python 3.11 及更高：Currently only supports python 3.11 and higher:pip311 install calc_work_hoursUsagefromwork_hoursimportWorkHourswh=WorkHours()计算两个datetime之间的工作时间长度(小时)Calculate the working time duration (hours) between twodatetimesfromdatetimeimportdatetimeret=wh.calc(datetime(2023,9,22,1,1,1),datetime(2023,10,4,18,0,0))print(ret)# 40.0 (hours)计算datetime是否工作日Calculate whether adatetimeis a working dayret=wh.is_workday(datetime(2023,10,2))print(ret)# 周一，但是 False# Monday, but Falseret=wh.is_workday(datetime(2023,10,7))print(ret)# 周六，但是 True# Saturday, but True计算某个datetime是否为工作时间，需要动态的考虑边界。比如9:00，如果（某段时间）从9点开始，那9点是工作时间，如果是（某段时间）到9点结束，那么就不是工作时间。Calculate whether adatetimeis working time, you need to dynamically consider the boundary. For example, 9:00, if (a period of time) starts at 9 o'clock, then 9 o'clock is working time, if (a period of time) ends at 9 o'clock, then 9 is not working time.is_work=wh.is_workhours(datetime(2023,9,22,9,0,0),)print(is_work)# True. The time frame starting from 9:00 ~is_work=wh.is_workhours(datetime(2023,9,22,9,0,0),False)print(is_work)# False. The time frame ending at 9:00 ~计算datetime的下/上n个工作日的时间Calculate n working days after/before a certaindatetimedt=wh.add_workdays(datetime(2023,9,22),5)print(dt)# 2023-09-28 18:0009-2209-2309-2409-2509-2609-2709-28frisatsunmontuewedthu1....2345dt=wh.add_workdays(datetime(2023,9,22),-5)print(dt)# 2023-09-15 09:00
Package: calcy
Calcy is a basic calculator library that allows to add, subtract, multipy and divide MULTIPLE numbers all at once.InstallationUse the package managerpipto install calcypip install calcyUsageimportcalcycalcy.help()Calling calcy will list out all the details of the library.Following are the available functionalities with this library

1. add_numbers(*args)        - takes variable agruments and adds them.
2. subtract_numbers(*args)   - takes variable agruments and subtracts them.
3. multiply_numbers(*args)   - takes variable agruments and multiplies them.
4. divide_numbers(*args)     - takes variable agruments and divides them.

In all the above functions, if argument size = 0, function returns float('-inf')Sample Codeimportcalcyx=calcy.add_numbers(2,4,5,10,7)print(x)Version History0.0.1First Release0.0.2Add help functionChange return type on passing invalid arguments0.0.3Update README.txt0.0.4Improve README.txt0.0.5fix pip hyperlink0.0.6change version history style
Package: caldav
# caldavThis project is a CalDAV ([RFC4791](http://www.ietf.org/rfc/rfc4791.txt)) client library for Python.Features:create, modify calendarcreate, update and delete eventsearch events by datesetc.See the file [examples/basic_usage_examples.py](examples/basic_usage_examples.py) to get started.Links:[Pypi](https://pypi.org/project/caldav)[Documentation](docs/source/index.rst) - should be automatically mirrored onhttps://caldav.readthedocs.io/en/latest/Licences:Caldav is dual-licensed under the [GNU GENERAL PUBLIC LICENSE Version 3](COPYING.GPL) and the [Apache License 2.0](COPYING.APACHE).
Package: calDB
CalDB DocumentationCal ++Cal++ is a key/value data storaging system.variable = "a string"
anotherVariable = 22CalDBHave this code at the top:from calDB import CalDB, array
db = CalDB(__name_)
db.start("<Database Name>")To get data:data = db.read()To add data:db.write("<key>","<value>")To delete data:db.kill("<key>")
Package: caldus
caldus: Platinum Resistor Conversion Python PackageIntroductioncaldusis a user-friendly, robust Python package specifically designed to facilitate the
conversion between resistance values and temperatures of platinum resistors. It is based on the
Callender-Van Dusen equations (thus the namecaldus) and the IEC 60751:2022 standard.Key FeaturesSupports Various Platinum Resistors:The package supports a broad range of platinum resistors including PT100, PT500, PT1000, and more.Easy to Use:Simply input the resistance or the temperature and the corresponding value will be returned.Flexible Integration:Written in Python,calduscan be easily integrated with other Python applications or used for data analysis.InstallationTo installcaldusfrom PyPI, run:pipinstallcaldusTo install the latest development version from Github, run:pipinstallgit+https://github.com/gunnstein/caldus.gitUsageBelow is a simple usage example:importcaldus# Convert resistance to temperaturetemp=caldus.resistance2temperature(110)# Convert temperature to resistanceres=caldus.temperature2resistance(25)# Alternatively you can use the wrapper functions `r2t` and `t2r` to achieve the same.res=caldus.r2t(110)temp=caldus.t2r(25)print(temp)# output: ~25.68print(res)# output: ~109# All functions can also take array like objectstemps=[0.,12.,21.]resistances=caldus.t2r(temps)Support and ContributionPlease report issues via the GitHub issue tracker.To contribute, please fork this repository, make your changes, and issue a pull request.
Package: caldwell-dirtyfields
Tracking changed fields on a Django model instance.Makes a Mixin available that will give you the properties:is_dirtydirty_fieldsInstallingInstall the package usingpip. Then use the instructions in “Using the Mixin in the Model”.$ pip install django-dirtyfieldsor if you’re interested in developing it, usevirtualenv. The defaultsettings.pywill look for the dirtyfields package in its current location.$ virtualenv --no-site-packages ve/
$ source ve/bin/activate
(ve)$ cd example_app
(ve)$ pip install -r requirements.pip
(ve)$ ./manage.py test testing_appUsing the Mixin in the Modelfrom django.db import models
from dirtyfields import DirtyFieldsMixin

class TestModel(DirtyFieldsMixin, models.Model):
    """A simple test model to test dirty fields mixin with"""
    boolean = models.BooleanField(default=True)
    characters = models.CharField(blank=True, max_length=80)Using it in the shell(ve)$ ./manage.py shell
>>> from testing_app.models import TestModel
>>> tm = TestModel(boolean=True, characters="testing")
>>> tm.save()
>>> tm.is_dirty
False
>>> tm.dirty_fields
()
>>> tm.boolean = False
>>> tm.is_dirty
True
>>> tm.dirty_fields
('boolean', )
>>> tm.characters = "have changed"
>>> tm.is_dirty
True
>>> tm.dirty_fields
('boolean', 'characters', )
>>> tm.save()
>>> tm.is_dirty
False
>>> tm.get_dirty_fields
()Why would you want this?When usingsignals, especiallypre_save, it is useful to be able to see what fields have changed or not. A signal could change its behaviour depending on whether a specific field has changed, whereas otherwise, you only could work on the event that the model’ssave()method had been called.CreditsThis code has largely be adapted from what was made available atStack Overflow.
Package: calendarBot
# matterbot-calendarBotCalendar Bot for mattermost## RequirementsThis bot is making use of* Mattermost http://www.mattermost.org* Exchangelib https://github.com/ecederstrand/exchangelib/tree/master/exchangelib* Matterhook https://github.com/numberly/matterhook* Mattermost_bot https://github.com/LPgenerator/mattermost_bot## Purpose* The calendarBot can be used to display events from an Microsoft Exchange 2007-2016 Server or Office365 account in Mattermost.* By using the category field of an event it is possible to which Mattermost group an event is posted.* If the Mattermost group cannot be found, a default channel is used.* A global setting exists to define in which time in advance an event is posted in Mattermost.* By default events are deleted for now after they have been posted to Mattermost. In the future, most likely an option will allow to just mask these events.* Furthermore, a plugin for the Mattermost_bot bot exists, which allows to create events in Mattermost itself. Have a look at https://github.com/mharrend/matterbot-plugins-server/blob/master/calendar.py* Using this plugin events and subcalendars can be created.* The events and calendars are stored in the online account and also saved in a local SQLite database.* The plugin also allows to show the agenda of today using all subcalendars or specifying only one subcalendar.## SetupThe configuration is done in the calendarBotSettings.py file:* mattermostSettings* URL: Url to your Mattermost installation* ApiKey: Key for incoming webhook, must created in Mattermost using the integrations settings. More information can be found in the Matterhook documentation* Username: Name of the calendarBot that is used in Mattermost* IconURL: Definition of an icon shown in Mattermost, e.g. https://commons.wikimedia.org/wiki/File:Gnome-x-office-calendar.svg* DefaultChannel: Channel in which events are posted if the group defined in the event cannot be found* outlookSettings* Email: Emailadress of account which is used to look up server, more documentation can be found in Exchangelib* Username: Username required to log into email account* Password: Password required to log into email account* calendarSettings* DatabaseName: Name of local SQLite database* CheckInterval: Amount of seconds between checks for upcoming events* TimespanToCheck: Definition of minute interval which is used for checking of upcoming events
Package: calendar-cleanup
Calendar CleanupCLI utility to unclutter WebDAV calendars by deleting old entries.Installationpipinstallcalendar-cleanupUsage example$calendar-cleanup

PleaseenterthecredentialsforyourWebDAVcalendar.

username:john.doe
password:
CalendarURL:

Verifyingauthentication...
Authenticationsuccessful.

ReadingWebDAVfilescontent...
Loadedcontentfrom25WebDAVfiles.

ParsingICScontent...
Successfullyparsed22of25ICSfiles.

Found2eventsfordeletion.

Eventsthatcanbedeleted:
-2023-11-14:Loremipsum
-2023-11-16:Loremipsumfollow-up

Deletelistedevents?[y/N]Deletionnotconfirmed.Exiting.CLI documentationUsage: calendar-cleanup [OPTIONS]

CLI utility to unclutter WebDAV calendars by deleting old entries.

The CLI tools proposes which old entries to remove. If the user approves,
the events get deleted.

Options:
-d, --days INTEGER  Number of days into past from which on to delete events.
                    [default: 30]
-v, --verbose       Enable detailed output.
--help              Show this message and exit.
Package: calendar-cli-kku
ccalUsage:$ccal[OPTIONS]COMMAND[ARGS]...Options:--confirm / --no-confirm: Confirm action--help: Show this message and exit.Commands:add: Add your event to google calendardelete: description delete delete funcgui: Run server Web view for calendarlist: Query events from Google calendarlogin: description login funclogout: description logout funcupdate: description update funcccal addAdd your event to google calendarUsage:$ccaladd[OPTIONS]EVENT[DATE]:[%Y-%m-%d]Arguments:EVENT: Enter event name  [required][DATE]:[%Y-%m-%d]: Enter event date  [default: 2021-11-03]Options:-d, --detail TEXT: Enter event details-p, --place TEXT: Enter event details--help: Show this message and exit.ccal deletedescription delete delete funcUsage:$ccaldelete[OPTIONS]IDArguments:ID: Enter Event's ID  [required]Options:--help: Show this message and exit.ccal guiRun server Web view for calendarUsage:$ccalgui[OPTIONS]Options:--help: Show this message and exit.ccal listQuery events from Google calendarUsage:$ccallist[OPTIONS]Options:--on-month INTEGER: Query events on month[1-12] and current year[2021]--date-start [%Y-%m-%d]: Query events start from this date  [default: 2021-11-01]--date-end [%Y-%m-%d]: Query events end to this date  [default: 2021-12-01]-v, --view: List event then select to see detail--help: Show this message and exit.ccal logindescription login funcUsage:$ccallogin[OPTIONS]Options:--help: Show this message and exit.ccal logoutdescription logout funcUsage:$ccallogout[OPTIONS]Options:--help: Show this message and exit.ccal updatedescription update funcUsage:$ccalupdate[OPTIONS][ID]Arguments:[ID]: Enter ID of event referanceOptions:-e, --event TEXT: Enter new event's name-p, --place TEXT: Enter new event's location-d, --detail TEXT: Enter new event's detail--help: Show this message and exit.
Package: calendar-fact
Taken fromxkcd.com/1930, this command
generates calendar facts. Useful for MODs, head or foot lines in apps
etc.InstallationInstall by running:pipinstallcalendar-factUsage in shellRun:calendar-factUsage in codefromcalendar_factimportget_factnew_fact=get_fact()LicenseThe code is released under the MIT license.The texts are released under the CC-BY-NC 2.5 license as explained atXKCD’s licensepage.
Package: calendariofinanceiro
CalendarioFinanceiroO pacote CalendarioFinanceiro fornece funcionalidades para trabalhar com dias úteis, considerando diferentes calendários, como "onshore" (Brasil) e "offshore".InstalaçãoPara utilizar o pacote CalendarioFinanceiro, você precisa instalá-lo primeiro. Isso pode ser feito utilizando o gerenciador de pacotes pip. Execute o seguinte comando no terminal:pipinstallcalendariofinanceiroUso BásicofromdatetimeimportdatefromcalendariofinanceiroimportCalendarioFinanceiro# Inicializa o calendário de feriados "onshore"c_on=CalendarioFinanceiro("onshore")# Inicializa o calendário de feriados "offshore"c_off=CalendarioFinanceiro("offshore")# Calcula a data após adicionar um número de dias úteisnova_data=c_on.soma_dias_uteis(date(2023,8,1),5)# Arredonda uma data para o próximo dia útildata_arredondada=c_off.arredonda_dia_util(date(2023,8,10))# Monta uma lista de dias úteis entre duas dataslista_dias_uteis=c_on.monta_lista_dias_uteis(date(2023,8,1),date(2023,8,15))# Monta uma lista de datas de fechamento retroativaslista_fechamentos=c_off.monta_lista_fechamentos_anteriores(date(2023,8,31),3)# Obtém a data de fechamento do mês anteriorfechamento_mes_anterior=c_on.fechamento_mes_anterior(date(2023,8,15))Métodos Disponíveissoma_dias_uteis(data_dt: date, dias: int) -> dateSoma um número específico de dias úteis a uma data de referência.arredonda_dia_util(data_dt: date, arredonda_pra_cima: bool = True) -> dateArredonda uma data para o próximo ou último dia útil, dependendo da opção escolhida.monta_lista_dias_uteis(data_inicial: date, data_final: date, incluir_primeira: bool = True) -> List[date]Monta uma lista de dias úteis entre as datas de referência, com a opção de incluir ou não a primeira data.monta_lista_fechamentos_anteriores(data_final: date, numero_meses: int) -> List[date]Monta uma lista de datas de fechamento para um número especificado de meses retroativos a partir da data final.fechamento_mes_anterior(data: date) -> dateRetorna a data de fechamento do mês anterior à data fornecida.