Solve problems by embedding Python code in a C programs, SQL methods, Python sockets. This book uses rudimentary mathematics and basic programming to create practical Python applications for embedding.
You will:
- Review basic Python and C coding
- Understand the methods of embedding Python code within a C program
- Create typical programs in Python and C using SDK
- Work with socket applications in Python
Autorentext
Philip Joyce has 28 years experience as a software engineer working on control of steel production, control of oil refineries, communications software (pre-Internet), office products (server software), and computer control of airports. Programming in Assembler, COBOL, Coral66, C, and C++. Mentor to new graduates in the company. He also has a MSc in computational physics (including augmented matrix techniques and Monte Carlo techniques using Fortran) - Salford University 1996. Chartered scientist, chartered physicist, member of the Institute of Physics (member of the higher education group).
Inhalt
Chapter 1 :Review of C and Python
Chapter goal: Load up all of the software eg sqlite3, C, Python etc
1.1 : Python
a.Defining different types of variables
b.Reading in data from command line
c.Arithmetic operations
d.Switches (user-written)
e.If-then-else
f.Arrays
g.For loops
h.Strings
i.Math functions
j.User-written functions
k.Dictionaries
l.File use
m.Use of Matplotlib
n.Create typical programs in Python using SDK
1.2 : C
a.Read and write charactersb.Arithmetic operations
c.Switches
d.If-then-else
e.Arrays
f.For loops and Do loops
g.Strings
h.Data arrays
i.Structures
j.Math functions
k.User-written functions
l.File use
m.Create typical programs in C using SDK
Exercises
Chapter 2: SQL in C
Chapter goal: Load up all of the software eg sqlite3, C compiler, Python etc. Demonstrate using SQL in C by writing separate C programs to:-
a)create a table
b)insert a row of data into the table
c)select a row or rows of data in the table
d)amend a row of data in the table
e)delete a row of data from the table
ExercisesChapter 3 :SQL in Python
Chapter goal: Load up appropriate eg sqlite3, Python etc. Demonstrate using SQL in Python by writing separate Python programs to:-
a)create a table
b)insert a row of data into the table
c)select a row or rows of data in the table
d)amend a row of data in the table
e)delete a row of data from the table
Exercises
Chapter 4 : Embedded Python in C
a.Introduction to why you might want to embed python in c
b.Basic example hello
c.Plot a graph with preset points in python program
d.Plot a graph with user-entered points in python
e.Print from a dictionary
ExercisesChapter 5: Sockets in Python
a.Show basic server-client programs
b.Show basic threaded programs
c.Show basic chat programs
Exercises
Appendices
C Programming Code Guide
Python Programming Code Guide
Titel
C and Python Applications
Untertitel
Embedding Python Code in C Programs, SQL Methods, and Python Sockets
Autor
EAN
9781484277744
Format
E-Book (pdf)
Hersteller
Veröffentlichung
20.11.2021
Digitaler Kopierschutz
Wasserzeichen
Dateigrösse
3.21 MB
Anzahl Seiten
233
Unerwartete Verzögerung
Ups, ein Fehler ist aufgetreten. Bitte versuchen Sie es später noch einmal.