forked from mikeckennedy/talk-python-transcripts
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path371-pipx.vtt
More file actions
6033 lines (3017 loc) · 106 KB
/
371-pipx.vtt
File metadata and controls
6033 lines (3017 loc) · 106 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
WEBVTT
00:00:00.000 --> 00:00:01.000
Hey, YouTube.
00:00:01.000 --> 00:00:02.000
Hey, Chad.
00:00:02.000 --> 00:00:03.000
Hey, Michael.
00:00:03.000 --> 00:00:04.000
Hey, great to have you here.
00:00:04.000 --> 00:00:05.000
Super excited to be doing this podcast today.
00:00:05.000 --> 00:00:06.000
Those of you out in the audience, please put some comments and thoughts and ideas into
00:00:06.000 --> 00:00:07.000
the live chat.
00:00:07.000 --> 00:00:08.000
We'll try to make part of the show.
00:00:08.000 --> 00:00:09.000
If you're watching afterwards, well, that's over, but thanks for watching anyway.
00:00:09.000 --> 00:00:10.000
All right, let's kick this off, Chad.
00:00:10.000 --> 00:00:11.000
Chad, welcome to Talk Bythonomy.
00:00:11.000 --> 00:00:12.000
Thanks, Michael.
00:00:12.000 --> 00:00:13.000
That's fantastic.
00:00:13.000 --> 00:00:14.000
You're going to be talking about Python.
00:00:14.000 --> 00:00:15.000
I'm going to be talking about Python.
00:00:15.000 --> 00:00:16.000
I'm going to be talking about Python.
00:00:16.000 --> 00:00:17.000
I'm going to be talking about Python.
00:00:17.000 --> 00:00:18.000
I'm going to be talking about Python.
00:00:18.000 --> 00:00:19.000
I'm going to be talking about Python.
00:00:19.000 --> 00:00:20.000
I'm going to be talking about Python.
00:00:20.000 --> 00:00:21.000
I'm going to be talking about Python.
00:00:21.000 --> 00:00:24.000
Anyway, all right, let's kick this off, Chad.
00:00:24.000 --> 00:00:27.000
Chad, welcome to Talk Python To Me.
00:00:27.000 --> 00:00:27.900
- Thanks, Michael.
00:00:27.900 --> 00:00:31.080
- It's fantastic to have you here.
00:00:31.080 --> 00:00:35.560
I and many listeners are such a fan of PIPX
00:00:35.560 --> 00:00:39.620
and really just love to have that tool around
00:00:39.620 --> 00:00:42.480
to allow us to use Python libraries
00:00:42.480 --> 00:00:44.120
and commands like applications.
00:00:44.120 --> 00:00:45.540
And it's gonna be so fun to talk about.
00:00:45.540 --> 00:00:48.320
And if you're out there and you haven't heard of PIPX,
00:00:48.320 --> 00:00:50.000
you're in for a treat.
00:00:50.000 --> 00:00:52.480
So before we get to that, though, let's start with your story.
00:00:52.480 --> 00:00:55.760
How did you get into programming in Python?
00:00:55.760 --> 00:01:01.960
- So I got into programming back when the internet was kind of like really
00:01:01.960 --> 00:01:06.040
popular with GeoCities, like early web development type stuff.
00:01:06.040 --> 00:01:06.600
So...
00:01:06.600 --> 00:01:11.200
- This is the time when people had like the animated digging Giphy and like a lot
00:01:11.200 --> 00:01:13.240
of sites were still permanently under construction?
00:01:13.240 --> 00:01:14.360
- Yes.
00:01:14.360 --> 00:01:18.160
And flashing text and stuff like that.
00:01:18.160 --> 00:01:19.440
So I thought that was pretty cool.
00:01:19.440 --> 00:01:22.320
I messed around with some Geocities pages.
00:01:22.320 --> 00:01:23.760
I wrote a little bit of JavaScript
00:01:23.760 --> 00:01:26.480
where you can hover over text, and it will change the image
00:01:26.480 --> 00:01:28.200
and stuff like that.
00:01:28.200 --> 00:01:30.480
And I kind of messed around with web pages for a while,
00:01:30.480 --> 00:01:34.360
but I didn't really get too serious with programming
00:01:34.360 --> 00:01:39.880
with web development until later, much later.
00:01:39.880 --> 00:01:43.800
So when I got more into programming was in college.
00:01:43.800 --> 00:01:46.200
I got a degree in aerospace engineering,
00:01:46.200 --> 00:01:48.360
and so we did kind of scientific computing.
00:01:48.360 --> 00:01:51.120
we used MATLAB a lot.
00:01:51.120 --> 00:01:52.960
So I used a lot of MATLAB in college.
00:01:52.960 --> 00:01:56.800
And then in my first job, we did a lot of MATLAB.
00:01:56.800 --> 00:02:00.040
So in the aerospace industry for making airplanes and flight
00:02:00.040 --> 00:02:02.880
control systems, we used MATLAB a lot.
00:02:02.880 --> 00:02:06.440
And so I kind of started hacking on MATLAB
00:02:06.440 --> 00:02:10.080
and making a bunch of programs and automating stuff,
00:02:10.080 --> 00:02:13.240
not really going into other programming languages, which
00:02:13.240 --> 00:02:15.440
were probably better suited for the job.
00:02:15.440 --> 00:02:17.680
I just kind of did everything in MATLAB.
00:02:17.680 --> 00:02:18.180
And--
00:02:18.180 --> 00:02:20.800
>>Victor: Well, but that's the way I think many people--
00:02:20.800 --> 00:02:24.500
most people do it, is they have a set of tools to pick from
00:02:24.500 --> 00:02:26.040
that they know how to work with them.
00:02:26.040 --> 00:02:28.660
And they're like, well, which one of these is going to be best?
00:02:28.660 --> 00:02:31.100
And if you're programming environments in MATLAB,
00:02:31.100 --> 00:02:34.500
then that's not a terrible choice, really.
00:02:34.500 --> 00:02:35.740
>>Chris: Yeah.
00:02:35.740 --> 00:02:38.680
So I got really into programming MATLAB,
00:02:38.680 --> 00:02:40.260
and then eventually ended up at a job
00:02:40.260 --> 00:02:43.180
where I got to start doing a little Python.
00:02:43.180 --> 00:02:44.700
>>Victor: Nice.
00:02:44.700 --> 00:02:45.860
>>Chris: And so that job was--
00:02:45.860 --> 00:02:49.420
What kind of airplanes were you working on?
00:02:49.420 --> 00:02:53.780
So my first job was on the Space Shuttle, which
00:02:53.780 --> 00:02:55.060
has been retired.
00:02:55.060 --> 00:02:56.500
And then I worked for Boeing.
00:02:56.500 --> 00:02:59.700
That's fantastic.
00:02:59.700 --> 00:03:01.660
Yeah, I worked from the 747, 787.
00:03:01.660 --> 00:03:02.580
So I worked for Boeing.
00:03:02.580 --> 00:03:04.580
So Boeing worked on the Space Shuttle,
00:03:04.580 --> 00:03:08.060
as well as, obviously, a bunch of other planes.
00:03:08.060 --> 00:03:11.500
And then none of the Python work was there, though.
00:03:11.500 --> 00:03:14.940
The Python stuff started at a startup
00:03:14.940 --> 00:03:18.100
funded by Google co-founder Larry Page.
00:03:18.100 --> 00:03:20.380
So it was an eVTOL,
00:03:20.380 --> 00:03:23.060
Electric Vertical Takeoff and Landing Plane.
00:03:23.060 --> 00:03:24.240
So it's like a small plane.
00:03:24.240 --> 00:03:25.080
It was a startup.
00:03:25.080 --> 00:03:26.580
It was a small company.
00:03:26.580 --> 00:03:30.340
And we needed like basically some tools to be made.
00:03:30.340 --> 00:03:31.860
And I didn't really know Python,
00:03:31.860 --> 00:03:35.460
but I like to just take on new challenges
00:03:35.460 --> 00:03:36.280
and learn new things.
00:03:36.280 --> 00:03:39.900
So my first experience with Python was with Python 2
00:03:39.900 --> 00:03:41.560
and working on a Django app.
00:03:42.740 --> 00:03:45.620
It was an app to track all the parts and weights
00:03:45.620 --> 00:03:49.500
and moments of inertia of the aircraft.
00:03:49.500 --> 00:03:53.660
And another project was called a protocol compiler.
00:03:53.660 --> 00:04:00.380
So all the C code that ran on the avionics, a lot of it
00:04:00.380 --> 00:04:00.940
was generated.
00:04:00.940 --> 00:04:04.460
A lot of the inter-device communication
00:04:04.460 --> 00:04:06.740
was generated from this common protocol definition.
00:04:06.740 --> 00:04:08.780
And so this was all written in Python.
00:04:08.780 --> 00:04:11.060
So we could generate safety critical C code.
00:04:11.060 --> 00:04:13.780
We could generate documentation about the code.
00:04:13.780 --> 00:04:16.240
We could generate tests where we had like
00:04:16.240 --> 00:04:17.600
hardware in the loop tests.
00:04:17.600 --> 00:04:21.800
And so that was where I started to run into issues
00:04:21.800 --> 00:04:24.980
with challenges with packaging
00:04:24.980 --> 00:04:27.020
and getting dependencies installed on folks' computers
00:04:27.020 --> 00:04:29.200
because if you wanted to build the flight code,
00:04:29.200 --> 00:04:31.700
you needed to have a bunch of packages available.
00:04:31.700 --> 00:04:35.260
- Right, and so, you know,
00:04:35.260 --> 00:04:39.060
you had to have maybe some foundational thing in order,
00:04:39.060 --> 00:04:40.620
some libraries and other things.
00:04:40.620 --> 00:04:43.220
and you probably didn't want to teach necessarily
00:04:43.220 --> 00:04:45.820
see people how to set up Python and virtual environments
00:04:45.820 --> 00:04:47.460
and all that kind of stuff, right?
00:04:47.460 --> 00:04:49.020
Or documentation writers.
00:04:49.020 --> 00:04:50.500
Yeah.
00:04:50.500 --> 00:04:51.660
- Exactly.
00:04:51.660 --> 00:04:53.300
And yeah, it was a small company.
00:04:53.300 --> 00:04:54.960
So there wasn't really a Python expert in house.
00:04:54.960 --> 00:04:57.700
So we kind of made a lot of the mistakes
00:04:57.700 --> 00:05:01.000
and I had to go into the infrastructure side too
00:05:01.000 --> 00:05:01.900
and try to build all that out.
00:05:01.900 --> 00:05:05.740
And so, you know, we started out with,
00:05:05.740 --> 00:05:07.540
I think we started out with pseudo pip install
00:05:07.540 --> 00:05:09.960
and that was how we got our things installed.
00:05:09.960 --> 00:05:12.040
- Mm-hmm, yeah, for sure.
00:05:12.040 --> 00:05:16.020
Well, you talk about this, the small business
00:05:16.020 --> 00:05:19.340
or a small company you're at and sort of bouncing
00:05:19.340 --> 00:05:21.140
off the walls and just figuring it out yourself,
00:05:21.140 --> 00:05:25.540
but you were also at Boeing, which is a non-small company.
00:05:25.540 --> 00:05:28.020
Am I looking in from the outside?
00:05:28.020 --> 00:05:29.140
- Right.
00:05:29.140 --> 00:05:34.140
- I know a lot of people, they definitely dream of
00:05:34.140 --> 00:05:37.620
or look to get hired at these really large companies.
00:05:37.620 --> 00:05:39.800
And yet I feel like there's a huge advantage
00:05:39.800 --> 00:05:42.320
to at least spending a little time in a company
00:05:42.320 --> 00:05:44.000
like this VTOL one you talked about
00:05:44.000 --> 00:05:49.000
where you're taking on a lot of responsibilities
00:05:49.000 --> 00:05:51.760
and you're kind of working together to figure out stuff
00:05:51.760 --> 00:05:54.360
rather than slotting into like a narrow slice
00:05:54.360 --> 00:05:56.400
of what's getting done, what do you think?
00:05:56.400 --> 00:06:00.700
What was your experience in those places?
00:06:00.700 --> 00:06:03.920
- Well, so Boeing did offer opportunities
00:06:03.920 --> 00:06:07.040
to let you kind of like improve processes
00:06:07.040 --> 00:06:08.600
and stuff like that.
00:06:08.600 --> 00:06:12.720
But the scope of what you're working on at a small company,
00:06:12.720 --> 00:06:14.800
trying to build a similar product,
00:06:14.800 --> 00:06:19.320
I mean, you have a smaller team with no like legacy
00:06:19.320 --> 00:06:21.680
or decades of history building stuff.
00:06:21.680 --> 00:06:22.820
You're kind of just inventing it as you go.
00:06:22.820 --> 00:06:25.960
So yeah, there's a ton of stuff to experiment with
00:06:25.960 --> 00:06:28.060
and take on and learn from.
00:06:28.060 --> 00:06:30.760
- Yeah, cool.
00:06:30.760 --> 00:06:32.000
How about now?
00:06:32.000 --> 00:06:34.520
You're at another small company, right?
00:06:34.520 --> 00:06:36.840
- Yeah, I'm at a small company called Meta.
00:06:38.000 --> 00:06:43.120
I work for Reality Labs, and I work on developer infrastructure
00:06:43.120 --> 00:06:44.800
here as well.
00:06:44.800 --> 00:06:49.240
I work on things like language services, debuggers,
00:06:49.240 --> 00:06:52.920
and VS Code, VS Code extensions.
00:06:52.920 --> 00:06:53.680
>> Yeah.
00:06:53.680 --> 00:06:56.560
Do you have any exposure to the Cinder project or any
00:06:56.560 --> 00:07:00.000
of the stuff going on over there?
00:07:00.000 --> 00:07:01.000
>> No, I'm aware of it.
00:07:01.000 --> 00:07:02.120
I think it's super cool.
00:07:02.120 --> 00:07:04.040
But that's an Instagram thing, really.
00:07:04.040 --> 00:07:08.360
And so it's not really something I use day to day.
00:07:08.360 --> 00:07:11.320
>> Well, it looks like it's going to become a Python thing
00:07:11.320 --> 00:07:13.640
in little bits and pieces.
00:07:13.640 --> 00:07:14.720
>> Yeah.
00:07:14.720 --> 00:07:17.240
>> The pieces of it are being pulled over.
00:07:17.240 --> 00:07:20.760
We just talked about PEP 690 and lazy imports.
00:07:20.760 --> 00:07:23.080
And there's a couple of other things people
00:07:23.080 --> 00:07:24.120
are working to move in.
00:07:24.120 --> 00:07:26.840
So not the whole thing, but some of those features
00:07:26.840 --> 00:07:30.600
and improvements will make it to all of us.
00:07:30.600 --> 00:07:33.520
>> Yeah, that's the great thing about Python is if you come up
00:07:33.520 --> 00:07:35.920
with a good idea, the community is very open
00:07:35.920 --> 00:07:39.040
and willing to adopt new ideas.
00:07:39.040 --> 00:07:42.560
The best ideas win and can be continuously improving
00:07:42.560 --> 00:07:43.400
the language.
00:07:43.400 --> 00:07:46.840
- Yeah, that's pretty fantastic.
00:07:46.840 --> 00:07:50.800
So let's start our conversation here
00:07:50.800 --> 00:07:53.960
at a little bit higher level than just PipX.
00:07:53.960 --> 00:07:56.760
And let's just talk about packaging a little bit.
00:07:56.760 --> 00:08:00.400
So let me switch over here to this project.
00:08:00.400 --> 00:08:03.400
So you have over at chadsmith.dev,
00:08:03.400 --> 00:08:05.000
which is a great domain name.
00:08:05.000 --> 00:08:08.560
And I'm impressed with a name like Chad Smith
00:08:08.560 --> 00:08:10.660
that you can get it just straight up as your domain name.
00:08:10.660 --> 00:08:12.780
'Cause as Michael Kennedy,
00:08:12.780 --> 00:08:14.760
all the Irish politicians are all over me.
00:08:14.760 --> 00:08:17.640
Like I gotta go with some crazy variation
00:08:17.640 --> 00:08:19.320
to come up with it.
00:08:19.320 --> 00:08:20.140
But yeah, that's cool.
00:08:20.140 --> 00:08:20.980
That's a great domain name.
00:08:20.980 --> 00:08:23.800
And over there at slash Python dash packaging,
00:08:23.800 --> 00:08:25.860
you've got the big list of Python packaging
00:08:25.860 --> 00:08:27.560
and distribution tools.
00:08:27.560 --> 00:08:28.800
You wanna tell us about this?
00:08:28.800 --> 00:08:30.120
Kind of gives you a high level of like,
00:08:30.120 --> 00:08:32.400
what are the options, right?
00:08:32.400 --> 00:08:35.760
Yeah, so a lot of times, questions
00:08:35.760 --> 00:08:40.160
come up about what tools are out there, which tools do what.
00:08:40.160 --> 00:08:42.440
It's a big world in the packaging,
00:08:42.440 --> 00:08:44.120
in the Python packaging world.
00:08:44.120 --> 00:08:51.520
And I wanted to make something that was kind of non-opinionated
00:08:51.520 --> 00:08:53.880
and just kind of factual, like here's some data,
00:08:53.880 --> 00:08:56.080
here's some information about these.
00:08:56.080 --> 00:08:57.280
You can decide for yourself.
00:08:57.280 --> 00:08:58.780
It's not trying to persuade you to use this.
00:08:58.780 --> 00:09:00.360
It's not like saying, this is my tool.
00:09:00.360 --> 00:09:01.320
This one's the best.
00:09:01.320 --> 00:09:07.160
And this came about from PIPX's documentation,
00:09:07.160 --> 00:09:10.120
where one of the questions on PIPX was, what is it
00:09:10.120 --> 00:09:11.800
and how does it compare to other things?
00:09:11.800 --> 00:09:14.360
So I had a list on the documentation.
00:09:14.360 --> 00:09:15.200
And it kept growing.
00:09:15.200 --> 00:09:17.320
And I was thinking, this could be its own thing,
00:09:17.320 --> 00:09:21.720
because I don't want to make the PIPX documentation too big.
00:09:21.720 --> 00:09:23.560
Make it a survey of all the other things
00:09:23.560 --> 00:09:27.320
that it competes with or could have been put alongside, right?
00:09:27.320 --> 00:09:28.800
Yeah.
00:09:28.800 --> 00:09:32.720
So this is an interactive web app table type thing.
00:09:32.720 --> 00:09:37.520
And it pulls data from GitHub's GraphQL API.
00:09:37.520 --> 00:09:43.160
And it lets you select different features and filter on those.
00:09:43.160 --> 00:09:47.800
You can compare and group tools together.
00:09:47.800 --> 00:09:50.320
So on the top left, you'll see there's
00:09:50.320 --> 00:09:54.800
a bunch of little blue words with blue backgrounds.
00:09:54.800 --> 00:09:56.600
And you can click on those.
00:09:56.600 --> 00:09:59.640
And if you click on them, then it'll filter down the table.
00:09:59.640 --> 00:10:02.920
So if you want to find tools that can install and publish,
00:10:02.920 --> 00:10:09.800
you can click on Install CLI Apps and also Publish Packages.
00:10:09.800 --> 00:10:10.840
>> Nice.
00:10:10.840 --> 00:10:12.600
Look at that.
00:10:12.600 --> 00:10:13.720
This is a great little UI.
00:10:13.720 --> 00:10:15.320
Reminds me of an app I wrote once,
00:10:15.320 --> 00:10:18.120
and I'm having nice nostalgia here.
00:10:18.120 --> 00:10:18.960
It's cool.
00:10:18.960 --> 00:10:23.720
So you can click on these little categories or filters
00:10:23.720 --> 00:10:25.480
and turn multiple ones on and off.
00:10:25.480 --> 00:10:27.840
So if I want virtual environment management,
00:10:27.840 --> 00:10:29.080
I can install libraries.