Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Related Tools

Notices

Reply
 
Thread Tools Search this Thread
Old 03-11-2021, 04:42 PM   #1
blue-j
Junior Member
blue-j began at the beginning.
 
blue-j's Avatar
 
Posts: 2
Karma: 10
Join Date: Mar 2021
Device: none
Standalone Python 3?

A developer friend mentioned that Calibre packaged a standalone Python for internal use - something I'm trying to create for another piece of software. I don't see it though - Python/lib in the app is empty. Can anyone advise!

Thanks so much!

- J
blue-j is offline   Reply With Quote
Old 03-11-2021, 09:45 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes it has its own embedded python. And all the python modules are placed in a single file in bytecode form which is memory mapped and uses a custom import implementation for maximum import speed. See https://github.com/kovidgoyal/bypy for details.
kovidgoyal is offline   Reply With Quote
Old 03-11-2021, 11:23 PM   #3
blue-j
Junior Member
blue-j began at the beginning.
 
blue-j's Avatar
 
Posts: 2
Karma: 10
Join Date: Mar 2021
Device: none
Astounded!!

I am utterly astounded. Amazing work!!!! What an achievement! - J

Quote:
Originally Posted by kovidgoyal View Post
Yes it has its own embedded python. And all the python modules are placed in a single file in bytecode form which is memory mapped and uses a custom import implementation for maximum import speed. See https://github.com/kovidgoyal/bypy for details.
blue-j is offline   Reply With Quote
Old 03-12-2021, 12:43 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It's the end result of over a decade of releasing python software. Sadly releasing python software was never a problem that was satisfactorily tackled upstream, so I've had to roll my own. bypy is designed for my personal use mainly (for calibre and kitty), but if you find it useful, enjoy.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is the environment Python 2 or Python 3? halloleo Library Management 11 04-07-2020 03:47 AM
Python 2 to Python 3, Polyglot & Plugins DaltonST Calibre 18 04-24-2019 12:10 AM
How can i run python (standalone version? ) on my kindle fire? ah_ha Kindle Fire 6 04-03-2013 01:36 AM
Standalone FlightCrew capidamonte Sigil 8 04-25-2012 05:20 PM
Standalone flightcrew? bfollowell Sigil 4 06-30-2011 11:21 AM


All times are GMT -4. The time now is 07:00 AM.


MobileRead.com is a privately owned, operated and funded community.