0% found this document useful (0 votes)
237 views5 pages

YAML Handwritten Notes

YAML is a data format used to exchange data that can store data but not commands. It is similar to XML and JSON but is human readable. YAML is commonly used in logs, caches, and configuration files. It allows representation of complex data structures and various tools are available to work with YAML.

Uploaded by

Ashwani Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
237 views5 pages

YAML Handwritten Notes

YAML is a data format used to exchange data that can store data but not commands. It is similar to XML and JSON but is human readable. YAML is commonly used in logs, caches, and configuration files. It allows representation of complex data structures and various tools are available to work with YAML.

Uploaded by

Ashwani Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

26/1/22

YAML
Definition- VAML ain markue languae

data tormat used to exchange data


Can only sore data anad no_commands
Similar to X Land JSONL

Dada Serialization Iis a process O eonvertinq Bhei


dataobjects in a Omplex
data - Structure , ntoo a stream
af storage
Serializakon
2

Obiect Stream Dotabase


De seri ali zation

sed in loqs caches and condiquration iles ike


Docker hubernetesetc.

Beaefiis- Simple_and easy to read


I has a strict Syntax Tdentation)
Eaaily convertable to JSON and XML
Most longuaes use YAML
More powertul uwhen represent1ngCOmplex
data
Various tools available.
_Par sina is Ca
_/
YAML Demo

(hay (Vakue
Ke Value apple am a red r u i t
Paic
1This is Ronits roll number

is #lists
used for Comments
apple
mango
banana
Apple T+ is Case Sensifive
-

black cities
new delhi
mumba Dpaces are Important

kolkada

cities hew delhi mumbail


We can use Strinq inteper, tloat boolean data

pes
Datatypespes are automatically _detectecd.
Dodatypes
int Zero iat O_
pesitiue
Num int 45
negatiue Numi i t -45
binaryVum int Obll00L
octalNuwm int 06574
hena Nun:int Ox45
aamaValue i int t5+0-O00
/
Llaaf marks!£loat S6.91
infinite LCloatinf
hot o number han

a becleubaolean Value i bool Noa, N, £alse, False,


EALSE
beo Yes, y Y, true, Teue, LRUE-

Siiaq mesSa qe- s t r This is a String


Nuli texd null Nll, null, NULL,
ine sianpindia dimei timesBaunp 2003-03-30T02 251:43.10 t5:30
(by default it is UTC time zone)

Cxpenents exponential numbers 6. 023 E23

Advanced
Dadae
eqiuence student is e q
marks
- Mame_
-roll no

Or)

citics Lheo delhi, munbai

HSparse Sequence s0nae keys oseq uwilbe_empt


Sparse Sea
-hi

hoL
nested Sequence

Mang O

pes

yellow
red
4Teen

maP-
map key valuepairs are calledmaps)
Hnested Fpings map wihin a map
name hoait anerjee
role_

ob tudent
r)

role age: 18,job: student


Dairs pair example i pairs
job sfudent
obteacher
or)
pair eXanple paics Liobi student jobi teacher

Set nome8s e t
Honit
Koust av
Subhro
Raja
didionacy onaap
people oma
-Ronit
name Ronid Banerjee

height 678
Koustav
nome houutay Chatteriee
Agei4

heiqhtSq

Re-lsin kings Likea


Some LaN £oad mano
copecdiea dislikes rpes.
(Anchors2
person1

name honi+
KK:*likes_ Lcopiea he likings2
Person 2
name Shreyoan
K: (ikes
dislikes berries ouercides)

Storinq data in XML no human readable)

8 Storinqdada inSSON
Fe tools for Dev Ops-Datree
Monokle
Lens-

You might also like