
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Lucifer is a Python package for creating nice and colourful progress bars using the map() and apply() method as well as for loops.
Old English Lucifer "Satan," also "morning star, Venus in the morning sky before sunrise," also an epithet or name of Diana, from Latin Lucifer "morning star," noun use of adjective, literally "light-bringing," from lux (genitive lucis) "light" (from PIE root *leuk- "light, brightness") + ferre "to carry, bear," from PIE root *bher- (1) "to carry," also "to bear children." Venus in the evening sky was Hesperus.
To use a progress bar you need to initiate a ProgressBar object with the maximum progress amount (total) and call the show method of the object with the amount to update the progress bar.
from lucifer import ProgressBar
from time import sleep
bar = ProgressBar(total=100)
for i in range(100):
sleep(0.05)
bar.show(amount=i+1)
You can also add your own text to the progress bar.
from lucifer import ProgressBar
from time import sleep
bar = ProgressBar(total=100)
for i in range(100):
sleep(0.05)
bar.show(amount=i+1, text=f'working on {i}')
You can also use the ProgressBar's map method instead of Python's map method. The output is an iterable. As soon as you turn the iterable object into a list the progress bar will be displayed.
from lucifer import ProgressBar
from time import sleep
list1 = list(range(100))
def wait_and_double(x, wait_time):
sleep(wait_time)
return x*2
# this will not make the progress bar appear
iterable2 = ProgressBar.map(
function=lambda x: wait_and_double(x=x, wait_time=0.05),
iterable=list1
)
# this will make the progress bar appear
list2 = list(iterable2)
ProgressBar also works with Panda's DataFrame and Series objects.
from lucifer import ProgressBar
from time import sleep
from pandas import DataFrame
data = DataFrame({
'name':['Arminius', 'Boudica', 'Alaric', 'Attila', 'Genseric'],
'ethnicity': ['German', 'Celt', 'Goth', 'Hun', 'Vandal']
})
data['name_and_ethnicity'] = ProgressBar.apply(
data=data,
function=lambda x: x['name']+' the '+x['ethnicity']
)
data['name_lower'] = ProgressBar.apply(
series=data['name'],
function=lambda x: x.lower()
)
You can also use ProgressBar to for iterating over iterable objects, especially for loops.
from lucifer import iterate
for i in iterate(range(100)):
# do something
pass
FAQs
Python library for creating progress bars
We found that lucifer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.