Skip to content

Instantly share code, notes, and snippets.

View Avilocap's full-sized avatar

David De la Torre Avilocap

View GitHub Profile
@Avilocap
Avilocap / Entities.json
Created July 14, 2019 11:15
Fichero JSON de clases - JSON con Python - Daviddelatorre.me
{
"Classes":[
{
"Name" : "Actor",
"Extend" : "DomainEntity",
"Properties": [
{
"Name" : "name",
"Type" : "String",
@Avilocap
Avilocap / ReadJsonInPython.py
Last active July 14, 2019 11:17
Fichero Python - Leer un JSON con Python - Daviddelatorre.me
import json
f = open("Entities.json", "r")
content = f.read()
jsondecoded = json.loads(content)
for entity in jsondecoded["Classes"]:
print("Entidad " + entity["Name"] + ". Sus propiedades son: ")
for entityProperty in entity["Properties"]:
print("Propiedad " + entityProperty["Name"] + " de tipo " + entityProperty["Type"])
apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python