Saravanan666/pypi-org huggingface dataset:
Package: daxpy
daxpyA pre-machine-learning model package.Package is consisted of following features:module checker (check_modules): ensures if necessary modules are installed in the environment.

library importer (import_libraries) : imports required libraries.

file reader (read_files): reads or reloads all csv, excel and pickle files given path.

dataset describers (col_stats, df_cols): describes dataset's information.

column summarizers (cat_sum, num_sum, col_sum): gives specific informations about columns.Installation:pip install daxpyUsage:from daxpy import analyzer

display_ = True 		# Displays the calculated tables.
plot_    = True 		# Plots related data given function.
data     = '../data/' 	# Directory where csv, excel and pickle data is loaded or pd.DataFrame() object.
sep_     = ',' 			# Seperator for csvs.


# Field belov should be run if the pickle files have not been created before. Otherwise next cell can be run to save some time.

mp = analyzer(display_=True, plot_=True, data=data, sep_='|')
mp.rename_dfs({'data1_111':'data_1','data2_1231': 'data2'})
mp.save_dfs('./data')


# Field below can be run after the pickle files are created. (can be run repeatedely)

mp = analyzer(data='./', plot_=True, display_=True)


mp.head_tail(mp.data1);

col_stats = mp.col_stats(mp.data1, display=False)

id_cols, date_cols, num_cols, cat_cols, cat_but_car_cols, num_but_cat_cols, num_but_cat_but_car_cols = mp.df_cols(mp.data1, display_=True, cat_th=32, car_th=10)

# Plot all columns' summary
for cat_col in cat_but_car_cols:
    mp.cat_summ(mp.data1, cat_col, threshold=0.01);
for cat_col in cat_cols:
    mp.cat_summ(mp.data1, cat_col, threshold=False);
# Analyze num_cols
for num_col in num_cols:
    mp.num_summ(mp.data1, num_col)
Package: daxs
Data Analysis for X-ray SpectroscopyInstallationYou can install the development version using:python3 -m pip install [--ignore-installed] https://gitlab.esrf.fr/spectroscopy/daxs/-/archive/main/daxs-main.tarThe--ignore-installedargumentis requiredif you want to upgrade an
existing installation.It is best if you install the library in a virtual environment to avoid messing
up other Python packages. Seethe official
documentationon how to create
and use virtual environments.Usage at the ESRFScripts and command lineTo use the library on the computing cluster, follow the steps below.Login on the front-end:ssh -Y slurm-nice-develAsk for resources:srun --pty bashLoad the spectroscopy module:module load conda; module load spectroscopy.
The command loads a Python virtual environment that contains the latest version
of the library.Print the version of the library to test that everything went smoothly:python -c "import daxs; print(daxs.__version__)"If all went well, you should be able to use the library in your scripts.JupyterHubYou can also use the library in a Jupyter Notebook. Follow steps 1-3
from above. Next, install the kernel by runningkernel-install.After, connect tohttps://jupyter-slurm.esrf.frand start a server on
the Intel partition. On the right-hand side, pressNew. The Python
environment should be in the list, as shown in the image below. Select
it to create a new Jupyter Notebook.Runkernel-removeto remove the kernel. Alternatively, you can use thejupyter kernelspeccommand to manage the kernels.While this simplifies the usage, you will not be able to add Python packages to
the virtual environment. If you want to use additional packages not present in
the environment, the best approach is to install the library in your home
directory, in a virtual environment.DocumentationThe documentation can be found athttps://spectroscopy.gitlab-pages.esrf.fr/daxs.
Package: daxus
DaxusUnofficial library to read single shot data from
DXS-100 Daxis Data Acquisition DeviceExamplewith Daxus('127.0.0.1', 2864) as d:
    print(d.channels[0])
    d.set_mode('realtime')
    print(d.get_measurements()){"channel_label": "DCFC4-I", "channel_num": 1, "channel_id": 18, "slot_num": 0, "span_top": 0.1, "span_bottom": 0.0, "attenuation_code": 0, "units": "V"}{'example_chan4-I': 0.0001166666666666677, 'example_chan3-I': 0.00017500000000000154, 'example_chan2-I': 0.0002816666666666662, 'example_chan1-I': 0.00012000000000000205, 'example_chan4-V': 0.0006666666666674814, 'example_chan3-V': -0.003999999999997783, 'example_chan2-V': 0.0006666666666674814, 'example_chan1-V': 0.0086666666666666}
Package: daybed
A Web API providing validation and storage as a serviceHighlightsCreate REST APIs with no codingDefine dynamic models and relationsValidate and store recordsQuery and access dataDefine role-based permissions and policiesDaybedis a minimalist, agnostic and generic REST API, built with bullet-proof
technologies, such asCouchDBandPyramid.Notable features :Permissions managementGeographical fieldsRelationships between modelsPluggable database engineResourcesFull documentationRoadmap and notesGitHub issuesContributorsLicenseDaybedis released under the BSD license - Copyright 2012-2014.
Package: daybook
daybook: reading log for the clidaybook is a reading log app made for the command-line interface (cli).Installpip install daybookUsageAdding Reading Log Entriesdaybook [-h] [-v] {add,del,books,entries,logs,update,config} ...usage: daybook add [-h] [-r READER] [-k BOOK_KEY] [-t TITLE] [-a AUTHOR] [-d DATE] [--start START] --end ENDoptional arguments:
-h, --help            show this help message and exitreading log:
-r READER, --reader READERbook:
-k BOOK_KEY, --key BOOK_KEY
this can be used instead of title and author
-t TITLE, --title TITLE
requires author
-a AUTHOR, --author AUTHOR
requires titledate:
-d DATE, --date DATEpages:
--start START
--end ENDDeleting Reading Log Entriesusage: daybook del [-h] [-r READER] -e ENTRY_IDoptional arguments:
-h, --help            show this help message and exitreading log:
-r READER, --reader READERentry:
-e ENTRY_ID, --entry ENTRY_IDQuerying Booksusage: daybook books [-h] [-q QUERY]optional arguments:
-h, --help            show this help message and exit
-q QUERY, --query QUERY
this query returns all books containing this value in their titles, authors, or subtitlesQuerying Reading Log Entriesusage: daybook entries [-h] [-r READER] [--from FROM_DATE] [--to TO_DATE]optional arguments:
-h, --help            show this help message and exitreading log:
-r READER, --reader READERdate range:
--from FROM_DATE
--to TO_DATEListing Reading Logssage: daybook logs [-h]optional arguments:
-h, --help  show this help message and exitUpdating Entries, Books, Reading Logs, etc.usage: daybook update [-h] [-r READER] (-e ENTRY_ID | -b KEY | -l KEY)optional arguments:
-h, --help            show this help message and exit
-r READER, --reader READER
-e ENTRY_ID, --entry ENTRY_ID
-b KEY, --book KEY
-l KEY, --log KEYApp Settingsusage: daybook config [-h] [--get-default-reading-log] [--set-default-reading-log DEFAULT_READING_LOG]optional arguments:
-h, --help            show this help message and exitreading log:
--get-default-reading-log
--set-default-reading-log DEFAULT_READING_LOG
Package: daycolor
daycolordaycolor allows you to choose a (RGB) colors for multiple times of the day and fluidly return HSV-interpolated "in-between" colors. The times of the day plus the color may be specified in a adaycolordictas shown below.This is simply a regular Python dict with strings as indicies. If you need more precision than minutes, you can specify custom patterns.daycolordict={"01:00":(255,127,80),"02:00":(257,34,35),"03:00":(126,1,0),"10:00":(126,255,0),"11:00":(255,244,66),"12:00":(253,216,161),"18:00":(27,25,109),"19:00":(0,0,254),"23:00":(255,244,66),"23:59":(253,261,161)}Thedaycolordictautomagically "wraps around", that means unless desired there will never be a hard jumps between colors.So for example to get the color for the current time from a dict you could runget_current()with your dict as an argument:importdaycolordaycolor.get_current(daycolordict)If you would rather specify your own time you can do it with theget_by_datetime()function:importdatetime# Get the datetime for a hour into the futurea_hour_in_the_future=datetime.datetime.now()+datetime.timedelta(hours=1)daycolor.get_by_datetime(a_hour_in_the_future,daycolordict)If you like to interpolate over the colors in a completely different fashion (e.g. randomly selecting a color that is interpolated between the chosen colors) you can do so by using theget_by_value()function:importrandomvalue=random.random()daycolor.get_by_value(value,daycolordict)Custom PatternsIf you would like to get more accuracy in the timedict you could define your daycolors for example as follows:daycolordict={"00:00.00":(0,0,0),"00:00.01":(255,0,0),"00:00.02":(0,0,0),"00:00.03":(255,0,0),"00:00.04":(0,0,0),"00:00.05":(255,0,0),"00:00.06":(0,0,0),"00:00.07":(255,0,0),"00:00.08":(0,0,0),"00:00.07":(255,0,0),"00:00.09":(0,0,0),"12:00.00":(253,216,161),"23:00.00":(255,244,66),}This would return 5 red values every two seconds after midnight and then go black again. To make this wrk you need to call yourget_current()with a pattern like so:daycolor.get_current(daycolordict,pattern="%H:%M.%S")If you wanna see how these patterns are defined, check thedatetime strftime strptime behavior page. With this you could even achive microsecond precision.
Package: daydreamer
# pinnacle
Python Wrapper for Pinnacle Sports API[Pinnacle Documentation](https://www.pinnacle.com/en/api/manual)# Installation` $ pip install pinnacle `# Usage`python >>> from pinnacle.apiclient import APIClient >>> api =APIClient('username','password') >>> sport_ids = api.reference_data.get_sports() >>> tennis_events = api.market_data.get_fixtures(33) `
Package: dayfilter
dayfilterFilter time-series based on sun movementInstallationpip install dayfilterDayFilter depends onsuntime. Due to knownissueof suntime, please use my fork of suntime on test-pypi. To install, use:pip uninstall -y suntime
pip install -i https://test.pypi.org/simple/ suntime-yasirroniI can't bundle my fork of suntime into DayFilter due to LICENSE incompatibility issue.UsageSimple use case of gettinglistofboolfromdatetimeimportdatetimefromdayfilterimportis_daytimedate_string='2010-01-01-16:58:30.00000'date_datetime=datetime.strptime(date_string,'%Y-%m-%d-%H:%M:%S.%f')# WASHINGTON DC DULLES INT'L AR [STERLING - ISIS], VA. datalatitude=38.98longitude=-77.47time_zone=-5is_daytime(date_datetime,latitude,longitude,time_zone)UsingDayFilterclass for multiple callfromdayfilterimportDayFilterimportpandasaspdfromdatetimeimportdatetime# WASHINGTON DC DULLES INT'L AR [STERLING - ISIS], VA. datalatitude=38.98longitude=-77.47time_zone=-5f=DayFilter(latitude,longitude,time_zone)date_strings=['2010-01-01-05:58:42.00000','2010-01-01-06:59:22.00000','2010-01-01-13:22:23.00000','2010-01-01-14:54:55.00000','2010-01-01-15:31:45.00000','2010-01-02-17:12:22.00000','2010-01-02-15:12:32.00000','2010-01-02-16:59:32.00000','2010-01-02-18:00:11.00000',]date_format='%Y-%m-%d-%H:%M:%S.%f'date_datetimes=[datetime.strptime(date_string,date_format)fordate_stringindate_strings]df=pd.DataFrame(index=date_datetimes,data=[1,2,3,4,5,6,7,8,9])df_=f.filter(df)print(df_)Adcanced use ofDayFilterclass with custom filterfromdayfilterimportDayFilterfromdayfilter.post_processimportshift_sr_down,shift_ss_upfromdayfilter.logicimportlogic_daytimef2=DayFilter(latitude,longitude,time_zone,post_processes=[shift_sr_down,shift_ss_up],logic=logic_daytime)df__=f2.filter(df)print(df__)print(f.get_sr_ss(df_.index[0]))print(f.get_sr_ss(df_.index[0],post_processes=True))TODOConsider refactor to astral due to suntime LICENSE.
a. Astral is slower and have same bug with the original suntime
b. Soulution of the suntime bug exist on yasirroni/suntimeLicenseThis project is licensed in MIT License, but depends onsuntimethat use LGPL license.
Package: dayiwasborn
dayiwasbornTell us the date, and we’ll tell you the weekday!
You can even delete the package if you don’t like the results.
Your satisfaction guaranteed, or your bytes back. Every. Single. One of them!Free software: MIT licenseDocumentation:https://dayiwasborn.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-06-30)First release on PyPI.
Package: dayli-client
Paquete API Client de DaylisoftLa aplicación ha sido desarrollada para permitir a los contribuyentes la generación de comprobantes electrónicos basándose en el esquema de emisión electrónica Offline del Servicio de Rentas Internas (SRI), lo cual ayudará a realizar el proceso de emisión de dichos comprobantes.Permite guardar los archivos XML: generados, firmados y autorizadosPara mayor información, visitarwww.daylisoft.com.ec.
Package: daylio-parser
daylio-parserA Python module to parse Daylio CSV exportsDevelopmentInstallpoetry,toxandtox-poetry.Installing the virtual env:$ poetry installSwitching into the venv:$ poetry shellRunning test for the current python version:$ pytest -v --cov=daylio_parser --cov-report term-missing testsRunning all checks with tox prior to running GitHub actions:$ toxTODOParse CSV into entries (parser.py)Implement MoodConfig (config.py) to allow multiple moodsPlus a default config for clean Daylio installsStatsMood stability algorithmAverage moods by dayAverage mood by activityFind mood periods — aka periods of moods meeting certain criteriaExtend mood period search — search above, below and in between thresholdsPrepare data for plottingSplitting entries into bandsInterpolating data for smooth chartsCalculating rolling meanRe-export data into other formatsJSON
Package: daynight2geojson
DescriptionGet day and night global geometry and dumps to a GeoJSON file.Builded on top of Matplotlib Basemap Toolkit Library. Geojson and
Shapely libraries are used to deal with geometries.Output Coordinate Reference System (CRS): EPSG 4326RequirementsGeojson Python library (>= 1.0.9).https://github.com/frewsxcv/python-geojsonShapely Python library (>= 1.4).https://github.com/Toblerity/ShapelyMatplotlib Basemap Toolkit Python library (>= 1.0.7).https://github.com/matplotlib/basemapSee requirements of above libraries (Numpy, Matplotlib, GEOS, etc.).InstallingIf you want to install from pip and you do not have installed Basemap:pip install daynight2geojson –allow-external basemap –allow-unverified basemapUsageBasic usage:fromdatetimeimportdatetimefromdaynight2geojsonimportDayNight2Geojson# Filepath to output GeoJSONfilepath='/tmp/day_night.geojson'# input_date = None is for UTC now date# For others input date: datetime object must be passed#       datetime(year, month, day, hour, minute)input_date=datetime(2015,1,15,00,00)dn=DayNight2Geojson(filepath,input_date=input_date)dn.getDayNight()Test script: - test/daynighttesting.pyExamples:https://github.com/GeographicaGS/daynight2geojsonAbout authorDeveloped by Cayetano Benavent (2015).GIS Analyst at Geographica.http://www.geographica.gs/LicenseThis program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
Package: dayoffs
Day OffsDay Offs is a Python library that helps manage holidays and days off.FeaturesManage weekly off daysGet holidays for a country by localeManage religious holidaysAdd additional holidaysInstallationYou can install this library usingpip. To do that, run the following command in your terminal:pip install dayoffsUsagefromdayoffs.holiday_managerimportHolidayManagerfromdatetimeimportdatetimedefmain():# Initialize HolidayManagerholiday_manager=HolidayManager(weekly_off_days=["saturday","sunday",],# assuming you're using lowercase day names consistently,# when providing the day names, be consistent in using either all lowercase or all title casereligious_holidays=["christian"],country_locale="US",additional_holidays=[datetime(2023,12,31),datetime(2023,1,1)],)# Get all holidaysall_holidays=holiday_manager.get_holidays()print(f"All holidays:{all_holidays}")# Check a specific date for holidayis_holiday=holiday_manager.is_holiday(date=datetime(2023,12,25))print(f"Is Dec 25, 2023 a holiday?{'Yes'ifis_holidayelse'No'}")# Get holidays for a specific periodperiod_holidays=holiday_manager.get_holidays(start_date=datetime(2023,1,1),end_date=datetime(2023,12,31))print(f"Holidays in 2023:{period_holidays}")# check if a specific date is a weekly off dayis_weekly_off=holiday_manager.is_weekly_off(date=datetime.now())print(f"Is today ({datetime.now().today()}) a weekly off?{'Yes'ifis_weekly_offelse'No'}")if__name__=="__main__":main()TestingWe use pytest for testing. To run the test suite, run the following command in the project root directory:pytestOr for a coverage report:pytest --cov=./ --cov-report term-missingContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.
Package: dayonetools
# Day One toolsThis is a collection of scripts to collect data from various sources and storeit into the [Day One](http://dayoneapp.com/) journaling application.  Day Oneis a fantastic application so I'd like to put as much of the data about myhabits, Internet usage, goals, etc. into it as possible.  Luckily, the formatfor Day One is simply XML in the form of OS X plists.  This makes it very easyto import data into.## GoalsThis repository aims to be a single place for one-shot scripts to semi-automateexporting various data into the Day One XML format.  The purpose is toprimarily support services without a web API and those that involve more manualsetup to export data, etc.## Install- User mode- pip install dayonetools- Development mode- Install package with the standard `pip` workflow:- git clone repositiory- cd into repository- pip install .Now you should have a top-level script called `dayonetools` to interact withall the individual services, etc.- Run `dayonetools -h` to ensure the install worked properly.## Usage- Run `dayonetools -h` for help- Run `dayonetools <service_name> -h` for help on an individual service- For example: `dayonetools idonethis -h`### Supported services- [iDoneThis.com](http://idonethis.com)- [nike fuel](http://nikeplus.nike.com/)- [habit list](http://habitlist.com/)- [sleep cycle](http://sleepcycle.com/)- [Timing](http://timingapp.com/) (coming soon)- [Pedometer++](http://pedometerplusplus.com/) ([itunes store](https://itunes.apple.com/de/artist/cross-forward-consulting-llc/id295660206?mt=8))### How to contributeSee CONTRIBUTE file for contribution guidelines.### Differences from SloggerThis set of tools is very similar to the popular[slogger](https://github.com/ttscoff/Slogger).  However, it differs in a fewways.1. [slogger](https://github.com/ttscoff/Slogger) is meant to be runautomatically on a schedule via cron or any similar scheduling mechanism.2. [slogger](https://github.com/ttscoff/Slogger) primarily supports servicesthat have a web API.3. [slogger](https://github.com/ttscoff/Slogger) is written in Ruby.The Day One tools collection of scripts is meant to fill the gap regardingunsupported services in Slogger.  In addition, it's a different mindset in thatthese scripts could be automated but the services they import from are lesserused and possibly more difficult to export data from.
Package: dayonewriter
dayonewriterPython wrapper which internally usesdayone-cli. Compatible withDay One 2++.Make sure that it is installeddayone-cliis installed.Day One 3 features like audio are not supported.Installationpip install dayonewriterUsageCreating an Entry with text, photo and tagfrom dayonewriter import Entry, dayonewriter, markdown, helper
from datetime import datetime

entry = Entry()
# Providing datetime is compulsary
entry.date = datetime.now() 

#optionals
entry.text = 'Hello' 
entry.tags = ['Tag 1','Tag2']
entry.photos = ['Photo1','Photo2'] # needs to be maximum 10. If more then checkout helper.list_subset
entry.journal = 'Journal Name'

entry_id = dayonewriter(entry) #sends to dayone using cliEntryclasseach new entry and has these attributes by default:class Entry:
    text: str = ''
    tags: list = []
    date: datetime = None
    photos: list = []
    journal: str = None
    starred: bool = False

    # below attributes are not tested 
    coordinate: list = []
    timezone: list = NoneNote:dateattribute inNoneby default and needs adatetimeobject.you can use [{photo}] in entry text to position photo.helperHelper contains only 1 methodlist_subsetto create groups of 10 from list.Helpful when photos are more than 10.numbers = [1,2,3,4,5,6,7,8,9,10,11,12,13] # works with any data type
print('Without subset ', numbers)
print('With subset' ,helper.list_subset(numbers))markdowncontains methods which make writing markdown text easier:boldbulletbullet_listnumber_listitalicdayone_linkphotoheaderchecklistonline_imageonline_linkquoteLinks:Day One AppDay One 2 CLI
Package: days360
days360Calculates the days between two dates based on the 360-day year.Implementation of Excel's (or Number's)DAYS360/TAGE360formula in python.Both EU and US methods of calculation are supported, with optional Excel bug compatibility.Installationpip install days360Usagefromdatetimeimportdatefromdays360importdays360date_a=date(2022,10,2)date_b=date(2023,11,30)# supported methods: "US" (default), "US_NASD", "EU"days=days360(date_a,date_b,method="US")print(days)# prints 418PlannedISDA, PSA and SIA methodshttps://www.isda.org/2008/12/22/30-360-day-count-conventions/)https://web.archive.org/web/20160425044113/http://www.nyift.com/lesson/day-count-convention-bonds/https://github.com/miradulo/isda_daycountersNotes and creditsImplementations are based onhttps://en.wikipedia.org/wiki/360-day_calendar.This library started as a port of this ruby gem:https://github.com/tamaloa/days360/tree/master
Package: daysgrounded
Allows you to manage your kid’s grounded days (simple app for trying Python programming and testing procedures).Description and featuresDescriptionAllows you to manage your kid’s grounded days (simple app for trying Python programming and testing procedures).Although the code is OS independent, I’m only able to test it in console (Windows Cmd) and Windows GUI.You shouldn’t use this because it’s just a fake app for allowing me to try Python programming and testing procedures.Features:Saves a log file with all changes.Saves grounded days total per child and last update date.Allows changes in CLI and GUI (this last one has different widgets for the same function).Installation, usage and optionsInstallation$pipinstalldaysgroundedUsage$daysgroundedOptions$daysgrounded-husage:daysgrounded[-option|child+/-days...]optionalarguments:-a,--autoautoupdatebasedondate-h,--helpshowthishelpmessageandexit-l,--licenseshowlicense-V,--versionshowversionchild+/-dayseg.t+1s-1NoargumentsstartsGUI(GraphicalUserInterface).Maximumof99days.Resources and contributingResourcesRepository PyPIDocumentation PyPIRepository GithubDocumentation Read the DocsContributingIf Other repository above is Github or compatible, follow these guidelines for contributing:Fork therepository.Make a branch of master and commit your changes to it.Ensure that your name is added to the end of the AUTHORS.rst file using the format:Name <email@domain.com>Submit a Pull Request to the master branch.Copyright 2009-2015 Joao Carlos Roseta Matos. Licensed under the GNU General Public License v2 or later (GPLv2+).