Saravanan666/pypi-org huggingface dataset:
Package: lunar-test
【lunar-Ci】今日诸事不宜！你是否有过这样的经历，明明合并代码之前通过了所有测试，但是上线之后服务就炸了？这是因为你的测试不够全面。在Librian幼女娱乐中心(这是个公司)，合并代码之前得先检查黄历，如果黄历说诸事不宜，那就不能合并。使用方法你只需要为你的GitHub仓库新建一个Action，设置为在收到PR的时候进行单元测试就可以了。之后所有的PR提交的时候，就会自动对黄历进行测试，从而阻止仓库维护者在诸事不宜的那天合并代码。Action的参考代码长这样——name:CIon:push:branches:[slave]pull_request:branches:[slave]jobs:build:runs-on:ubuntu-lateststeps:-uses:actions/checkout@v2-name:Setup Pythonuses:actions/setup-python@v2.2.2with:python-version:3.9-name:Install dependenciesrun:pip install lunar_test-name:lunar_testrun:python -m unittest lunar_test对了，虽然这是一个Python仓库，但这个Action和仓库语言没有关系，大家都可以用。本地测试你也可以使用lunar_test来测试你的本地代码，也只要先pip install lunar_test，然后在测试脚本里加上——python-munittestlunar_test这样就好了，测试代码从来没有这么方便！
Package: lunastro
LunastroLunastro is apythonlibrary for calculating astronomical data, such as, but not limited to:RA of the sunHour angle of the sunDeclination of the sunLongitude of the Sun's Ascending Node (Omega)Solar Geometric mean AnomalySolar Geometric mean LongitudeTrue Solar LongitudeDistance to the sunLocal sidereal time (accurate to the second)Sun altitudeSun azimuthMoon PositionUsageLunastro's functions return objects of information. Here is a list of each function and what it returns:Solar Datalatitude=47.6101# Bellevue WA latitudesolar_data=getSunData(latitude)# get the solar dataThis returns:AttributeDescriptiondeccurrent solar declinationhour_anglecurrent solar hour angleracurrent solar right ascensionlong_omegaLongitude of the Sun's ascending nodetrue_solar_anomalytrue solar anomalytrue_solar_longitudetrue solar longitudegeo_anomalygeometric mean anomaly of the sungeo_longgeometric mean longitude of the sundistdistance to the sun in milesAltitude of the Sun# lat and long are of Bellevue WAlatitude=47.6101longitude=-122alt=altitude(latitude,longitude)This returns thealtitudeof thesunin radiansAzimuth of the Sun# lat and long are of Bellevue WAlatitude=47.6101longitude=-122azi=azimuth(latitude,longitude)This returns theazimuthof thesunin radiansLocal Sidereal Time# longitudelong=-122time=localSiderealTime(long)This returns thelocal sidereal timeas an object:AttributeDescriptionrawraw sidereal timehourhours of sidereal timeminuteminutes of sidereal timesecondseconds of sidereal timeMoon Positioning# lat and long are of Bellevue WAlat=47.6101long=-122moon_pos=getMoonPosition(lat,long)This returns thepositioning of the moonas an object:AttributeDescriptionazimuthazimuth of the moonaltitudealtitude of the moondistancedistance to the moon in KMparallacticAngleparallactic angle of the moonChangelogVersion 0.0.21 (March 18th 2023)Edited most of the files by making the functions more accurate. Changed the functions to output objects.
Package: lunasync
lunasyncUselunafindto download
and keep in sync tag searches from Danbooru-based sites,
similar to Danbooru tag subscriptions/saved searches.Searches are listed in a simple commented CSV file (see--print-config-path).Can be easily used with cron for automatic scheduling.FeaturesFull and incremental syncs; incremental stops downloading after reaching the
last post that was downloaded in a previous runFast multithreaded downloads with lunafind; 8 downloads in parallel by defaultCan sync all or only searches with a specific labelsReturn the total number of downloaded postsCommand line usageAfter adding some searches to the config file,
simply doinglunasyncwill synchronize all searches in the current directory.A full sync will be taken for a search if this is the first time,
else incremental will be used.
Seelunasync --helpfor all options.Python usageimportlunasynclunasync.sync()Seehelp(lunasync.sync)for parameters.InstallationRequires Python 3.6+ and pip (for automatic easy install).Tested on GNU/Linux and Windows 7, probably works on OSX and other POSIX
systems.As root:pip3install-Ulunasync
Package: lunatic-python-universal
Lunatic Python is a two-way bridge between Python and Lua, allowing these languages to intercommunicate. Being two-way
means that it allows Lua inside Python, Python inside Lua, Lua inside Python inside Lua, Python inside Lua inside
Python, and so on. This package is a fork of the original fromhttp://labix.org/lunatic-python, updated to support
Python 3, and forked again fromhttps://github.com/bastibe/lunatic-pythonto release to PyPi and support newer versions
of Lua and macOS Homebrew-installed Lua.
Package: lunation
lunationlunation is a python library for lunar and solar informationLunar Usage::fromlunation.mainimportmyMoon# create instance of myMoonmoon=myMoon()# functionsphase=moon.get_lunar_phase()# returns lunar phaseage=moon.get_lunar_age()# returns lunar agepercent=moon.get_lunar_age_percent()# returns percent of lunar ageThe library can also be used to calculate distance from the sunSolar Usage:fromlunation.sunimportSun# instance of Sunsun=Sun()distance=sun.solardistance()# returns solar distance in astronomical units
Package: lunchable
lunchablelunchableis a Python Client for theLunch Money Developer API. It's
built on top ofpydanticandhttpx,
it offers anintuitiveAPI, asimpleCLI, complete coverage of all endpoints,
and apluginframework for extending the functionality of the library.InstallationpipinstalllunchableUsagefromtypingimportAny,Dict,ListfromlunchableimportLunchMoneyfromlunchable.modelsimportTransactionObjectlunch=LunchMoney(access_token="xxxxxxxxxxx")transactions:List[TransactionObject]=lunch.get_transactions()first_transaction:TransactionObject=transactions[0]transaction_as_dict:Dict[str,Any]=first_transaction.model_dump()CLITo use the CLI, you'll need to set theLUNCHMONEY_ACCESS_TOKENenvironment variable.
It's recommended to usepipxto install the CLI -
use thelunchable[plugins]extra to include all the known plugins:pipxinstall"lunchable[plugins]"exportLUNCHMONEY_ACCESS_TOKEN="xxxxxxxxxxx"lunchabletransactionsget--limit5lunchablehttp-XGETv1/assetsCheck out theDocsLooking to contribute? See theContributing GuideSee theChangelog
Package: lunchable-primelunch
lunchable-primelunchLunchMoney Amazon Transaction UpdaterPrimeLunchis a command line tool that supports updating Amazon transaction notes with the items from
Amazon itself. This tool uses CSVs generated by theAmazon Order History Reporterplugin on Chrome. Once you've gathered your transactions, export them as a CSV and scan them with the tool.
You'll be asked which transactions you'd like to update.The plugin uses the dollar amounts on the CSV export to match Amazon transactions in LunchMoney.
When a matching dollar amount is found,PrimeLunchcompares the date window between the transactions
to determine if they're really a match.We're using
theAmazon Order History Reporterplugin because it gives us some functionality that Amazon doesn't: exporting Amazon transactions as they're
grouped on actual credit card transactions.Run via the Lunchable CLIYou can install lunchable withpiporpipx. Make sure to use thelunchable[primelunch]extra to install thePrimeLunchplugin.
You can also use thelunchable[plugins]extra to install all the
known plugins.pipxinstall"lunchable[primelunch]"pipinstall"lunchable[primelunch]"The below command runs thePrimeLunchupdate tool:lunchablepluginsprimelunch-f~/Downloads/amazon_order_history.csvThe below command runs thePrimeLunchupdate tool using a date window of fourteen days
instead of the default seven days (these larger windows are especially useful for finding refunds and recurring
purchases):lunchablepluginsprimelunch\--file~/Downloads/amazon_order_history.csv\--window14Update all transactions without going through the confirmation prompt for each one:lunchablepluginsprimelunch\--file~/Downloads/amazon_order_history.csv\--allProvide a LunchMoney API access token manually (PrimeLunchdefaults to inheriting from theLUNCHMONEY_ACCESS_TOKENenvironment variable):lunchablepluginsprimelunch\--file~/Downloads/amazon_order_history.csv\--tokenABCDEFGHIJKLMNOPReferencesThis lunchable plugin was inspired by the original Lunchable Amazon importer
atsamwelnella/amazon-transactions-to-lunchmoney.
Package: lunchable-pushlunch
lunchable-pushlunchLunchMoney Push Notifications via PushoverPushLunchsupports Push Notifications viaPushover. Pushover supports iOS
and Android Push notifications. To get started just provide your PushoverUser Keydirectly or via thePUSHOVER_USER_KEYenvironment variable.Run via the Lunchable CLIYou can install lunchable withpiporpipx. Make sure to use thelunchable[pushlunch]extra to install thepushlunchplugin.
You can also use thelunchable[plugins]extra to install all the
known plugins.pipxinstall"lunchable[pushlunch]"pipinstall"lunchable[pushlunch]"The below command checks for un-reviewed transactions in the current period
and sends them as Push Notifications. The--continuousflag tells it to run
forever which will only send you a push notification once for each transaction.
By default it will check every 60 minutes, but this can be changed using the--intervalargument.lunchablepluginspushlunchnotify--continuousRun via Dockerdockerrun--rm\--envLUNCHMONEY_ACCESS_TOKEN=${LUNCHMONEY_ACCESS_TOKEN}\--envPUSHOVER_USER_KEY=${PUSHOVER_USER_KEY}\juftin/lunchable:latest\lunchablepluginspushlunchnotify--continuous
Package: lunchbot-python
Lunchbot-PythonA Python package for interracting with the @Nero2k Lunchbot API, an API that provides the weekly lunch menu of the Eatery Kista Nod restaurant.The package fully parses menu attributes into Python objects and is very easy to use.InstallationInstallation is done via:pip install lunchbot-pythonQuickstartFor a more detailed guide with more code examples, please refer to the theofficial documentation.There is also an image quickstart example and a compact example of the code below, but that is also available in the official documentation linked above."""Websocket/API exampleThis example shows you the "standard" way of getting the weekmenu, which will return a parsed list of Day objects. The Day class is implemented with this APINOTE: Want to do this with less code?Check the compact example."""fromeatery_nodimportEateryNod#Import the librarymenu=EateryNod.Menu()#Create a menu objectmenu.initialize()#Initialize (this is only required when using WebSockets)print("Retrieving menu...")#Print out the statusweek_menu=menu.get_menu()#Get the menufordayinweek_menu:#Loop through all the days in the menumenu_items_str="\n".join(day.menu_items)#Format the menu items to a pretty string as they are returned as a listprint(day.day_name_sv)#Print out the day name (in Swedish)print(menu_items_str)#Print out the menu itemsprint("Day information:")#Print out a nice dividerprint("Date: "+str(day.day_date))#Print out the day dateprint("Dessert served?: "+str(day.dessert_served))#Print out if dessert is served (this will print either True or False)print("Pancakes served?: "+str(day.pancakes_served))#Print out if pancakes are served (this will print either True or False)print("Hamburgers served?: "+str(day.burgers_served))#Print out if hamburgers are served (this will print either True or False)print("---------------------------------------------------")#Print out a divider linelast_retrieved=menu.last_retrieved["json"]#Get when the menu was last retrievedprint("Menu retrieved: "+str(last_retrieved))#Print out when the menu was last retrieved.ChangelogSee the "Releases" tab and the documentation.More documentationAll functions, variables, and attributes of the code are documented. You can find it on the official library documentation, which is provided byGitBookand hosted onhttps://lunchbot-python.albins.website.(no code has been uploaded yet, it's just the initial repository that has been created)
Package: lunchkeep
lunchkeepAdd a short description here!A longer description of your project goes here…Making Changes & ContributingThis project usespre-commit, please make sure to install it before making any
changes:pip install pre-commit
cd lunchkeep
pre-commit installIt is a good idea to update the hooks to the latest version:pre-commit autoupdateDon’t forget to tell your contributors to also install and use pre-commit.NoteThis project has been set up using PyScaffold 4.3.1. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: lunchtime
lunchtimeIgnore all terminal commands while it’s lunchtime!Free software: MIT licenseDocumentation:https://lunchtime.readthedocs.ioGitHub repo:https://github.com/robertopreste/lunchtimeFeaturesThis is a simple command-line application that will ignore all terminal commands while it’s running.BackgroundMost of us have a boss or supervisor that usually walks in right at lunch time, asking for updates on the job. This is quite annoying, and often things end up with people starving while they show their results to the boss.For this reason I decided to build this tool, so you can pretend your computer is not working and hopefully convince your boss to leave and have lunch at a decent time!PLEASE NOTE: use at your own risk!Use this tool wisely, as it might lead to unexpected consequences (for your job) if misused.InstallationIt is possible to install lunchtime using pip:pip install lunchtimeBoth Python2 and Python3 are supported.Please refer to theInstallationsection of the documentation for more details.UsageSimply launch lunchtime and enjoy a broken terminal:$ lunchtimeA new clean terminal will open, where you can type your commands and no response will be produced. The lunchtime will stop when theexitcommand is issued.If you want to astonish your boss even more, you can use the--crazyoption:$ lunchtime --crazyIn this case, a weird string will be returned after each command!Please refer to theUsagesection of the documentation for more details.CreditsThis package was created withCookiecutterand thecc-pypackageproject template.History0.1.0 (2019-04-09)First release on PyPI.0.1.1 (2019-04-10)Change prompt to user + current working directory.0.2.0 (2019-07-05)Clean code, add tests, fix documentation.
Package: lune
Vous pouvez l’installer avec pip:pip install luneUtilisation :>>> import lune
>>> lune.calcul_phase(year, month, day)
>>> lune.lunar_phase(year, month, day)Exemples d’usage>>> import lune
>>> lune.calcul_phase(1969, 5, 24)([2440357.8560705725, 2440366.010817295, 2440373.0585508235, 2440379.6528647034], [‘1969/05/16’, ‘1969/05/24’, ‘1969/05/31’, ‘1969/06/07’])>>> import lune
>>> lune.lunar_phase(1969, 5, 24)(‘8.png’, ‘Premier quartier’)python phase.pyThe date display is in the form YYYY/MM/DDExample with the date May 24, 1969Date input = 1969/5/24Date of the new moon = 1969/05/16Date of the first quarter = 1969/05/24Date of the full moon = 1969/05/31Date of the last quarter = 1969/06/07(‘8.png’, ‘Premier quartier’)Example with today’s dateDate input = 2020/6/17Date of the new moon = 2020/06/21Date of the first quarter = 2020/06/28Date of the full moon = 2020/07/05Date of the last quarter = 2020/07/12(‘26.png’, ‘’)Ce code est sous licence WTFPL.
Package: lunes-cms
Lunes CMSLunes - Vocabulary for your profession.This is the content management system for the vocabulary trainer app Lunes, which facilitates migrants to acquire technical and subject-specific vocabulary.TL;DRPrerequisitesFollowing packages are required before installing the project (install them with your package manager):python3.8 or greaterpython3-pippython3-venvffmpeglibpq-devPostgreSQLdatabase serverApache2server withmod_wsgiInstallationpip install lunes-cmsDocumentationFor detailed instructions and the source code reference have a look at our documentation:https://lunes-cms.rtfd.io
Package: lunespy
LunesPy📦 Library for communication with nodes in mainnet or testnet of the lunes-blockchain network Allows the automation of sending assets, issue end reissue tokens, leasing, registry, and create new wallet.Table of ContentsCreditsHow to installHow it worksContributingLicenseCreditsHow to installpip install lunespypoetry add lunespyHow it workssee the docs:TelescopeContributingBefore read a code of conduct:CODE_OF_CONDUCTFollow the guide of development:CONTRIBUTINGLicenseApache v2.0
Package: lung
lungtoy^3 lungDocumentationGetting startedHighly recommended, but optional. Use condacondaenvcreate-fenvironment.ymlInstall thelungpackagepipinstall-e.Startjupyterfrom the root repository directoryjupyternotebookHow to run codeTake a look atnotebooks/Delay Lung model.ipynb.new_controller=NewController(waveform=BreathWaveform())How to add a controllerSuppose our name isNewControllerCreate file inlung/controller/_new_controller.pyStub of the controller:fromlung.controllers.coreimportControllerclassNewController(Controller):def__init__(self,**kwargs):passdeffeed(self,err,t):passAddNewControllertolung/controllers/__init__.pyImport usingfrom lung.controllers import NewControllerHow to add an environmentSame idea as above. You've got this, Cyril! (Just watch out forself.time...).
Package: lungo
Lungo Programming LanguageLungois a dynamic programming language created just for fun.Getting StartedInstallations:pipinstall--upgradelungoUsage:lungo[FILE]SyntaxYou need to define variable withletstatement before assignment/reference:let x = 2;Assign a previously defined variable:let x = 0;
x = 42;Define a function:func inc(x) {
    return x + 1
}The last statement in each code block is a result of the block evaluation, so in the previous examplereturnis not
necessary:func inc(x) {
  x + 1
}Function definitions are just an expressions. The previous line is equivalent to:let inc = func(x) { x + 1 }Conditional execution:if ( x > 0 ) {
  print("Positive")
} elif ( x < 0 ) {
  print("Negative")
} else {
  print("X is 0")
}while-loop:let x = 0;
while ( x < 10 ) {
  x = x + 1;
  print(x)
}for-loop:for ( x in [1,2,3] ) {
  print(x)
}Almost everything is expression in Lungo (except forreturnandletstatements):let x = 10;
let message = if(x > 5) { "big" } else { "small" };
print(message)Output:bigAnother example:func hello(value) {
    print("Hello " + value)
};

let who = "world";

hello(while(who.size < 20) { who = who + " and " + who })Output:Hello world and world and world and worldNOTE: A bit of syntactic bitterness. In the current implementation each statement in a code block (except for the
last one) must be followed by a semicolon;. So the;must be present after such expressions as function
definitions,forandwhile-loops, etc. This will be fixed in a future release.Supported binary operators:+,-,*,/,&&,||,==,!=,>,>=,<,<=Unary operators:!,-Higher order functions:func inc(x) {
  x + 1
};

func comp(f, g) {
  func(x) {
    f(g(x))
  }
}

print(comp(inc, inc)(0))Output:2More sophisticated example:func pair(a, b) {
    func(acceptor) {
        acceptor(a, b)
    }
};

func first(p) {
    p(func(a,b) { a })
};

func second(p) {
    p(func(a,b) { b })
};

let p = pair(1, 2);

print(first(p));
print(second(p));Output:1
2
Package: lungo-cli
LungoA user-friendly home lab setup designed for small-to-mid-scale on-premises hosting.FeaturesComplete configurability- manage everything declaratively through YAML filesSeamless interoperability- access all applications via a single sign-on portalBatteries included- benefit from a diverse range of applicationsContainerized solution- designed to operate in a rootless Docker environmentSecurity by default- use HTTPS and secure server settings across the systemInstallationThe recommended way to install Lungo is viapipx:pipxinstalllungo-cliNote that Lungo is built uponDocker Compose. Before proceeding, please ensure that
Docker is installed on your machine.Alternatively, you can usePodman ComposewithPodman. You can
alsouse Docker Compose with Podman.For instructions on setting up these tools, please refer to their respective documentation.QuickstartCopy the example configuration files to the platform-specific configuration directory. For example, on Linux, you can
use the following command:mkdir-p~/.config/lungo
cpexamples/*~/.config/lungoEdit the configuration files according to your preferences. Then, launch the Lungo service by running the following
command:lungoupDocumentationFor more information, please refer to thedocumentation.LicenseThis project is licensed under the MIT License. SeeLICENSEfor details.
Package: lungs-segmentation
lungs_segmentationAutomated lung segmentation in chest-x rayTrain pipeline:https://github.com/alimbekovKZ/lungs_segmentation_trainInstallationpip install lungs-segmentationExample inferenceJupyter notebook with the example:WebApphttps://lungssegmentation.herokuapp.com/Models weightsmodelbest diceMbresnet340.9657103.4densenet1210.965562.8UsageCode example for resnet34:from lungs_segmentation.pre_trained_models import create_model
import lungs_segmentation.inference as inference

model = create_model("resnet34")
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
model = model.to(device)

plt.figure(figsize=(20,40))
plt.subplot(1,1,1)
image, mask = inference.inference(model,'739px-Chest_Xray_PA_3-8-2010.png', 0.2)
plt.imshow(inference.img_with_masks( image, [mask[0], mask[1]], alpha = 0.1))Results on data from the Internetresnet34densenet121AuthorsRenat Alimbekov, Ivan Vassilenko, Abylaikhan Turlassov
Package: lunisolar
Lunisolar is a Python package for handling Chinese calendars. Lunisolar contains a set of helper functions designed to make it easy to convert between the Gregorian (Western) calendar and the Chinese calendar.Based on the works ofHelmer Aslaksen. Built on top ofPyCalCal, the Python implementation of Calendrica 3.0, a set of calendar-related algorithms as described inDershowitz and Reingold’s book “Calendrical Calculations”.UsageInitializing a Chinese date:>>> from lunisolar import ChineseDate
>>> mid_autumn = ChineseDate.from_chinese(chinese_year=2013,
                                          chinese_month=8,
                                          chinese_day=15,
                                          is_leap_month=False)
>>> mid_autumn
chinese_date(year=2013, month=8, day=15, is_leap_month=False)
>>> mid_autumn.gregorian_date
datetime.date(2013, 9, 19)A Chinese date object can be initialized from a Gregorian (western) date:>>> from lunisolar import ChineseDate
>>> moon_landing = ChineseDate.from_gregorian(1969, 7, 20)
>>> moon_landing
chinese_date(year=1969, month=6, day=7, is_leap_month=False)The ChineseDate class shares the same constructors as datetime.date:>>> ChineseDate.today()
chinese_date(year=2012, month=12, day=29, is_leap_month=False)

>>> timestamp = 1360414893.724195
>>> ChineseDate.fromtimestamp(timestamp)
chinese_date(year=2012, month=12, day=29, is_leap_month=False)

>>> ordinal = 734908
>>> ChineseDate.fromordinal(ordinal)
chinese_date(year=2012, month=12, day=29, is_leap_month=False)Retrieving properties of the Chinese calendar:>>> moon_landing = ChineseDate.from_gregorian(1969, 7, 20)
>>> moon_landing.year
1969
>>> moon_landing.month
6
>>> moon_landing.day
7
>>> moon_landing.is_leap_month
False
>>> moon_landing.zodiac
rooster
>>> moon_landing.element
earth
>>> moon_landing.heavenly_stem
ji
>>> moon_landing.earthly_branch
youThe add, subtract, and comparison operators forChineseDateis similar to that of thedatetime.dateobject. For subtraction and comparison, ChineseDate and datetime.date can be used interchangeably.>>> from datetime import timedelta
>>> cdate = ChineseDate.from_gregorian(1969, 7, 20)
>>> gdate = datetime.date(2013, 2, 10)
>>> cdate > gdate
False
>>> gdate - cdate
datetime.timedelta(15911)
>>> diff = timedelta(200)
>>> cdate + diff
chinese_date(year=1969, month=12, day=29, is_leap_month=False)