[301] JSON. Tyler Caraza-Harter
|
|
- Maximilian Barton
- 5 years ago
- Views:
Transcription
1 [301] JSON Tyler Caraza-Harter
2 Learning Objectives Today JSON differences with Python syntax creating JSON files reading JSON files Read: Sweigart Ch 14 JSON and APIs to the end
3 Python Data Structures and File Formats Python File [ [ name, x, y ], [ alice, 100, 150], [ bob, -10, 80] ]? list of lists
4 Python Data Structures and File Formats Python File [ [ name, x, y ], [ alice, 100, 150], [ bob, -10, 80] ] list of lists name,x,y alice,100,150 bob,-10,80 CSV file We can use CSV files to store data we would want in lists of lists
5 Python Data Structures and File Formats Python File [ [ name, x, y ], [ alice, 100, 150], [ bob, -10, 80] ] list of lists alice : scores : [10,20,19], bob : scores : [15,23,17,15] dict of dicts name,x,y alice,100,150 bob,-10,80 CSV file?
6 Python Data Structures and File Formats Python File [ [ name, x, y ], [ alice, 100, 150], [ bob, -10, 80] ] list of lists name,x,y alice,100,150 bob,-10,80 CSV file alice : scores : [10,20,19], bob : scores : [15,23,17,15] dict of dicts alice : scores : [10,20,19], bob : scores : [15,23,17,15] JSON file
7 Python Data Structures and File Formats Python File JSON files look almost [ identical to Python code [ name, x, y ], for data structures! [ alice, 100, 150], [ bob, -10, 80] ] list of lists name,x,y alice,100,150 bob,-10,80 CSV file alice : scores : [10,20,19], bob : scores : [15,23,17,15] dict of dicts alice : scores : [10,20,19], bob : scores : [15,23,17,15] JSON file
8 Python Data Structures and File Formats Python File JSON files look almost [ identical to Python code [ name, x, y ], for data structures! [ alice, 100, 150], [ bob, -10, 80] ] list of lists name,x,y alice,100,150 bob,-10,80 CSV file alice : scores : [10,20,19], bob : scores : [15,23,17,15] dict of dicts dicts use curly braces alice : scores : [10,20,19], bob : scores : [15,23,17,15] JSON file
9 Python Data Structures and File Formats Python File JSON files look almost [ identical to Python code [ name, x, y ], for data structures! [ alice, 100, 150], [ bob, -10, 80] ] list of lists keys are separated from values with a colon alice : scores : [10,20,19], bob : scores : [15,23,17,15] dict of dicts name,x,y alice,100,150 bob,-10,80 CSV file alice : scores : [10,20,19], bob : scores : [15,23,17,15] JSON file
10 Python Data Structures and File Formats Python File JSON files look almost [ identical to Python code [ name, x, y ], for data structures! [ alice, 100, 150], [ bob, -10, 80] ] list of lists name,x,y alice,100,150 bob,-10,80 CSV file alice : scores : [10,20,19], bob : scores : [15,23,17,15] dict of dicts lists use square brackets alice : scores : [10,20,19], bob : scores : [15,23,17,15] JSON file
11 Python Data Structures and File Formats Python File JSON files look almost [ identical to Python code [ name, x, y ], for data structures! [ alice, 100, 150], [ bob, -10, 80] ] list of lists name,x,y alice,100,150 bob,-10,80 CSV file alice : scores : [10,20,19], bob : scores : [15,23,17,15] dict of dicts strings are in quotes alice : scores : [10,20,19], bob : scores : [15,23,17,15] JSON file
12 Python Data Structures and File Formats Python File JSON files look almost [ identical to Python code [ name, x, y ], for data structures! [ alice, 100, 150], [ bob, -10, 80] ] list of lists name,x,y alice,100,150 bob,-10,80 CSV file alice : scores : [10,20,19], bob : scores : [15,23,17,15] dict of dicts integers look like integers alice : scores : [10,20,19], bob : scores : [15,23,17,15] JSON file
13 JSON Stands for JavaScript Object Notation JavaScript is a language for web development JSON was developed as a way for JavaScript programs to store/ share data JavaScript is similar to Python, which is why JSON looks like Python code
14 JSON Stands for JavaScript Object Notation JavaScript is a language for web development JSON was developed as a way for JavaScript programs to store/ share data JavaScript is similar to Python, which is why JSON looks like Python code Minor JavaScript vs. Python differences entail gotchas: Python JSON Booleans True, False true, false No value None null Quotes Single ( ) or double ( ) Only double ( ) Commas Extra allowed: [1,2,] No extra: [1,2] Keys Any type: 1: one Str only: 1 : one
15 Reading JSON Files JSON file saved somewhere alice : 10, bob : 12, cindy : 15
16 Reading JSON Files Python Program Parsing Code JSON file saved somewhere alice : 10, bob : 12, cindy : 15
17 Reading JSON Files Python Program dict alice :10, bob :12, cindy :15 Parsing Code JSON file saved somewhere alice : 10, bob : 12, cindy : 15
18 Reading JSON Files Python Program Analysis Code data[ cindy ] 15 dict alice :10, bob :12, cindy :15 Parsing Code JSON file saved somewhere alice : 10, bob : 12, cindy : 15
19 Reading JSON Files Python Program Analysis Code data[ cindy ] 15 dict alice :10, bob :12, cindy :15 Parsing Code JSON file saved somewhere alice : 10, bob : 12, cindy : 15 What does this look like?
20 Reading JSON Files import json def read_json(path): with open(path) as f: return json.load(f) dict Python Program Analysis Code data[ cindy ] 15 alice :10, bob :12, cindy :15 Parsing Code JSON file saved somewhere alice : 10, bob : 12, cindy : 15 What does this look like?
21 Reading JSON Files import json def read_json(path): with open(path) as f: return json.load(f) dict Python Program Analysis Code data[ cindy ] 15 alice :10, bob :12, cindy :15 what about writing? Parsing Code JSON file saved somewhere alice : 10, bob : 12, cindy : 15 What does this look like?
22 Writing JSON Files Python Program Code dict
23 Writing JSON Files Python Program Code data[ cindy ] = 15 dict cindy : 15
24 Writing JSON Files Python Program Code data[ cindy ] = 15 dict cindy : 15 Serialization Code
25 Writing JSON Files Python Program Code data[ cindy ] = 15 dict cindy : 15 Serialization Code JSON file saved somewhere cindy : 15
26 Writing JSON Files Python Program Code data[ cindy ] = 15 dict cindy : 15 Serialization Code What does this look like? JSON file saved somewhere cindy : 15
27 Writing JSON Files Python Program Code data[ cindy ] = 15 dict cindy : 15 Serialization Code What does this look like? JSON file saved somewhere cindy : 15
28 Writing JSON Files Python Program Code data[ cindy ] = 15 import json dict def write_json(path, data): with open(path, 'w') as f: return json.dump(data, f, indent=2) cindy : 15 Serialization Code What does this look like? JSON file saved somewhere cindy : 15
29 Demo: Scores over Time Goal: record scores (save across runs) and print average Input: A name and a score to record Output: Running average for that person Example: prompt> python record.py alice 10 Alice Avg: 10 prompt> python record.py alice 20 Alice Avg: 15 prompt> python record.py bob 13 Bob Avg: 13
So, if you receive data from a server, in JSON format, you can use it like any other JavaScript object.
What is JSON? JSON stands for JavaScript Object Notation JSON is a lightweight data-interchange format JSON is "self-describing" and easy to understand JSON is language independent * JSON uses JavaScript
More informationKyle Rainville Littleton Coin Company
Kyle Rainville Littleton Coin Company What is JSON? Javascript Object Notation (a subset of) Data Interchange Format Provides a way for communication between platforms & languages Derived from Javascript
More informationCSC Web Technologies, Spring Web Data Exchange Formats
CSC 342 - Web Technologies, Spring 2017 Web Data Exchange Formats Web Data Exchange Data exchange is the process of transforming structured data from one format to another to facilitate data sharing between
More informationDecision Making in C
Decision Making in C Decision making structures require that the programmer specify one or more conditions to be evaluated or tested by the program, along with a statement or statements to be executed
More information[301] Objects/References. Tyler Caraza-Harter
[301] Objects/References Tyler Caraza-Harter Learning Objectives Today More data types tuple (immutable list) custom types: creating objects from namedtuple and recordclass References Motivation is vs
More informationAssigns a number to 110,000 letters/glyphs U+0041 is an A U+0062 is an a. U+00A9 is a copyright symbol U+0F03 is an
Unicode Unicode Assigns a number to 110,000 letters/glyphs U+0041 is an A U+0062 is an a UTF U+00A9 is a copyright symbol U+0F03 is an Universal Character Set Transformation Format describes how zeroes
More informationCSE 115. Introduction to Computer Science I
CSE 115 Introduction to Computer Science I Road map Review HTTP Web API's JSON in Python Examples Python Web Server import bottle @bottle.route("/") def any_name(): response = "" response
More informationJSON - Overview JSon Terminology
Announcements Introduction to Database Systems CSE 414 Lecture 12: Json and SQL++ Office hours changes this week Check schedule HW 4 due next Tuesday Start early WQ 4 due tomorrow 1 2 JSON - Overview JSon
More informationThis tutorial will help you understand JSON and its use within various programming languages such as PHP, PERL, Python, Ruby, Java, etc.
About the Tutorial JSON or JavaScript Object Notation is a lightweight text-based open standard designed for human-readable data interchange. The JSON format was originally specified by Douglas Crockford,
More informationIntroduction to JSON. Roger Lacroix MQ Technical Conference v
Introduction to JSON Roger Lacroix roger.lacroix@capitalware.com http://www.capitalware.com What is JSON? JSON: JavaScript Object Notation. JSON is a simple, text-based way to store and transmit structured
More informationProcessing XML and JSON in Python
Processing XML and JSON in Python Zdeněk Žabokrtský, Rudolf Rosa Institute of Formal and Applied Linguistics Charles University, Prague NPFL092 Technology for Natural Language Processing Zdeněk Žabokrtský,
More informationGrading for Assignment #1
Grading for Assignment #1-4 -35 Out of 100 points points off for not following directions Name in wrong place Wrong dimensions in image or html no name, weird links Linking to whatever page had a picture
More informationCSE 344 APRIL 16 TH SEMI-STRUCTURED DATA
CSE 344 APRIL 16 TH SEMI-STRUCTURED DATA ADMINISTRATIVE MINUTIAE HW3 due Wednesday OQ4 due Wednesday HW4 out Wednesday (Datalog) Exam May 9th 9:30-10:20 WHERE WE ARE So far we have studied the relational
More informationLesson 5: Introduction to Content Matchers
20 Lesson 5: Introduction to Content Matchers Content matchers (or simply matchers) provide a mechanism to specify which messages a subscribing client program is interested in receiving. Message interest
More informationKey Differences Between Python and Java
Python Python supports many (but not all) aspects of object-oriented programming; but it is possible to write a Python program without making any use of OO concepts. Python is designed to be used interpretively.
More informationLevel 3 Computing Year 2 Lecturer: Phil Smith
Level 3 Computing Year 2 Lecturer: Phil Smith Previously We learnt what a computer program does. What a procedural program does. What a procedure is. We had a first look at IDLE. Now Learning Outcomes
More informationCSC 337. JavaScript Object Notation (JSON) Rick Mercer
CSC 337 JavaScript Object Notation (JSON) Rick Mercer Why JSON over XML? JSON was built to know JS JSON JavaScript Object Notation Data-interchange format Lightweight Replacement for XML It's just a string
More information10/18/2017. Announcements. NoSQL Motivation. NoSQL. Serverless Architecture. What is the Problem? Database Systems CSE 414
Announcements Database Systems CSE 414 Lecture 11: NoSQL & JSON (mostly not in textbook only Ch 11.1) HW5 will be posted on Friday and due on Nov. 14, 11pm [No Web Quiz 5] Today s lecture: NoSQL & JSON
More informationBDS Query. JSON Query Syntax
BDS Doc Page 1 BDS Query 23 сентября 2015 г. 17:08 Purpose This document describes how to formulate queries against private and public data in the Biogeochemistry Data System (BDS): First through the User
More informationSequence Types FEB
Sequence Types FEB 23-25 2015 What we have not learned so far How to store, organize, and access large amounts of data? Examples: Read a sequence of million numbers and output these in sorted order. Read
More informationPYTHON FOR KIDS A Pl ayfu l I ntrodu ctio n to Prog r am m i ng J a s o n R. B r i g g s
PYTHON FO R K I D S A P l ay f u l I n t r o d u c t i o n to P r o g r a m m i n g Jason R. Briggs Index Symbols and Numbers + (addition operator), 17 \ (backslash) to separate lines of code, 235 in strings,
More informationJSON as an XML Alternative. JSON is a light-weight alternative to XML for datainterchange
JSON The Fat-Free Alternative to XML { Lecture : 27, Course : CSC375, Days : TTh", Instructor : Haidar Harmanani } JSON as an XML Alternative JSON is a light-weight alternative to XML for datainterchange
More informationJSON is a light-weight alternative to XML for data-interchange JSON = JavaScript Object Notation
JSON The Fat-Free Alternative to XML { Lecture : 27, Course : CSC375, Days : TTh", Instructor : Haidar Harmanani } Why JSON? JSON is a light-weight alternative to XML for data-interchange JSON = JavaScript
More informationCS 301: Recursion. The Art of Self Reference. Tyler Caraza-Harter
CS 301: Recursion The Art of Self Reference Tyler Caraza-Harter Goal: use self-reference is a meaningful way Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's
More informationBEFORE CLASS. If you haven t already installed the Firebug extension for Firefox, download it now from
BEFORE CLASS If you haven t already installed the Firebug extension for Firefox, download it now from http://getfirebug.com. If you don t already have the Firebug extension for Firefox, Safari, or Google
More informationIntroduction to Bioinformatics
Introduction to Bioinformatics Variables, Data Types, Data Structures, Control Structures Janyl Jumadinova February 3, 2016 Data Type Data types are the basic unit of information storage. Instances of
More informationJava Bytecode (binary file)
Java is Compiled Unlike Python, which is an interpreted langauge, Java code is compiled. In Java, a compiler reads in a Java source file (the code that we write), and it translates that code into bytecode.
More informationThe basic format structure of the HTTP request / response messages are similar and consist of the following:
LEXICON DD8P Control Protocol documentation OVERVIEW The control / monitoring of the DD8P device is done over TCP using the HTTP protocol to send / receive JSON packets. This protocol is primarily implemented
More informationPython I. Some material adapted from Upenn cmpe391 slides and other sources
Python I Some material adapted from Upenn cmpe391 slides and other sources Overview Names & Assignment Data types Sequences types: Lists, Tuples, and Strings Mutability Understanding Reference Semantics
More informationCS 112 Introduction to Computing II. Wayne Snyder Computer Science Department Boston University
CS 112 Introduction to Computing II Wayne Snyder Department Boston University Today: Java expressions and operators concluded Java Statements: Conditionals: if/then, if/then/else Loops: while, for Next
More informationPYTHON DATA SCIENCE TOOLBOX II. List comprehensions
PYTHON DATA SCIENCE TOOLBOX II List comprehensions Populate a list with a for loop In [1]: nums = [12, 8, 21, 3, 16] In [2]: new_nums = [] In [3]: for num in nums:...: new_nums.append(num + 1) In [4]:
More informationPackaging Data for the Web
Packaging Data for the Web EN 605.481 Principles of Enterprise Web Development Overview Both XML and JSON can be used to pass data between remote applications, clients and servers, etc. XML Usually heavier
More informationExpressions and Variables
Expressions and Variables Expressions print(expression) An expression is evaluated to give a value. For example: 2 + 9-6 Evaluates to: 5 Data Types Integers 1, 2, 3, 42, 100, -5 Floating points 2.5, 7.0,
More information/ Introduction to XML
Introduction to XML XML stands for Extensible Markup Language. It is a text-based markup language derived from Standard Generalized Markup Language (SGML). XML tags identify the data and are used to store
More informationSTATS 507 Data Analysis in Python. Lecture 2: Functions, Conditionals, Recursion and Iteration
STATS 507 Data Analysis in Python Lecture 2: Functions, Conditionals, Recursion and Iteration Functions in Python We ve already seen examples of functions: e.g., type()and print() Function calls take the
More informationCS 234 Python Review Part 2
CS 234 Python Review Part 2 Recap import function: define, return boolean, conditional, branching loop: for, range, while file: open, close, readlines string: split Classes Define blueprint for a custom
More informationPrivacy and Security in Online Social Networks Department of Computer Science and Engineering Indian Institute of Technology, Madras
Privacy and Security in Online Social Networks Department of Computer Science and Engineering Indian Institute of Technology, Madras Lecture 08 Tutorial 2, Part 2, Facebook API (Refer Slide Time: 00:12)
More informationQUark Language Reference Manual
QUark Language Reference Manual Daria Jung (djj2115), Jamis Johnson (jmj2180), Jim Fan (lf2422), Parthiban Loganathan (pl2487) Introduction This is the reference manual for QUark, a high level language
More informationBTE2313. Chapter 2: Introduction to C++ Programming
For updated version, please click on http://ocw.ump.edu.my BTE2313 Chapter 2: Introduction to C++ Programming by Sulastri Abdul Manap Faculty of Engineering Technology sulastri@ump.edu.my Objectives In
More information5/1/17. Announcements. NoSQL Motivation. NoSQL. Serverless Architecture. What is the Problem? Database Systems CSE 414
Announcements Database Systems CSE 414 Lecture 15: NoSQL & JSON (mostly not in textbook only Ch 11.1) 1 Homework 4 due tomorrow night [No Web Quiz 5] Midterm grading hopefully finished tonight post online
More informationIntroduction to Python. Fang (Cherry) Liu Ph.D. Scien5fic Compu5ng Consultant PACE GATECH
Introduction to Python Ph.D. Scien5fic Compu5ng Consultant PACE GATECH Things Covered What is Python? How to access Python environment? Fundamental elements in Python Variables (assignment, comparison,
More informationJavaScript Lecture 1
JavaScript Lecture 1 Waterford Institute of Technology May 17, 2016 John Fitzgerald Waterford Institute of Technology, JavaScriptLecture 1 1/31 Javascript Extent of this course A condensed basic JavaScript
More information5/2/16. Announcements. NoSQL Motivation. The New Hipster: NoSQL. Serverless. What is the Problem? Database Systems CSE 414
Announcements Database Systems CSE 414 Lecture 16: NoSQL and JSon Current assignments: Homework 4 due tonight Web Quiz 6 due next Wednesday [There is no Web Quiz 5 Today s lecture: JSon The book covers
More informationIterators & Generators
Iterators & Generators Sequences A sequence is something that you can: Index into Get the length of What are some examples of sequences? Sequences We ve been working with sequences all semester! Examples:
More informationMEAP Edition Manning Early Access Program Get Programming with Java Version 1
MEAP Edition Manning Early Access Program Get Programming with Java Version 1 Copyright 2018 Manning Publications For more information on this and other Manning titles go to www.manning.com welcome First,
More informationWebservices, Proxies, Rest, File Uploads, Security. CS174. Chris Pollett. Nov. 3, 2008.
Webservices, Proxies, Rest, File Uploads, Security. CS174. Chris Pollett. Nov. 3, 2008. Outline. Web Services. REST. JSON Example. More PHP. Web Services. One important use of AJAX and PHP is to allow
More informationDatabase Systems CSE 414
Database Systems CSE 414 Lecture 16: NoSQL and JSon CSE 414 - Spring 2016 1 Announcements Current assignments: Homework 4 due tonight Web Quiz 6 due next Wednesday [There is no Web Quiz 5] Today s lecture:
More informationGIS 4653/5653: Spatial Programming and GIS. More Python: Statements, Types, Functions, Modules, Classes
GIS 4653/5653: Spatial Programming and GIS More Python: Statements, Types, Functions, Modules, Classes Statement Syntax The if-elif-else statement Indentation and and colons are important Parentheses and
More informationAnnouncements. Two Classes of Database Applications. Class Overview. NoSQL Motivation. RDBMS Review: Serverless
Introduction to Database Systems CSE 414 Lecture 11: NoSQL 1 HW 3 due Friday Announcements Upload data with DataGrip editor see message board Azure timeout for question 5: Try DataGrip or SQLite HW 2 Grades
More informationUser Interaction: XML and JSON
User Interaction: XML and JSON Assoc. Professor Donald J. Patterson INF 133 Fall 2012 1 XML w3schools.com bookstore book book book title author year price title author year price title author year price
More informationlina Documentation Release Author
lina Documentation Release 1.0.4 Author November 24, 2014 Contents 1 Overview 3 1.1 API reference............................................... 4 2 Indices and tables 11 Python Module Index 13 i ii Lina
More informationOptymyse ODBC Connector for Optymyse 5.1.x
Optymyse ODBC Connector for Optymyse 5.1.x Contents 1 Introduction 2 2 Installation 3 3 Configuration 5 3.1 Connector Settings 6 3.2 Feed Settings 7 3.3 Field Settings 8 3.4 Sample Configuration 11 4 Other
More informationage = 23 age = age + 1 data types Integers Floating-point numbers Strings Booleans loosely typed age = In my 20s
Intro to Python Python Getting increasingly more common Designed to have intuitive and lightweight syntax In this class, we will be using Python 3.x Python 2.x is still very popular, and the differences
More informationClass Overview. Two Classes of Database Applications. NoSQL Motivation. RDBMS Review: Client-Server. RDBMS Review: Serverless
Introduction to Database Systems CSE 414 Lecture 12: NoSQL 1 Class Overview Unit 1: Intro Unit 2: Relational Data Models and Query Languages Unit 3: Non-relational data NoSQL Json SQL++ Unit 4: RDMBS internals
More informationBinary Encodings for JavaScript Object Notation: JSON-B, JSON-C, JSON-D
Internet Engineering Task Force P. Hallam-Baker Internet-Draft Comodo Group Inc. Intended status: Standards Track June 11, 2013 Expires: December 13, 2013 Binary Encodings for JavaScript Object Notation:
More informationWorksheet 6: Basic Methods Methods The Format Method Formatting Floats Formatting Different Types Formatting Keywords
Worksheet 1: Introductory Exercises Turtle Programming Calculations The Print Function Comments Syntax Semantics Strings Concatenation Quotation Marks Types Variables Restrictions on Variable Names Long
More informationTypes, lists & functions
Week 2 Types, lists & functions Data types If you want to write a program that allows the user to input something, you can use the command input: name = input (" What is your name? ") print (" Hello "+
More informationIBM Informix xC2 Enhancements IBM Corporation
IBM Informix 12.10.xC2 Enhancements 2013 IBM Corporation Acknowledgements and Disclaimers Availability. References in this presentation to IBM products, programs, or services do not imply that they will
More informationDSC 201: Data Analysis & Visualization
DSC 201: Data Analysis & Visualization Classes Dr. David Koop Tuple, List, Dictionary, or Set? [1,2,"abc"] 2 Tuple, List, Dictionary, or Set? {"a", 1, 2} 3 Tuple, List, Dictionary, or Set? {} 4 Tuple,
More informationJSON Support for Junos OS
JSON Support for Junos OS 1 Introduction: Java Script Object Notation alias JSON a light weight data exchange format is being extensively used for data exchange between web application and servers. With
More informationPython and Bioinformatics. Pierre Parutto
Python and Bioinformatics Pierre Parutto October 9, 2016 Contents 1 Common Data Structures 2 1.1 Sequences............................... 2 1.1.1 Manipulating Sequences................... 2 1.1.2 String.............................
More informationAjax Ajax Ajax = Asynchronous JavaScript and XML Using a set of methods built in to JavaScript to transfer data between the browser and a server in the background Reduces the amount of data that must be
More informationECMA-404. The JSON Data Interchange Syntax. 2 nd Edition / December Reference number ECMA-123:2009
ECMA-404 2 nd Edition / December 2017 The JSON Data Interchange Syntax Reference number ECMA-123:2009 Ecma International 2009 COPYRIGHT PROTECTED DOCUMENT Ecma International 2017 Contents Page 1 Scope...
More informationWorking with JavaScript
Working with JavaScript Creating a Programmable Web Page for North Pole Novelties 1 Objectives Introducing JavaScript Inserting JavaScript into a Web Page File Writing Output to the Web Page 2 Objectives
More informationJME Language Reference Manual
JME Language Reference Manual 1 Introduction JME (pronounced jay+me) is a lightweight language that allows programmers to easily perform statistic computations on tabular data as part of data analysis.
More informationARTIFICIAL INTELLIGENCE AND PYTHON
ARTIFICIAL INTELLIGENCE AND PYTHON DAY 1 STANLEY LIANG, LASSONDE SCHOOL OF ENGINEERING, YORK UNIVERSITY WHAT IS PYTHON An interpreted high-level programming language for general-purpose programming. Python
More informationWMTOOL. Technical Specification. Date: 10/2012 Version: APITechSpecv1.4CRO0512 WMTOOL 1. Technical Specification
WMTOOL Date: 10/2012 Version: APITechSpecv1.4CRO0512 WMTOOL 1 Contents 1. WMTOOL Overview 4 2. How to run WMTOOL 5 3. Available Commands 6 4. Making shorter commands 7 5 Importing Jobs 8 5.1 CSV Files
More informationCS 112 Introduction to Computing II. Wayne Snyder Computer Science Department Boston University
CS 112 Introduction to Computing II Wayne Snyder Department Boston University Today: Java basics: Compilation vs Interpretation Program structure Statements Values Variables Types Operators and Expressions
More informationPython - Variable Types. John R. Woodward
Python - Variable Types John R. Woodward Variables 1. Variables are nothing but named reserved memory locations to store values. This means that when you create a variable you reserve some space in memory.
More informationPython Review IPRE
Python Review 2 Jay Summet 2005-12-31 IPRE Outline Compound Data Types: Strings, Tuples, Lists & Dictionaries Immutable types: Strings Tuples Accessing Elements Cloning Slices Mutable Types: Lists Dictionaries
More informationBasic Syntax - First Program 1
Python Basic Syntax Basic Syntax - First Program 1 All python files will have extension.py put the following source code in a test.py file. print "Hello, Python!";#hello world program run this program
More informationBasic Scripting, Syntax, and Data Types in Python. Mteor 227 Fall 2017
Basic Scripting, Syntax, and Data Types in Python Mteor 227 Fall 2017 Basic Shell Scripting/Programming with Python Shell: a user interface for access to an operating system s services. The outer layer
More informationIntro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming
Intro to Programming Unit 7 Intro to Programming 1 What is Programming? 1. Programming Languages 2. Markup vs. Programming 1. Introduction 2. Print Statement 3. Strings 4. Types and Values 5. Math Externals
More informationPYTHON FOR MEDICAL PHYSICISTS. Radiation Oncology Medical Physics Cancer Care Services, Royal Brisbane & Women s Hospital
PYTHON FOR MEDICAL PHYSICISTS Radiation Oncology Medical Physics Cancer Care Services, Royal Brisbane & Women s Hospital TUTORIAL 1: INTRODUCTION Thursday 1 st October, 2015 AGENDA 1. Reference list 2.
More informationComputer Science & Engineering 120 Learning to Code
Computer Science & Engineering 120 Learning to Code Introduction to Data Christopher M. Bourke cbourke@cse.unl.edu Part I: Working With Data Topic Overview Data Data Formats Data Operations Introduction
More informationChapter 3: Arrays and More C Functionality
Chapter 3: Arrays and More C Functionality Objectives: (a) Describe how an array is stored in memory. (b) Define a string, and describe how strings are stored. (c) Describe the implications of reading
More informationString Computation Program
String Computation Program Project Proposal Scott Pender scp2135@columbia.edu COMS4115 Fall 2012 9/26/2012 Project proposal for the COMS4115 term project: Explain what problem the language solves & how
More informationQuick housekeeping Last Two Homeworks Extra Credit for demoing project prototypes Reminder about Project Deadlines/specifics Class on April 12th Resul
CIS192 Python Programming Web Frameworks and Web APIs Harry Smith University of Pennsylvania March 29, 2016 Harry Smith (University of Pennsylvania) CIS 192 March 29, 2016 1 / 25 Quick housekeeping Last
More informationCSC Discrete Math I, Spring Sets
CSC 125 - Discrete Math I, Spring 2017 Sets Sets A set is well-defined, unordered collection of objects The objects in a set are called the elements, or members, of the set A set is said to contain its
More informationPVB CONTACT FORM 7 CALCULATOR PRO DOCUMENTATION
PVB CONTACT FORM 7 CALCULATOR PRO 1.4.1 DOCUMENTATION CONTENTS Contents... 1 1. Installation... 1 2. Form tags... 2 2.1. Calculated value... 2 2.1.1. Example... 2 2.1.2. Formula... 2 2.1.2.1. Note on checkbox
More informationData Collections. Welcome to the Fourth Dimension (and beyond) Martin Phillips Ladybridge Systems Ltd. International Spectrum Conference, 2014
Data Collections Welcome to the Fourth Dimension (and beyond) International Spectrum Conference, 2014 Martin Phillips Ladybridge Systems Ltd Multivalue Are we at its limits? We all understand the power
More informationIntroduction to Azure DocumentDB. Jeff Renz, BI Architect RevGen Partners
Introduction to Azure DocumentDB Jeff Renz, BI Architect RevGen Partners Thank You Presenting Sponsors Gain insights through familiar tools while balancing monitoring and managing user created content
More informationCOMS 469: Interactive Media II
COMS 469: Interactive Media II Agenda Review Data Types & Variables Decisions, Loops, and Functions Review gunkelweb.com/coms469 Review Basic Terminology Computer Languages Interpreted vs. Compiled Client
More informationCollections. Lists, Tuples, Sets, Dictionaries
Collections Lists, Tuples, Sets, Dictionaries Homework notes Homework 1 grades on canvas People mostly lost points for not reading the document carefully Didn t play again Didn t use Y/N for playing again
More informationMr. Monroe s Guide to Mastering Java Syntax
Mr. Monroe s Guide to Mastering Java Syntax Getting Started with Java 1. Download and install the official JDK (Java Development Kit). 2. Download an IDE (Integrated Development Environment), like BlueJ.
More informationPart I. Wei Tianwen. A Brief Introduction to Python. Part I. Wei Tianwen. Basics. Object Oriented Programming
2017 Table of contents 1 2 Integers and floats Integer int and float float are elementary numeric types in. integer >>> a=1 >>> a 1 >>> type (a) Integers and floats Integer int and float
More informationData Formats and APIs
Data Formats and APIs Mike Carey mjcarey@ics.uci.edu 0 Announcements Keep watching the course wiki page (especially its attachments): https://grape.ics.uci.edu/wiki/asterix/wiki/stats170ab-2018 Ditto for
More informationCode Editor. The Code Editor is made up of the following areas: Toolbar. Editable Area Output Panel Status Bar Outline. Toolbar
Code Editor Wakanda s Code Editor is a powerful editor where you can write your JavaScript code for events and functions in datastore classes, attributes, Pages, widgets, and much more. Besides JavaScript,
More informationPYTHON. Varun Jain & Senior Software Engineer. Pratap, Mysore Narasimha Raju & TEST AUTOMATION ARCHITECT. CenturyLink Technologies India PVT LTD
PYTHON Varun Jain & Senior Software Engineer Pratap, Mysore Narasimha Raju & TEST AUTOMATION ARCHITECT CenturyLink Technologies India PVT LTD 1 About Python Python is a general-purpose interpreted, interactive,
More informationStrings and Arrays. COMP 401, Fall 2017 Lecture 4
Strings and Arrays COMP 401, Fall 2017 Lecture 4 Inside a method The body of a method is a sequence of statements. A statement ends in a semi-colon Types of statements: Variable declaraion Assignment CondiIonal
More informationCSE 344 JULY 9 TH NOSQL
CSE 344 JULY 9 TH NOSQL ADMINISTRATIVE MINUTIAE HW3 due Wednesday tests released actual_time should have 0s not NULLs upload new data file or use UPDATE to change 0 ~> NULL Extra OOs on Mondays 5-7pm in
More informationExam 2, Form A CSE 231 Spring 2014 (1) DO NOT OPEN YOUR EXAM BOOKLET UNTIL YOU HAVE BEEN TOLD TO BEGIN.
Name: Section: Date: INSTRUCTIONS: (1) DO NOT OPEN YOUR EXAM BOOKLET UNTIL YOU HAVE BEEN TOLD TO BEGIN. (2) This exam booklet contains 30 questions, each of which will be weighted equally at 5 points each.
More informationExam 2, Form B CSE 231 Spring 2014 (1) DO NOT OPEN YOUR EXAM BOOKLET UNTIL YOU HAVE BEEN TOLD TO BEGIN.
Name: Section: Date: INSTRUCTIONS: (1) DO NOT OPEN YOUR EXAM BOOKLET UNTIL YOU HAVE BEEN TOLD TO BEGIN. (2) This exam booklet contains 30 questions, each of which will be weighted equally at 5 points each.
More informationPython: common syntax
Lab 09 Python! Python Intro Main Differences from C++: True and False are capitals Python floors (always down) with int division (matters with negatives): -3 / 2 = -2 No variable data types or variable
More informationLists, loops and decisions
Caltech/LEAD Summer 2012 Computer Science Lecture 4: July 11, 2012 Lists, loops and decisions Lists Today Looping with the for statement Making decisions with the if statement Lists A list is a sequence
More informationCS Introduction to Computational and Data Science. Instructor: Renzhi Cao Computer Science Department Pacific Lutheran University Spring 2017
CS 133 - Introduction to Computational and Data Science Instructor: Renzhi Cao Computer Science Department Pacific Lutheran University Spring 2017 Previous class We have learned the path and file system.
More informationOverview of the JSON Encoding Rules (JER)
Overview of the JSON Encoding Rules (JER) Alessandro Triglia, OSS Nokalva sandro@oss.com July 2017 OSS Nokalva, Inc. 1 CONTENTS 1 Introduction...3 2 The JSON Encoding Rules...4 2.1 JER encoding instructions...4
More informationQuestion 1. Part (a) Simple Syntax [1 mark] Circle add_ints(), because it is missing arguments to the function call. Part (b) Simple Syntax [1 mark]
Note to Students: This file contains sample solutions to the term test together with the marking scheme and comments for each question. Please read the solutions and the marking schemes and comments carefully.
More informationPython Unit
Python Unit 1 1.1 1.3 1.1: OPERATORS, EXPRESSIONS, AND VARIABLES 1.2: STRINGS, FUNCTIONS, CASE SENSITIVITY, ETC. 1.3: OUR FIRST TEXT- BASED GAME Python Section 1 Text Book for Python Module Invent Your
More informationCMSC 201 Fall 2015 Lab 12 Tuples and Dictionaries
CMSC 201 Fall 2015 Lab 12 Tuples and Dictionaries Assignment: Lab 12 Tuples and Dictionaries Due Date: During discussion, November 30 th through December 3 rd Value: 1% of final grade Part 1: Data Types
More information