|
172 | 172 |
|
173 | 173 | 00:05:03 or the backend developers are building for us.
|
174 | 174 |
|
175 |
| -00:05:06 And I guess for lots of people, there's a pedantic model that's kind of at the core |
| 175 | +00:05:06 And I guess for lots of people, there's a pydantic model that's kind of at the core |
176 | 176 |
|
177 | 177 | 00:05:08 of lots of those bits.
|
178 | 178 |
|
|
632 | 632 |
|
633 | 633 | 00:18:02 So this is a web front end like Flask or Django sort of framework, but a way that really incorporates
|
634 | 634 |
|
635 |
| -00:18:09 building the UI in Python and validating and enforcing that with PyDandic rather than just, |
| 635 | +00:18:09 building the UI in Python and validating and enforcing that with Pydantic rather than just, |
636 | 636 |
|
637 | 637 | 00:18:15 Hey, file new HTML.
|
638 | 638 |
|
|
670 | 670 |
|
671 | 671 | 00:19:16 It's going to be slow because you have to do some weird rendering, but it's also just
|
672 | 672 |
|
673 |
| -00:19:19 going to be a pig because I don't want to have to define every A, hre and everything |
| 673 | +00:19:19 going to be a picky because I don't want to have to define every A and Href and everything |
674 | 674 |
|
675 | 675 | 00:19:23 else in Python code.
|
676 | 676 |
|
|
690 | 690 |
|
691 | 691 | 00:19:59 Just sitting there on a web page as HTML.
|
692 | 692 |
|
693 |
| -00:20:02 Maybe it's even further obscured behind some front end JavaScript framework like view or |
| 693 | +00:20:02 Maybe it's even further obscured behind some front end JavaScript framework like Vue or |
694 | 694 |
|
695 | 695 | 00:20:06 react.
|
696 | 696 |
|
|
728 | 728 |
|
729 | 729 | 00:21:09 So if you have serious data needs, and those websites don't offer API's, then you need
|
730 | 730 |
|
731 |
| -00:21:14 bright data, check them out today at talk by fun.fm slash bright data. |
| 731 | +00:21:14 bright data, check them out today at talkpython.fm/brightdata. |
732 | 732 |
|
733 | 733 | 00:21:19 And please use that URL that way they know you heard about them from us.
|
734 | 734 |
|
735 |
| -00:21:24 That's talk by fun.fm slash bright data. |
| 735 | +00:21:24 That's talkpython.fm/bright data. |
736 | 736 |
|
737 | 737 | 00:21:27 The link is in your podcast player show notes.
|
738 | 738 |
|
|
1502 | 1502 |
|
1503 | 1503 | 00:41:38 Join them for free on Tuesday, February 27 2024 at 2am civic time.
|
1504 | 1504 |
|
1505 |
| -00:41:43 Just visit talkbython.fm/sentry-monorepo. |
| 1505 | +00:41:43 Just visit talkpython.fm/sentry-monorepo. |
1506 | 1506 |
|
1507 | 1507 | 00:41:47 That link is in your podcast player show notes.
|
1508 | 1508 |
|
|
1514 | 1514 |
|
1515 | 1515 | 00:42:05 If we have a design language or something like that, or even using a framework, I mean,
|
1516 | 1516 |
|
1517 |
| -00:42:09 you mentioned bootstrap, but tailwind or vulva is that one of the new ones? |
| 1517 | +00:42:09 you mentioned bootstrap, but tailwind or Bulma is that one of the new ones? |
1518 | 1518 |
|
1519 | 1519 | 00:42:13 Like if we're working with one of those, and we wanted to use this, like how easy is it
|
1520 | 1520 |
|
|
1716 | 1716 |
|
1717 | 1717 | 00:47:25 They probably know what CSS is.
|
1718 | 1718 |
|
1719 |
| -00:47:27 It's generally referred to as SAS, which is S A S S, which was, is, is basically a more |
| 1719 | +00:47:27 It's generally referred to as SASS, which is S A S S, which was, is, is basically a more |
1720 | 1720 |
|
1721 | 1721 | 00:47:34 powerful version of, of CSS where you can.
|
1722 | 1722 |
|
1723 |
| -00:47:36 SAS and less. |
| 1723 | +00:47:36 SAAS and LESS. |
1724 | 1724 |
|
1725 | 1725 | 00:47:37 Those were the two.
|
1726 | 1726 |
|
1727 | 1727 | 00:47:38 Yeah.
|
1728 | 1728 |
|
1729 |
| -00:47:39 And then we kind of settled on SAS, but then we had SCSS, which is SAS with more CSS syntax. |
| 1729 | +00:47:39 And then we kind of settled on SASS, but then we had SCSS, which is SASS with more CSS syntax. |
1730 | 1730 |
|
1731 | 1731 | 00:47:46 It's a way to like do slightly more powerful things in, in CSS and minify it and have stuff
|
1732 | 1732 |
|
|
1880 | 1880 |
|
1881 | 1881 | 00:51:41 There's two, there's two, there's a like matching endpoints for, for every view you might want
|
1882 | 1882 |
|
1883 |
| -00:51:45 to have one to get to return the Jason, the one to render the HTML. |
| 1883 | +00:51:45 to have one to get to return the Json, the one to render the HTML. |
1884 | 1884 |
|
1885 | 1885 | 00:51:49 But you don't write, you don't write them both, right?
|
1886 | 1886 |
|
|
1896 | 1896 |
|
1897 | 1897 | 00:52:10 But one of the really nice things about the, this being the like actual data existing in
|
1898 | 1898 |
|
1899 |
| -00:52:16 Jason is that writing a test, there's quite a lot here, but you'll see most of it is, |
| 1899 | +00:52:16 Json is that writing a test, there's quite a lot here, but you'll see most of it is, |
1900 | 1900 |
|
1901 | 1901 | 00:52:20 is Markdown.
|
1902 | 1902 |
|
1903 | 1903 | 00:52:21 So writing a test that our views contain what we expect them to is massively easier when
|
1904 | 1904 |
|
1905 |
| -00:52:26 we're testing against Jason, which we can convert to Python objects and tests. |
| 1905 | +00:52:26 we're testing against Json, which we can convert to Python objects and tests. |
1906 | 1906 |
|
1907 | 1907 | 00:52:30 Then it would be if we've got an HTML page and we're running a bunch of regexes for,
|
1908 | 1908 |
|
|
1920 | 1920 |
|
1921 | 1921 | 00:52:43 Oh yeah.
|
1922 | 1922 |
|
1923 |
| -00:52:44 Even worse, you end up with that play write and like play write that's image of it and |
| 1923 | +00:52:44 Even worse, you end up with that play wright and like play wright that's image of it and |
1924 | 1924 |
|
1925 | 1925 | 00:52:47 see if the image looks like the image used to look and yeah.
|
1926 | 1926 |
|
|
2032 | 2032 |
|
2033 | 2033 | 00:55:31 build extensions to fast UI to render their widgets.
|
2034 | 2034 |
|
2035 |
| -00:55:33 I think we will probably support the repro HTML that things like pandas data frames already |
| 2035 | +00:55:33 I think we will probably support the repo HTML that things like pandas data frames already |
2036 | 2036 |
|
2037 | 2037 | 00:55:38 returned so that you could, for example, return a data frame and it might not be pretty, but
|
2038 | 2038 |
|
|
2420 | 2420 |
|
2421 | 2421 | 01:03:59 But definitely within internal uses, use it now.
|
2422 | 2422 |
|
2423 |
| -01:04:01 And like I say, Hidantic is building things with it now. |
| 2423 | +01:04:01 And like I say, Pydantic is building things with it now. |
2424 | 2424 |
|
2425 | 2425 | 01:04:05 So look, I mean, I give the open source guarantee that it's relatively safe, which is the guarantee
|
2426 | 2426 |
|
|
2519 | 2519 | 01:06:02 Now get out there and write some Python code.
|
2520 | 2520 |
|
2521 | 2521 | 01:06:05 [MUSIC PLAYING]
|
2522 |
| - |
0 commit comments