Latest / Talk Python To Me / #160: Lektor: Beautiful websites out of flat files
Transcript
- 0:00What is the fastest, most scalable web platform out there?
- 0:02Is it Pyramid running on top of MongoDB with the Redis cache?
- 0:06Maybe Flask and Postgres as a service with some high-performance cluster?
- 0:09Or some funky Go API framework?
- 0:12No, it's static files.
- 0:14But today, static files does not mean that you write a bunch of HTML.
- 0:18With static site frameworks and generators like Lecter and Pelican,
- 0:21you can use data to drive the creation of static sites
- 0:24and then host them wherever makes the most sense for you.
- 0:27On this episode, you'll meet Joseph Nix, who works on Lecter,
- 0:30a Python-based static site generator.
- 0:32This is Talk Python To Me, episode 160, recorded April 19, 2018.
- 0:37Welcome to Talk Python To Me, a weekly podcast on Python,
- 0:54the language, the libraries, the ecosystem, and the personalities.
- 0:57This is your host, Michael Kennedy.
- 0:59Follow me on Twitter, where I'm @mkennedy.
- 1:01Keep up with the show and listen to past episodes at talkpython.fm,
- 1:05and follow the show on Twitter via at Talk Python.
- 1:08This episode is sponsored by Linode and Rollbar.
- 1:11Please check out what they're offering during their segments.
- 1:13It really helps support the show.
- 1:15Hey, Joseph. Welcome to Talk Python.
- 1:17Hi, thanks for having me.
- 1:18Yeah, it's great to have you here.
- 1:19I'm really excited to talk about Lecter and, more broadly,
- 1:22these static site generators because they're such an interesting way
- 1:27to build web applications that I think are really quite the opposite of
- 1:33full-stack, data-driven, scale-out, this and that, right?
- 1:37Yeah, definitely.
- 1:38But they definitely have a huge place, a good need, I think.
- 1:42Yeah, and I think Lecter lives in a pretty interesting space in that realm as well.
- 1:48Before we get into it, though, let's start with your story.
- 1:52How did you get into programming in Python?
- 1:53My story is kind of fun, I think.
- 1:57So I didn't start out wanting to be a programmer at all.
- 2:00I grew up interested in physics and math.
- 2:03That was all that I was about.
- 2:05I wanted to be an astrophysicist since I was a little, little kid.
- 2:09So I went to school at UAH in Rocket City, Alabama.
- 2:13That's where they built the Saturn V.
- 2:15And I wasn't taking any programming classes except for one that was mandatory.
- 2:21It was a C++ class that I struggled through.
- 2:24But I met some cool friends.
- 2:30And for fun, we would spitball ideas.
- 2:33We'd talk about cosmology and things like this.
- 2:36And we ended up, again for fun, inventing a kind of rocket engine.
- 2:41So I didn't see that coming.
- 2:45It's a small thing, at least physically.
- 2:51It's a kind of electric propulsion device, which I could talk about forever, basically.
- 2:59But it's pretty cool.
- 3:00And we researched it on paper.
- 3:02And we decided to form a company to protect the intellectual property with aspirations of actually doing physical R&D and doing something with it.
- 3:12Right.
- 3:13So we did that.
- 3:15And then we realized, well, okay, now we've got this company.
- 3:18And we want to do rocket research.
- 3:19And we have no money at all because we're poor college students.
- 3:23Right.
- 3:24There's no hiring engineers or things like that, right?
- 3:26No.
- 3:27We considered various ways to remedy that.
- 3:32But what we decided was we looked at everybody else that was doing something similar.
- 3:37There's all sorts of space entrepreneurism going around at the time and still now.
- 3:43And almost all of these that we could find were founded or funded by people who made their money in software.
- 3:51Right.
- 3:51I mean, we've got SpaceX.
- 3:52We've got the Blue Origin.
- 3:55Yeah, Blue Origin.
- 3:55Yeah, yeah, yeah.
- 3:56Exactly.
- 3:57And some probably other, a bunch of others we, I don't know about.
- 3:59Virgin Galactic.
- 4:00Yeah, yeah, exactly.
- 4:01Richard Branson.
- 4:01I mean, it's not entirely software, but a lot of it.
- 4:04But absolutely.
- 4:05People, all these software executives and founders, it seems like they maybe even had it in their mind a long time ago that this is what they wanted to do.
- 4:15They really just wanted to go to space.
- 4:18And they thought of some novel software applications that are useful in and of themselves and interesting in and of themselves, but will help them get to space as well.
- 4:28That's really interesting.
- 4:29So how did that get you into programming?
- 4:30So we decided we needed to teach ourselves software so we can make some money to do this rocket research.
- 4:36So that's exactly what we did.
- 4:38So kind of from the very beginning for me, I was talking with my friends and we decided what we wanted to do.
- 4:46We looked at the various programming languages out there from a completely fresh perspective because none of us were programmers really.
- 4:52We looked at PHP, we looked at Fortran, we looked at C, Python, and we kind of felt that Python was maybe the way to go.
- 5:00It seemed like it was becoming popular.
- 5:02We read about why.
- 5:04We experimented with a few languages and we liked Python.
- 5:08So we dove in and it stuck.
- 5:11It was very easy to pick up.
- 5:13That's definitely one of its superpowers.
- 5:15And also so many of the languages that are easy to pick up there that way because they give up sort of the professional high-end proper architecture.
- 5:25And Python seems to live in this space where like you can start without all the structure and objects and separation and packages.
- 5:33But it can grow into that as you need it, right?
- 5:35So I think that's part of the secret sauce.
- 5:37Yeah, definitely.
- 5:38When we first started out learning Python, I was still having a hard time wrapping my head around OO.
- 5:43You know, just doing very basic imperative and functional things to get our feet wet.
- 5:49But it grew.
- 5:51And I've been doing Python now for a decade and I feel pretty comfortable.
- 5:56We'll get into the lecture and all this stuff.
- 5:57I just want to ask you, given that story, did you watch Falcon Heavy launch?
- 6:01Yes, I did.
- 6:02Oh, my goodness.
- 6:03It made me cry.
- 6:04I thought that would be kind of a major thing.
- 6:07But then like you watch it and it's just like, oh, my gosh, like people are still doing amazing stuff in space, even though the government seems to have given up on it.
- 6:15Yes.
- 6:15And that was really frustrating, too, at the time.
- 6:18So we started learning Python back in like the mid 2000s, which was right before the economic crash in 2008.
- 6:26And people, which is when we were starting to get good at Python, we were trying to be consultants, but it's hard to find a job.
- 6:34People weren't really hiring then.
- 6:35And all these spaceflight companies were struggling, too, because, again, everything was kind of suppressed a little bit.
- 6:43And they were trying to get off the ground running with something aggressive in the first place.
- 6:48But they've pushed through and they've done great things.
- 6:52And I'm super excited to see where all where all of them go.
- 6:55Yeah.
- 6:55Watching those two outer rockets land and I guess the third one try to land was just it was like, oh, my gosh, we are in science fiction land.
- 7:04But it is like happening.
- 7:06Right.
- 7:07It's just when I saw that, I'm like, that is something you would see in a movie.
- 7:10That is not something you would see in reality.
- 7:13No, it was just unbelievable.
- 7:15I think they had a video where they tried to show what this will look like before it actually happened.
- 7:22And they had the two rockets land separated in time.
- 7:25And I don't know if they were planning on them actually landing just identically together.
- 7:31My guess is they wanted that, but they weren't going to bank on it.
- 7:34So they didn't want to get everybody's hopes up.
- 7:35Boy, it just looked ridiculous.
- 7:37Yeah.
- 7:38Yeah.
- 7:38Yeah.
- 7:38I'm so looking forward to the next five years.
- 7:40What's happening around there.
- 7:41All right.
- 7:42We could we could totally turn this into a space show.
- 7:45But let's stay focused on the stuff that came after your project.
- 7:49Right.
- 7:49Just to sort of close it out.
- 7:51Like, are you is that company still exists?
- 7:53Has anything happened of it?
- 7:54Yes, definitely.
- 7:55We have grown in skill and we're now a stable company.
- 8:01Our company is named Terminal Labs.
- 8:03We're a small Python consulting shop.
- 8:05We work contracting for other companies to do whatever it is they need.
- 8:10In the past, we've done a lot of full stack web development.
- 8:13We've worked with Django and Flask, some really big Django projects.
- 8:17And we've also loved it.
- 8:20Any chance we can get to do any science.
- 8:23So data science and machine learning are really exciting.
- 8:28And we're getting more and more into that all the time.
- 8:30We've got a pretty strong DevOps background.
- 8:32So all this is keeping us employed and raising our skill level further so that we can eventually
- 8:39make a rocket.
- 8:40Awesome.
- 8:41All right.
- 8:42So that sort of brings us to what you're doing today.
- 8:44And that's really where you're still focused is sort of continuing to grow the
- 8:48consultancy and stay and play and basically play in the science space when possible.
- 8:54Yes, absolutely.
- 8:55And making connections.
- 8:57And yeah, our goal is to get to space and how exactly we're going to transition there.
- 9:04Time will tell.
- 9:05We've got some ideas.
- 9:07But this has been a pretty good course so far.
- 9:10And I think it'll work.
- 9:11Very cool.
- 9:11Glad to see that that's still going.
- 9:12So let's talk about the project that you've been involved with sort of most broadly at first
- 9:18with static site generators.
- 9:21So many people who listen to the podcast are web developers, but a lot of people are scientists
- 9:26or data scientists or even students.
- 9:29So maybe just like could you compare and contrast a static site generator experience to like, let's
- 9:37say, like a traditional web app.
- 9:39You talked about Flask and Django, either of those.
- 9:41Yeah, absolutely.
- 9:42So with a traditional web app, you have a server.
- 9:46There is a server on the cloud that you that a user will hit and make a query to.
- 9:52And then that server does some logic and often connects with a database to dynamically generate
- 9:59something to return to your browser.
- 10:01And a static site generator doesn't need any of that.
- 10:05And often I'd recommend against it.
- 10:08Like you could put it behind Flask, but there's really no need.
- 10:11The build products of a static site generator are basic HTML.
- 10:15The tradeoff, like, you know, it seems at first like so the tradeoff is I could just create a bunch of
- 10:22JS, CSS and HTML files and just write them.
- 10:26But that becomes super tedious super quickly, right?
- 10:29Like if even if you just want the same look and feel across multiple pages, right?
- 10:35Like if you've got 20 pages like that and somebody comes in, either boss, client, whatever it says,
- 10:41I would love for that background over here to be blue and the font to like reorder the menu.
- 10:46That's not hard, right?
- 10:47But if you actually hand code it, like it sucks, right?
- 10:50You've got to go and change all those.
- 10:52But on the other hand, if you've got to maintain databases, scalability, security patches, etc.,
- 10:57that also can be painful.
- 10:59Sometimes it's totally needed.
- 11:01Like for my site, like it has to be dynamic.
- 11:03It absolutely needs a server and a database.
- 11:06But many sites don't, right?
- 11:08Absolutely.
- 11:09The history of it is, is we started with those raw HTML and CSS.
- 11:12And that was absolutely a pain.
- 11:14You're completely right.
- 11:15I hate coding CSS.
- 11:18But the reaction to that was to build these very complicated web servers.
- 11:22And not everybody needs that either.
- 11:25So these static site generators came around as a bit of a compromise for people who don't want to build these basic HTML sites with CSS by hand
- 11:36because that is enormous pain.
- 11:37But they don't need the power of an actual logic backend in a database.
- 11:43All they really want is to make their lives easier creating the static content.
- 11:48And things like Jinja really help a lot with that and web templating.
- 11:54Right.
- 11:55And so, for example, like you probably still want some kind of data-driven site created.
- 12:01Like you could have a blog and you want to add a new entry and have that appear and be linked to possibly under various categories and stuff.
- 12:08But you want to be able to – like I guess the thing is you don't need to show a different version of the blog to anyone, right?
- 12:15It's totally fine if they all get the same one.
- 12:18So instead of doing that at runtime on the server over and over but always giving the same result, like just crank out – like somehow on your machine at a like a move to production time, you generate that.
- 12:29And then you just put the static files there, right?
- 12:31And it ends up being really nice in production too because all these files are pre-built.
- 12:37So all that you need to do is put the HTML on a CDN or something and then they get served incredibly quickly.
- 12:44So it's very performant.
- 12:45So from a production standpoint, it's faster to do this for the user than to actually query, for example, a Flask backend that is just doing the same thing.
- 12:56Just generating a simple HTML for everybody and giving it out.
- 13:00I guess you can even mix them, right?
- 13:03So suppose you've got some section of your app that is like a store.
- 13:07Obviously, you would like people to – that to be dynamic.
- 13:11But the rest of it, maybe not.
- 13:12You could use something like Nginx and like URL routing to say this part routes to like a Flask app or Pyramid app.
- 13:18This part routes to the static content.
- 13:21You can definitely do that.
- 13:22Nginx is a great way to segregate those sorts of things.
- 13:25So you can have a static site generator made with Lecter, for instance, and a Flask part of your website that is dynamic content, but not the blog because the blog doesn't need that.
- 13:37Not the flat landing pages because it doesn't need that.
- 13:40And you could even go and use JavaScript on a static page to query dynamic content if you wanted.
- 13:48Right.
- 13:48If you wanted to go down the sort of rich front-end web framework type thing like Angular, React, or whatever, that could be all fully static.
- 13:56But then like maybe there's a Flask API, for example.
- 13:59Exactly.
- 13:59So you could even shimmy in some dynamic content into a static site.
- 14:03And how easy that is depends on, of course, how comfortable you are with all those technologies and the complexity of your dynamic content.
- 14:12So the more complicated that gets or the more comfortable you are with Python instead of JavaScript, maybe the more inclined you should be to use Flask or Django.
- 14:22Yeah, that makes sense.
- 14:23So maybe give us some examples.
- 14:25We talked about Lecter.
- 14:27Let's take one step back.
- 14:29One thing that I think we did, obviously we touched on the deployment and simplicity.
- 14:33One thing we haven't touched on is just the performance of static sites.
- 14:38Obviously, you talked about the CDN and that's good, but the consequences of high-performing sites are really important.
- 14:46Right?
- 14:47I think Amazon did a study saying for every 500 milliseconds of latency they add, they lose 1% of sales or something like that.
- 14:56It's a big deal.
- 14:59Yeah, and I'm sure it's not linear.
- 15:01You add that fifth bit and it's like eventually people are going to go away and it's going to become nonlinear.
- 15:07But that's important, right?
- 15:09Yeah, that margin is very important for most businesses.
- 15:12And even if you're just trying to make your own personal blog become more popular, it matters to you if your user base grows by 1% or 10%.
- 15:21It matters.
- 15:22And it also, I think it feels different when you're on a site that you're like, dang, that is basically instant.
- 15:28Like that feels almost instant to me as I work with it.
- 15:32Whereas the other one, like if anyone has worked with SharePoint, they know what the opposite of that feels like.
- 15:38Right?
- 15:38It's just like slow, painful.
- 15:41Right?
- 15:42I'm waiting again.
- 15:43Like it just, even if it doesn't make people go away, it engenders a different experience with your consumers or your people.
- 15:51Absolutely.
- 15:51It's got an effect on your mood.
- 15:54Even if it's subconscious, even if it's slight, it makes you a little less happy, a little more agitated if it's slow.
- 16:00This company doesn't really delight me, right?
- 16:02Right.
- 16:03Things like that.
- 16:04So, and I think Google, you can never be sure what Google cues off of because they would be massively game as soon as they let that out of the bag.
- 16:13But I think site performance also affects ranking.
- 16:18Yes, I believe it does.
- 16:20And they've got, Google's got their own tools even to check site speed.
- 16:24And if you use a static site generator to produce static sites, you're generally going to score pretty well about that.
- 16:31Exactly.
- 16:32Yeah.
- 16:33You can do little things to make your static content even faster and optimize above the fold content and things like this.
- 16:41Like minification or bundling and things like that?
- 16:44You can minify.
- 16:45You can compress.
- 16:46You can make sure that all the CSS that's relevant to content that you see above the fold, that is when you first load a page and not below it when you scroll, you can make sure that CSS is loaded first.
- 16:59So that there's an even smaller flash of unstyled content.
- 17:03Yeah, that's a cool idea.
- 17:04Yeah.
- 17:04So you can do things like that.
- 17:06But if you simply just have static content on a CDN, no matter what, you're going to try to make it really slow.
- 17:13That's absolutely right.
- 17:14That's pretty awesome.
- 17:15And so all those benefits accrue to those.
- 17:18And I think the static site, there's also sort of data driven, but then maybe mixing either like backend services over JavaScript or like a section of various sections that are fully dynamic.
- 17:29I think that's a pretty interesting way to think about going beyond just, well, I have a couple of pages and a static site.
- 17:35Definitely.
- 17:35You can interplay them.
- 17:37You can mix and match.
- 17:38And that will increase the speed of all the static components, which will make your users happier.
- 17:44Yeah, absolutely.
- 17:47This portion of Talk Python To Me is brought to you by Linode.
- 17:50Are you looking for bulletproof hosting that's fast, simple, and incredibly affordable?
- 17:54Look past that bookstore and check out Linode at talkpython.fm/Linode.
- 17:59That's L-I-N-O-D-E.
- 18:01Plans start at just $5 a month for a dedicated server with a gig of RAM.
- 18:05They have 10 data centers across the globe.
- 18:08So no matter where you are, there's a data center near you.
- 18:11Whether you want to run your Python web app, host a private Git server, or file server,
- 18:16you'll get native SSDs on all the machines, a newly upgraded 200 gigabit network, 24-7 friendly support,
- 18:23even on holidays, and a seven-day money-back guarantee.
- 18:26Do you need a little help with your infrastructure?
- 18:28They even offer professional services to help you get started with architecture, migrations, and more.
- 18:34Get a dedicated server for free for the next four months.
- 18:37Just visit talkpython.fm/Linode.
- 18:40So let's talk about some of the tooling that we might use for this.
- 18:46So Lector, obviously, is pretty awesome.
- 18:48Yes.
- 18:48But it's not the only one in the Python space, right?
- 18:52There's a couple of others.
- 18:53Maybe you could just touch on those, just so people know kind of what,
- 18:56if they see built with something at the bottom, they're like,
- 18:59oh, that was a static site generator.
- 19:00Python or not, there's a handful of static site generators out there.
- 19:04A couple popular ones, I think, are Pelican and Hugo.
- 19:07Hugo is definitely very popular.
- 19:09I think that's written in Go.
- 19:10And they predated Lector, I believe.
- 19:14And what they do is they use templating and Markdown.
- 19:19So they try and make it pretty easy for you to make your content in Markdown.
- 19:23And then they have a little backend functionality with template context.
- 19:29So you can query things as you're building your static content
- 19:33so that you don't have to write the same HTML over and over and over again,
- 19:36which is really handy.
- 19:38Right, like an overall layout page with your navigation and footer and CSS and JavaScript,
- 19:42et cetera, right?
- 19:43Yeah, not having HTML templates is a thing of the past that people should not be doing anymore.
- 19:49But I deployed them from front page.
- 19:53Come on.
- 19:56Right.
- 19:57Right.
- 19:57People do still do them.
- 19:59That's absolutely true.
- 20:00But I don't think they really should anymore.
- 20:02So using these templating languages and the static site generators make people's lives easier
- 20:07so they can not have to expend very much effort to expand their website.
- 20:13And a lot of these static site generators have themes.
- 20:19So you can build off of the theme too, which is really handy for a lot of people.
- 20:23So they don't have to come up with their own CSS, at least from the back.
- 20:27But Lecter came after these and it learned from some of their deficiencies too.
- 20:33Because again, going back to the history, I think the static site generators came out after the more complicated web frameworks did.
- 20:41And these servers.
- 20:43So they were a step back from the initial reaction against pure HTML.
- 20:48So pure HTML was horrible.
- 20:50Then it went to web frameworks.
- 20:51And then we got static site generators that kind of existed in between.
- 20:54And Lecter has all the features of those static site generators.
- 21:01But it's got some of the additional features that the web frameworks have that make life even simpler.
- 21:07Okay, like what?
- 21:08Like a CMS.
- 21:09So far as I know, Lecter is the only static site generator that comes with a built-in CMS out of the box, ready to go.
- 21:16Yeah, that is pretty interesting.
- 21:17So I guess maybe let's do like a high-level flyer of just how it works.
- 21:21So with Lecter, Lecter is a thing you install onto your machine.
- 21:27And then it's a command line application you run to generate the static file site structure.
- 21:35And then you can use it also to serve up that content in a way that will let you basically click a button, like a little edit button on any page, type away on it.
- 21:44And it will under the covers actually write or save the markdown and then live reload that as you develop your site.
- 21:53And then I guess there's probably like some kind of Lecter deploy step that like finally builds it out to the final HTML.
- 21:59Yes, there is.
- 21:59So it is a program that you download and install and you run it over the CLI.
- 22:06But you don't have to interact with the CLI very much to use it.
- 22:10I had it generating sites on all these two commands.
- 22:12Right.
- 22:13Lecter quick start and then Lecter server.
- 22:15And then I like I was I was going to get it.
- 22:18I was playing with it.
- 22:18It's fun.
- 22:19Good.
- 22:19And that's how it should be.
- 22:21So the previous static site generators would mean that you had to either open markdown and edit it in whatever editor you like or just do everything in the terminal.
- 22:33And not everybody is comfortable with that.
- 22:35We're trying to make static sites accessible to people who aren't necessarily programmers.
- 22:40Well, and static sites are especially beneficial to people who are not capable of like all the CLI stuff and running databases.
- 22:48And that like it's exactly the people who don't want to do that.
- 22:52The flask pyramid SQLAlchemy type stuff for whom this really benefits because the deployment and like running at the site is crazy easy.
- 23:00And so, yeah, having that sort of focused in that area is really nice.
- 23:04Right.
- 23:04So would you say like if you're working in a company and somebody comes to you and says, hey, can we build this new site?
- 23:10I'm thinking about using SharePoint or something like that because we have to be able to keep track of X, Y or Z or whatever.
- 23:16Do you think Lecter might be like, hey, let's not use that.
- 23:21Let's set up a Lecter thing and you can actually use the CMS and manage it and stuff like that.
- 23:25Would that be good?
- 23:26It depends on a few things.
- 23:28Like if someone needs complicated user management, they want to segregate employees and say certain employees have certain permissions and others don't.
- 23:38Then Lecter is not a fit for that.
- 23:42Doesn't make sense.
- 23:44Yeah, because static files don't have great permission role things other than at the OS level.
- 23:50Right.
- 23:51And that's actually part of the beauty of it really is because there's no user permissions.
- 23:57Everybody can do everything and it makes things simpler.
- 24:00It takes away a big chunk of complexity out of the system.
- 24:03Yeah.
- 24:04That's the tradeoff, right?
- 24:05It's that you get this super fast, super simple system, but it doesn't do everything, right?
- 24:09You could make it do everything, but then it wouldn't be simple.
- 24:11It would be hard again.
- 24:12It would be SharePoint.
- 24:13What I have seen people do is they will run Lecter on a work LAN and they'll have all the employees use the same Lecter setup so they can all edit pages as they will.
- 24:26And if you trust your employees to not make horrible mistakes, then that works really well.
- 24:32You don't necessarily need all of those permissions.
- 24:35Yeah.
- 24:36I feel like a lot of companies go too far and they're like, well, we've got to lock everything down and restrict people and whatnot.
- 24:41And it just blows my mind.
- 24:43If you don't trust these people, why are you employing them?
- 24:47Like if literally you're like, I will not trust this person to touch this file, like that person should probably just not work here as of this afternoon because like that is a strong statement for so many things.
- 24:58But I see it over and over in these companies, right?
- 25:00I mean, I guess there's a difference between protecting yourself from like I clicked on a phishing link, but there's a lot of these cases where it's like clearly we don't trust our employees and like, well, why are you employing them?
- 25:11Right.
- 25:11Right.
- 25:12And I get to concerns about people doing things by accident.
- 25:16So not like maliciousness, but accidentally deleting your content.
- 25:21But you can protect against that in other ways, too.
- 25:23You don't necessarily need complicated user permissions.
- 25:25Dropbox even has backups you can take.
- 25:28That's right.
- 25:29And you could even have someone who is maintaining the lecture deployment locally on a LAN and five content producers adding in content.
- 25:39But the one person actually making git commits every now and then by hand because they know what they're doing.
- 25:44Right.
- 25:45You could even automate that.
- 25:46Right.
- 25:46Just every hour, just commit the site.
- 25:48Whatever it is, it's like this time of day we commit it.
- 25:51And that way, at least you have a way to go roll back.
- 25:54There's a version history there.
- 25:55Exactly.
- 25:56Yeah.
- 25:56Very cool.
- 25:57Very cool.
- 25:58So maybe let's do like a rundown through some of the core features because I think they're pretty awesome.
- 26:05We've been sort of touching on some of them.
- 26:07The first one is around deployment.
- 26:09Right.
- 26:10It says basically you can deploy anywhere.
- 26:12So I could go and I could set up something kind of probably over the top like an EC2 Linux machine or Windows machine and copy my files up there and serve it there.
- 26:23Maybe I could set up like a $5 Linode server, which would be pretty sweet.
- 26:28But being static files, there's even like more options.
- 26:31Right.
- 26:32Like I could go way basic and put it on S3 or where else could I put it?
- 26:36Yes.
- 26:36Well, just like you're saying, because it's a static site, it can go anywhere.
- 26:41It can go on any CDN at all.
- 26:44Basically, you can put it on S3.
- 26:46What we do for our own personal website is we host it on S3 and then have CloudFront take care of it from there.
- 26:52So it's got an S3 backup, but it's really just using a CDN.
- 26:56And putting your site entirely on a CDN is groundbreaking.
- 27:02You know, when I figured out that I could do that, I was all about it.
- 27:07It's blazing fast now and I don't have to worry.
- 27:11It's super easy.
- 27:12There's no denial of service.
- 27:14But I guess another thing that's pretty interesting about that is like if I open up my uWSGI log, which is the worker processes for my websites, and I watch them.
- 27:26A lot of times people are coming and requesting things that I want them to request, but, you know, periodically they'll be going to wp-login.php or some other malicious thing.
- 27:39My site is not built in WordPress.
- 27:40It's Python, so I don't really care.
- 27:42Like I just like block those people.
- 27:44But it's very clear that there's like a continuous sort of low burn attack against your servers, against your web server infrastructure, and your site.
- 27:56And it's super hard to like SQL inject static on a static site, right?
- 28:02Exactly.
- 28:03Like any of these other things.
- 28:04If you have no logic backend and you have no database that's going to get compromised, then you don't have to worry.
- 28:10That's right.
- 28:11I mean it's down to does Cloudflare itself get – or Cloudfront itself get hacked, right?
- 28:16Is that a thing that can be done?
- 28:18And if it can't, then you're good.
- 28:20And even if it can, it's kind of not your problem.
- 28:23Yeah.
- 28:24You could be defaced, but it's not like you're going to be in the news because now a million recordings from a teddy bear between kids and their teddy bear are now on the internet.
- 28:35And honestly, you probably won't even be defaced.
- 28:38If Cloudfront is having any sort of problem, it's probably going to affect more than just you.
- 28:42Yeah, exactly.
- 28:43It also is better for security because that means if any problem happens, it'll get a lot of attention and get fixed faster because the rest of the world is looking at it, not just your users.
- 28:56So it's cross-platform, right?
- 28:57It works like the tooling to generate the static content.
- 29:01I mean obviously HTML is cross-platform, but it does take some tooling to power the CMS to generate the data files that are then built into HTML, right?
- 29:10Right.
- 29:10Lecter is built in Python and it runs on Linux and Macs and Windows.
- 29:16It should run everywhere.
- 29:18And the CMS that Lecter runs internally is just front-end content.
- 29:24It's built in React.
- 29:25You open up a browser and you see your CMS.
- 29:28Yeah, it's pretty cool.
- 29:29There's no database, but it acts like a database, right?
- 29:33There's a set of files and a file folder structure, basically a markdown and then these INI files, right?
- 29:40Tell us maybe a bit like at the interplay of page templates, the markdown and these like sort of definition files.
- 29:48Frameworks had like Django.
- 29:50And in Django, you have model files and you've got admin files and you have databases that you connect to.
- 29:57And Lecter is kind of thinking that, but it's making it a lot simpler and accessible.
- 30:03So instead of a models file .py and writing Python code, we have simple INI files where you can define fields and content types and page types.
- 30:14And all of that data is stored in flat files on your system.
- 30:20And then the templates have access to all of that content in their template context.
- 30:27So you can use the templates with the Jinja tags to query for body content, for titles, for URLs or checkboxes or anything like that.
- 30:39That's really, really clever.
- 30:40So let me repeat this back to see if I got that right.
- 30:43So we have these INI files and they define like basically what data is in a given type of page.
- 30:48So you have different types of page, like blog posts, landing pages, whatever.
- 30:53So like you could say a blog post contains a title, content, an author and a published date, for example.
- 30:58And then you have a markdown file that has those various pieces of information entered into them.
- 31:06And finally, you have a Jinja 2 template that takes that bit of information and then renders it like however you would in like a regular HTML.
- 31:17It's like a dynamic HTML expression of that.
- 31:20That's all pretty close, but I think you got a little bit wrong.
- 31:24So the information isn't stored all in one markdown file.
- 31:28It's stored in a lectroproprietary format that is just a flat file of data.
- 31:33Oh, right.
- 31:34But you don't see that most of the time as a user.
- 31:37What you see is you interact with the CMS.
- 31:39So you define the INI file, which is a model file, and then you go to the CMS and you make a new page of a certain type.
- 31:47And the CMS will show you all the content fields that you need to populate.
- 31:51So the published date and the author and the body content are all separate fields in the CMS.
- 31:58And do they have types?
- 31:59Yes.
- 32:00Those fields can be of type markdown or string or date or integer or checkbox or anything like that.
- 32:09So the template, you can query for the specific fields and do template logic on those fields if you want or just simply display them.
- 32:20It'll render the markdown for you if the type is a markdown file or markdown content.
- 32:26That's pretty cool.
- 32:27Another thing that's pretty nice for large sites is dependency tracking.
- 32:32Right?
- 32:33So initially, like who cares?
- 32:36It's just a few files.
- 32:37But, you know, you could easily see over time something with a thousand pages.
- 32:41Right?
- 32:42Like if, in say, a bookstore, like a data-driven bookstore, you might have a landing page, a category listing page, and individual book details page.
- 32:55It might be just three pages, but the data drives like thousands of distinct URLs.
- 32:59In a static site generator, you literally build a thousand pages.
- 33:05Right?
- 33:05And then, like, generate because your database is this stuff.
- 33:08So with dependency tracking, like, that could be a big deal.
- 33:11Right?
- 33:11So what's the story of that?
- 33:12That can be a big deal.
- 33:14So you're swapping out a database like Postgres for flat files, and that has certain tradeoffs.
- 33:21Right?
- 33:22Postgres is optimized on the file system, and it's fast.
- 33:27Flat files are not optimized for size or speed, but they're much easier to read by human.
- 33:35And that means you can actually version control all this.
- 33:39It's not binary anymore.
- 33:40You're actually storing the text from the various fields of these books or the author information or publication information.
- 33:49So if I – like, maybe you change, like, the details about one book, and you want to redeploy it.
- 33:55You don't want to regenerate a thousand files.
- 33:58You want to just regenerate that one HTML file, right?
- 34:01Right.
- 34:01And that's what would be generated.
- 34:03So if you're changing the information about one book, then there would be a single file that is touched that's devoted to that one book in your flat file system in Lecter.
- 34:13And that would have a line change in it when you change the author information.
- 34:17You're correcting a typo.
- 34:19And then Lecter would notice that change and auto-rebuild the relevant HTML file for it.
- 34:27And it wouldn't build all of it.
- 34:30When you run Lecter server the first time, it builds all of your files.
- 34:33But then it just is looking for changes.
- 34:35And it builds files for anything that is touched.
- 34:38That's nice.
- 34:39It'll even do that, like, as you interact with them, either on the file system or through the CMS, right?
- 34:44That's pretty slick.
- 34:45And unless you're changing content that's actually relevant to a thousand pages, you're not going to build a thousand pages all over again.
- 34:51Yeah, that's real cool.
- 34:52This portion of Talk Python To Me has been brought to you by Rollbar.
- 34:59One of the frustrating things about being a developer is dealing with errors.
- 35:02Relying on users to report errors, digging through log files, trying to debug issues, or getting millions of alerts just flooding your inbox and ruining your day.
- 35:11With Rollbar's full-stack error monitoring, you get the context, insight, and control you need to find and fix bugs faster.
- 35:18Adding Rollbar to your Python app is as easy as pip install Rollbar.
- 35:22You can start tracking production errors and deployments in eight minutes or less.
- 35:26Are you considering self-hosting tools for security or compliance reasons?
- 35:30Then you should really check out Rollbar's Compliance SaaS option.
- 35:34Get advanced security features and meet compliance without the hassle of self-hosting, including HIPAA, ISO 27001, Privacy Shield, and more.
- 35:43They'd love to give you a demo.
- 35:45Give Rollbar a try today.
- 35:46Go to talkpython.fm/Rollbar and check them out.
- 35:51So it has built-in image sort of thumbnailing tools and stuff.
- 35:55That's pretty nice.
- 35:56It has a plug-in system.
- 35:58So that sounds like you could really take sort of Lecter out of the box and then make it really adaptable to kind of the way you might with, say, a traditional data-driven app.
- 36:08You can also mess with the Jinja templates, which is sort of a programmable layer as well, right?
- 36:14Yes, you can do a lot with the plug-ins system, and a lot has been done.
- 36:18We've got more than a handful of plug-ins on our website.
- 36:22There are plug-ins that change functionality inside your Jinja templates.
- 36:27There's plug-ins that change how your markdown is rendered.
- 36:31So if you want special formatting and you want to enable certain niceties in the markdown.
- 36:36Like GitHub flavor table sort of thing?
- 36:38Yeah, you can change the renderers or the lecters in the markdown.
- 36:44You can add classes.
- 36:46You can have special markdown syntax that's your own and have the rendered markdown use custom HTML classes.
- 36:56There's admonitions.
- 36:59There are plug-ins that allow you to deploy to various different places.
- 37:05Like the S3 deploy isn't built in in Lecter.
- 37:08That's provided by a plug-in as opposed to GitHub page deploys, which is native.
- 37:14Oh, that's pretty sweet.
- 37:15So you can actually go in there and sort of tell the plug-in your API key and then just run a command, and then you have a new version online?
- 37:24That's right, and you can hook into – so you can write a plug-in to deploy to anywhere you like.
- 37:29That's awesome.
- 37:30It also has a Python API.
- 37:33So is that just like a different angle to get in there instead of writing a plug-in, maybe from the outside instead of the inside?
- 37:41Or like what's an example of what I might do with the API or what I could do?
- 37:46The first common use of the API is within the plug-ins itself.
- 37:49It's telling you how to access every part of the Lecter system through a plug-in.
- 37:54So the plug-ins have various events, various event hooks inside the Lecter code that they respond to.
- 38:02So when something happens, it trips an event, and any plug-in listening on that event can have the opportunity to do something.
- 38:09But that plug-in has access to all of the Lecter source files in Python, so it can import everything and change anything.
- 38:19I see.
- 38:20That's pretty cool.
- 38:20So maybe some part – let's say, for an example, like part of your site depends upon data you might get from an API or something like that, like a web service, right, that is not part of your site.
- 38:34Maybe at build time, you just like go and hit that, refresh it, and then dump it in there and render it.
- 38:40So it's kind of live.
- 38:41It's sort of cached from the moment of generation anyway.
- 38:44Yes, you could do that, definitely.
- 38:45You could do that.
- 38:47You could change the types that are in Lecter.
- 38:50You could add a content type that's entirely new, a field type.
- 38:54You could generate entirely different kinds of pages.
- 38:58There are plug-ins that add template functionality to allow Atom feeds and Discus really easily.
- 39:07Right, right.
- 39:07Discus is pretty nice.
- 39:09And, yeah, I guess you could even, like, regenerate, like, an RSS file sort of thing, right, say, for blogs or a store.
- 39:17You want to have the new items or whatever.
- 39:18Yes, there is an RSS Atom feed plug-in.
- 39:22Yeah, very cool.
- 39:22So one of the areas that I was – when I was playing with Lecter, I'm like, this thing is really nice.
- 39:29One thing I would like to see when I was playing with it is maybe ways to configure how it looks, right?
- 39:35Because it comes out and it looks like it looks.
- 39:37But I'm like, oh, can I, like – you know, one of the things I love about Bootstrap is, like, themes, right?
- 39:43I can go to, like, say, Wrap Bootstrap or something like that and go, here's a whole bunch of stuff.
- 39:48I'm not a web designer, but that looks really close to what I want.
- 39:51Let's see if I can hack that into the shape I wanted, you know?
- 39:54What's the story around themes for what you guys are doing?
- 39:56Themes are really new in Lecter, actually.
- 39:58They did not exist prior to a few months ago.
- 40:01But as of Lecter 3.1, which came out in January or February, there is now theming functionality in Lecter.
- 40:09There's not a lot of themes available yet, but they're growing in numbers slowly.
- 40:15So people should go ahead and try this out and make some and publish them for us.
- 40:20We'll add them to our list.
- 40:21Yeah, that sounds really good.
- 40:22So themes allow you to easily modify the look and feel of your website, of course.
- 40:29But in Lecter, they can do more than that.
- 40:32They can add content type.
- 40:33You can have models in your themes, even.
- 40:36I see.
- 40:37So if I wanted to have a theme for, like, a photography store, I could have, like, a photo model type that has, like, the picture and the little copyright information and the date and things like that.
- 40:51Yes, absolutely.
- 40:52And as you would expect with a theme, anything can be overwritten or extended, too.
- 40:57So when you're using a theme, like a photography theme, you could easily add your own models for videos if you also do videography.
- 41:06I see.
- 41:06If you decide you don't like after using the theme for a while, you don't like the model and you want to extend it, you can do that, too.
- 41:13Okay.
- 41:14Yeah, that sounds really nice.
- 41:15So when I went through and sort of created this little playground site that I was playing with, I went through and I installed Lecter.
- 41:23I did that off of GitHub.
- 41:24And then I typed Lecter Quick Start, and I got the site, and I played with it.
- 41:30Like, how would I incorporate themes into that?
- 41:32Like, how do I know what themes are there?
- 41:34Is there a way to type, like, quick start photography one or whatever?
- 41:38There is not a command line tool to just grab the theme so easily yet, but we've got some issues on the GitHub for making that.
- 41:50Right now, what you would have to do is, where you have your Lecter code, you make a themes directory, and in that themes directory, you put any themes that you like.
- 42:00And the themes that exist right now are in their own repository on GitHub, Lecter Themes.
- 42:06So you can check those out and download or clone any of those, and they will be picked up by your Quick Start.
- 42:15You'll have to, the Quick Start provides its own default styling and templates and models.
- 42:22So when you add the theme, you'll have to remove some of the ones that Quick Start added because they will be overwriting the theme.
- 42:30Right.
- 42:31Because that's a feature of the themes is that they're overwritable.
- 42:34Right, right.
- 42:35Well, that sounds pretty cool.
- 42:36I think maybe a really cool plugin would be, like, list all the themes, activate the themes.
- 42:42Who knows?
- 42:44Would it be possible to write one that did that?
- 42:46It seems like it would.
- 42:47It would.
- 42:47Though that sounds like such a good feature.
- 42:49I'd like it in Electric Core.
- 42:51Yeah.
- 42:53Yeah, that's true.
- 42:54It should just be built in, right?
- 42:55Maybe some experimental stuff could be done as a plugin that could be brought in, right?
- 43:00Kind of like maybe Python standard library style.
- 43:03Yeah, it could be.
- 43:04But definitely, theming is new, but it's very exciting.
- 43:07So I'm trying to push the themes because I think that'll make people's lives a lot easier.
- 43:12Yeah, I think it's really, really great.
- 43:14And it definitely could open up sort of like a way for people to reuse the design of sites they like.
- 43:21There is a showcase, right, at getlector.com slash showcase of people.
- 43:26Yes.
- 43:27Or sites that people have created, which is pretty cool.
- 43:29A lot of them seem to be created by Armin Roeniger of Flask fame.
- 43:34Like, he was involved in the early days of this project.
- 43:37Is that right?
- 43:37Yes, absolutely.
- 43:38Armin is the creator of Lecter.
- 43:40Yeah, that's kind of what I thought, but I wasn't 100% sure.
- 43:42Armin is the creator of all the Palettes projects.
- 43:46And he's the creator of Jinja and WorkZoog and Flask.
- 43:50So he's done a lot.
- 43:53And Lecter uses many of those tools and wraps them up nicely.
- 43:57Yeah, when I typed Lecter server, I got localhost 5000.
- 44:01I'm like, I see, Flask.
- 44:02Okay.
- 44:03Yep.
- 44:04Absolutely.
- 44:05Flask is what's driving the CMS.
- 44:08So it's a Flask server using a bunch of React.
- 44:11Okay.
- 44:11Nice.
- 44:12And the showcase, since he made Lecter and he made GetLecter's original website, the first few pieces of the showcase are his websites.
- 44:25But to scroll down, you can see others.
- 44:28One that I really love is a PyCon website that is on the showcase.
- 44:35It's a beautiful example of a single page website.
- 44:40Yeah, PyCon Philippines.
- 44:41Yeah.
- 44:41Yep.
- 44:42Nice.
- 44:43Yeah, that's a good looking site.
- 44:44Very, very cool.
- 44:45So speaking of single page, like maybe the last thing we'll have time to touch on is you have a bunch of guides.
- 44:52So there's a quick starter, but it's like, all right, well, I want to create something that has categories or discus things or how do I deal with error pages, right?
- 45:00So you have a bunch of guides that go through those types of things.
- 45:02Do you want to tell people a bit about those?
- 45:04Categories, for instance, is a really handy guide because it's a very commonly wanted feature.
- 45:09You want to be able to have projects or pages that are cross-linked somehow by certain categories.
- 45:17Right.
- 45:18It's one thing if it had like one category, you just put it like in that subfolder and it's fine or something.
- 45:23Right.
- 45:23But if it could be like in science and engineering, like, oh boy, now you're in trouble, right?
- 45:27Right.
- 45:27Exactly.
- 45:28Because you could manually create all of this and make them all separate pages, but that's not using a lot of the power that's available to you.
- 45:36Right.
- 45:36And data duplication as well.
- 45:38And though Lecter can be used in a very simple fashion, some of the power is a little tricky.
- 45:45So we've got some guides to help sort that out for you.
- 45:49So you don't have to create all of the Gingelogic and the macros in your templates to figure out how to appropriately use the categories and how to set up the models so that you have the categories functionality.
- 46:02Yeah, that's really cool.
- 46:03Yeah.
- 46:04So you've got the distance comments, the error pages, which, you know, is always a nice thing to have.
- 46:08Pagination.
- 46:10Yeah.
- 46:11Pagination is critical, especially if you have a blog.
- 46:15There's a guide for single page apps, which is really nice because if you have in mind a static site generator building an HTML file for every page that you have and every page is a different topic, then it might not be obvious to you how to concatenate or combine all of that content into a single page, which is what you really want sometimes.
- 46:37Yeah, yeah.
- 46:37Like, just show me the latest flat down the list in order, things like that.
- 46:41Sitemap is also sitemap.xml.
- 46:45We talked about the SEO benefits of static sites.
- 46:48Like, here's a big one.
- 46:49Yes.
- 46:50So there's a quick guide to get that up and running, which is really handy.
- 46:54There's also a Webpack guide.
- 46:57So it can get you started integrating some of the fanciness of the rich JavaScript tooling.
- 47:06Webpack does all sorts of interesting things like SCSS or less or bundling or a whole bunch of those types of things if you want them, right?
- 47:15Yes.
- 47:16You could even make a fairly complicated React app on top of Lector if you wanted.
- 47:22Yeah, that's cool.
- 47:22Yeah, that's cool.
- 47:23I've looked at using Webpack for my sites, and I decided I would rather have something simpler.
- 47:29And I just use, like, super aggressive caching.
- 47:31Like, cache this for a year.
- 47:33Everything that's static, just cache it for a year.
- 47:36So the very first time, you might hit four JavaScript files and three CSS files, but you'll never get them again.
- 47:42So, like, I'm not going to go to the layers of trying to regenerate that stuff.
- 47:47I know a lot of people make use of Webpack, and it works for them.
- 47:50Yep, and there's a lot of Webpack functionality around modifying your build system, too, so you can minimize all of your content.
- 47:58We were talking before about minimizing even a static site.
- 48:01So a lot of that can be done with Webpack or Browserify or Grunt or anything like that.
- 48:06So where does continuous integration fit into this whole story of static sites in Lector?
- 48:11Like, does it make even sense to set up continuous integration and have, like, something like Travis CI or various, you know, servers, like, looking at your possibly your Git history and checking those out and verifying everything, like, compiles correctly with Lector?
- 48:29You can wrap up tests in Travis, and you can automate builds with Travis.
- 48:35Our own website is actually done like that.
- 48:37So every time we push a commit to the Lector website repository on GitHub, Travis goes, and it builds all of that, and if it's good, then it deploys it.
- 48:47So that's really handy.
- 48:49Does it just use, like, the S3 plugin and just, like, run that command on successful build?
- 48:53Basically.
- 48:54It's not using S3, but it is deploying on the successful build.
- 48:57Nice.
- 48:58Okay.
- 48:58Well, that's really, really cool.
- 48:59Yeah, and you can automate all of that with other things, too.
- 49:02It doesn't have to be Travis.
- 49:03You can make it on a cron job if you wanted.
- 49:05Right.
- 49:06Anything like that.
- 49:06Yes, but it doesn't, I guess it doesn't depend as much.
- 49:09It's not like there's not as much logic, but I guess you could still screw up one of your Gingita templates or something like that, right?
- 49:18So you might want to test.
- 49:19Yes, and that's not too hard to do.
- 49:22Lector is appropriately verbose, I think, in how it outputs information.
- 49:27It'll tell you when it's building all the web pages, and it'll tell you their success or failure.
- 49:33So you can look out for those basic failures.
- 49:36So you can test for the page building successfully.
- 49:40That won't, of course, test if the content is correct.
- 49:44So if you made some typos, then you'll still have to catch that by hand.
- 49:47Yes.
- 49:48Maybe something with Selenium against, like, I don't know, something local.
- 49:52Who knows?
- 49:53But a build server is not going to do it, for sure.
- 49:55Nice.
- 49:56To me, it sounds like Lector fills a pretty interesting middle ground, I guess, between full stack stuff and static sites.
- 50:05Having models is a game changer for a static site, and the CMS baked in is a really easy way to use it.
- 50:14So you have a lot of the features that, for instance, Django would have, except for the actual backend processing, which you often don't need.
- 50:24But that doesn't mean you don't want models, you don't want to define different content types and different data structures.
- 50:30You just don't need the additional complexity of actually using Postgres or having backend Python.
- 50:37You don't need the servers and the databases and all of that comes with taking those on board.
- 50:41Those are more like puppies, right?
- 50:43Once you get them, you have to raise them and care for them continuously, basically.
- 50:49Oh, yes.
- 50:50And there's loads of headache that you avoid in not having to do that, too.
- 50:54You don't have to manage your own CI CD.
- 50:56It becomes really simple, and you don't have to worry about security as much, which we talked about.
- 51:01Yeah.
- 51:01And it's blazing fast on top of it.
- 51:02Scalability, distribution denial of service, these are not real issues, yeah.
- 51:06Right.
- 51:07You let the CDN handle that.
- 51:08Yeah, exactly.
- 51:09Very cool.
- 51:10All right.
- 51:10So let's leave it there for Lector, but I'll ask you the two final questions before I let you out of here.
- 51:16So if you're going to work on some Python code, what editor do you use?
- 51:21Four years, I've been an Emacs user.
- 51:23Oh, right on.
- 51:24I've got my own .emacs store in a Git repo that I can't live without.
- 51:29Nice.
- 51:29So it's right there.
- 51:30Anytime you got to check it out, you're all good, right?
- 51:32Yep.
- 51:33.emacs.d.
- 51:34Yeah, perfect.
- 51:35And then notable PyPI package.
- 51:37Obviously, there's Lector, right, which is great, but what else?
- 51:41A personal favorite of mine for DevOps is SaltStack.
- 51:45I've been doing a lot of DevOps at Terminal Labs the last couple of years, and SaltStack is enormously feature-rich.
- 51:52It can do almost everything I can think of.
- 51:54And we've got our own open source project named Rambo, which is built on top of SaltStack partially to make DevOps even easier.
- 52:04We're building it as a provider-agnostic provisioning framework.
- 52:08Oh, nice.
- 52:10So Rambo makes great use of Vagrant and SaltStack to make a lot of things a lot easier.
- 52:15So it helps get up and running with a lot of things pretty fast.
- 52:18The other thing, which isn't exactly a pit package that I really want to plug, is Kondo.
- 52:22Are you familiar with Kondo?
- 52:24Yeah, Kondo's awesome, especially if you're trying to do something on Windows involving data science and vcvaralls.bat or something like that, right?
- 52:34Just basically, pip installing a lot of the data science tooling requires funky compilers that are not easily accessible on Windows.
- 52:42And this pre-builds it, and you kind of get everything pre-packaged and ready to roll, right?
- 52:46Absolutely.
- 52:47Even outside of data science and machine learning, but just normal Python development, Kondo has saved my butt more than once.
- 52:55You never know.
- 52:56It always surprises me when I try and pip install something that has some C dependency that I didn't have on my system that it doesn't work.
- 53:05So I would either have to Google around and fight it for an hour or two trying to figure out how to install it, or use Kondo and it just works.
- 53:12Kondo install.
- 53:13Forget this thing.
- 53:14We're out of here.
- 53:15That's cool.
- 53:15Yeah, really nice.
- 53:16Really nice.
- 53:17All right.
- 53:18Final call to action.
- 53:19People are all excited about static sites, about Lecter.
- 53:22What can they do?
- 53:23Go check it out, firstly.
- 53:24Try it out.
- 53:26Hopefully you'll love it.
- 53:27If you do, please, if you're a Python developer, try contributing.
- 53:30We have an active Gitter, and I'm pretty active in the community.
- 53:34I'll try to respond to anything.
- 53:36Yeah, I think that's how I actually got in touch with you is I found you on the Gitter channel.
- 53:39Yeah, so that was cool.
- 53:40Right.
- 53:40Well, I would love to see more plugins being made.
- 53:43You can do anything with a plugin, and we also would love to see more themes.
- 53:46So if you are a theme developer and even not a Python developer, you want to spread your theme around to the Lecter world instead of just Hugo or WordPress, then come on over.
- 53:57Yeah, that sounds awesome.
- 53:58All right.
- 53:59Well, I think Lecter is pretty cool.
- 54:00People should check it out.
- 54:01And Joseph, thanks for being on the show.
- 54:03It was great to talk about all this stuff with you.
- 54:05Thank you.
- 54:06This has been another episode of Talk Python To Me.
- 54:10Our guest on this episode has been Joseph Nix, and the episode was brought to you by Linode and Rollbar.
- 54:16Linode is bulletproof hosting for whatever you're building with Python.
- 54:20Get four months free at talkpython.fm/Linode.
- 54:24That's L-I-N-O-D-E.
- 54:26Rollbar takes the pain out of errors.
- 54:29They give you the context and insight you need to quickly locate and fix errors that might have gone unnoticed
- 54:35until your users complain, of course.
- 54:37As Talk Python To Me listeners, track a ridiculous number of errors for free at rollbar.com slash Talk Python To Me.
- 54:44Want to level up your Python?
- 54:45If you're just getting started, try my Python jumpstart by building 10 apps or our brand new 100 days of code in Python.
- 54:53And if you're interested in more than one course, be sure to check out the Everything Bundle.
- 54:56It's like a subscription that never expires.
- 54:59Be sure to subscribe to the show.
- 55:01Open your favorite podcatcher and search for Python.
- 55:03We should be right at the top.
- 55:04You can also find the iTunes feed at /itunes, Google Play feed at /play,
- 55:10and direct RSS feed at /rss on talkpython.fm.
- 55:14This is your host, Michael Kennedy.
- 55:15Thanks so much for listening.
- 55:17I really appreciate it.
- 55:18Now get out there and write some Python code.
- 55:20Thank you.