feat: add ids based on folder name

This commit is contained in:
Diex5 2024-09-23 08:53:30 +02:00
parent f807a8ca9f
commit 183358c960
427 changed files with 532 additions and 119 deletions

View file

@ -1,39 +1,42 @@
import os
import yaml
# Cesta ke složce, kde jsou projekty
projects_folder = './src/projects'
# Počítadla
total_folders = 0
renamed_folders = 0
skipped_folders = 0
# Funkce na úpravu YAML dat
def update_id_in_yaml(file_path, folder_name):
with open(file_path, 'r') as f:
try:
data = yaml.safe_load(f) or {} # Načte YAML nebo prázdný slovník
except yaml.YAMLError as exc:
print(f"Chyba při načítání {file_path}: {exc}")
return
# Projde všechny složky v složce projects
# Vygeneruj ID na základě názvu složky (lowercase s pomlčkami)
new_id = folder_name.lower().replace(' ', '-').replace('_', '-')
# Zkontroluj, jestli již existuje ID, a porovnej
if 'id' in data:
print(f"Soubor {file_path} již má ID '{data['id']}', nahrazuji s '{new_id}'")
else:
print(f"Soubor {file_path} nemá ID, přidávám '{new_id}'")
# Aktualizuj nebo přidej ID na začátek dat
data['id'] = new_id
# Ulož aktualizovaný soubor zpět
with open(file_path, 'w') as f:
yaml.dump(data, f, default_flow_style=False, sort_keys=False)
# Projde všechny složky ve složce projects
for root, dirs, files in os.walk(projects_folder):
for dir_name in dirs:
total_folders += 1 # Započítáme každou složku
folder_path = os.path.join(root, dir_name)
index_file = os.path.join(folder_path, 'index.yaml')
# Získáme původní cestu ke složce
original_path = os.path.join(root, dir_name)
# Převést název složky na lowercase a nahradit mezery a podtržítka pomlčkami
new_dir_name = dir_name.lower().replace(' ', '-').replace('_', '-')
new_path = os.path.join(root, new_dir_name)
# Pokud je původní název jiný než nový (abychom předešli zbytečným přejmenováním)
if original_path != new_path:
try:
os.rename(original_path, new_path)
print(f"Přejmenovávám složku: '{original_path}' -> '{new_path}'")
renamed_folders += 1
except OSError as e:
print(f"Chyba při přejmenování složky {original_path}: {e}")
# Zkontroluj, jestli soubor 'index.yaml' existuje
if os.path.exists(index_file):
update_id_in_yaml(index_file, dir_name)
else:
print(f"Složka '{original_path}' již má správný název, preskakuji.")
skipped_folders += 1
# Výsledný souhrn
print("\n--- SOUHRN ---")
print(f"Celkový počet složek: {total_folders}")
print(f"Počet přejmenovaných složek: {renamed_folders}")
print(f"Počet přeskočených složek (již správné): {skipped_folders}")
print(f"Soubor {index_file} neexistuje, preskakuji.")

View file

@ -12,3 +12,4 @@ usecases:
- research-and-development
have_token: false
third_party_dependency: false
id: 01-labs

View file

@ -9,3 +9,4 @@ usecases:
- mixing-service
have_token: false
third_party_dependency: false
id: 0xtip

View file

@ -14,3 +14,4 @@ usecases:
- infrastructure
have_token: false
third_party_dependency: false
id: '1984'

View file

@ -10,3 +10,4 @@ usecases:
- rpc-provider
have_token: false
third_party_dependency: false
id: 1rpc

View file

@ -10,3 +10,4 @@ usecases:
- dapps
have_token: false
third_party_dependency: false
id: 2fa-guru

View file

@ -20,3 +20,4 @@ sunset: false
usecases:
- nft-community
third_party_dependency: false
id: actilist

View file

@ -15,3 +15,4 @@ have_token: false
usecases:
- did
third_party_dependency: false
id: aesirx-web3-id

View file

@ -22,3 +22,4 @@ usecases:
- computing
have_token: false
third_party_dependency: false
id: alaya

View file

@ -43,3 +43,4 @@ third_party_dependency: false
usecases:
- infrastructure
have_token: false
id: aleo

View file

@ -26,3 +26,4 @@ usecases:
- computing
have_token: false
third_party_dependency: false
id: aleph-zero

View file

@ -21,3 +21,4 @@ usecases:
- messaging
have_token: false
third_party_dependency: false
id: alter

View file

@ -15,3 +15,4 @@ have_token: false
usecases:
- did
third_party_dependency: false
id: anagolay

View file

@ -37,3 +37,4 @@ usecases:
- infrastructure
have_token: false
third_party_dependency: false
id: anoma

View file

@ -25,3 +25,4 @@ usecases:
- did
have_token: false
third_party_dependency: false
id: anon-aadhaar

View file

@ -8,3 +8,4 @@ usecases:
- wallets
have_token: false
third_party_dependency: false
id: anon-nero

View file

@ -1,4 +1,4 @@
id: anon-club
id: anonklub
name: AnonKlub
categories:
- applications

View file

@ -14,3 +14,4 @@ have_token: false
usecases:
- did
third_party_dependency: false
id: anonybit

View file

@ -9,3 +9,4 @@ usecases:
- mixing-service
have_token: false
third_party_dependency: false
id: anonzk-incognito

View file

@ -13,3 +13,4 @@ usecases:
- dao
have_token: false
third_party_dependency: false
id: anydao

View file

@ -16,3 +16,4 @@ usecases:
- infrastructure
have_token: false
third_party_dependency: false
id: anytype

View file

@ -9,3 +9,4 @@ usecases:
- nft-community
have_token: false
third_party_dependency: false
id: arcana-s-private-nft

View file

@ -31,3 +31,4 @@ tokens:
usecases:
- infrastructure
third_party_dependency: false
id: arcana

View file

@ -26,3 +26,4 @@ usecases:
- computing
have_token: false
third_party_dependency: false
id: arpa

View file

@ -13,3 +13,4 @@ usecases:
- dapps
have_token: false
third_party_dependency: false
id: asmatch

View file

@ -25,3 +25,4 @@ usecases:
- infrastructure
have_token: false
third_party_dependency: false
id: asterizm

View file

@ -18,3 +18,4 @@ usecases:
- infrastructure
have_token: false
third_party_dependency: false
id: auth3

View file

@ -21,3 +21,4 @@ project_status:
usecases:
- infrastructure
third_party_dependency: false
id: automata-network

View file

@ -21,3 +21,4 @@ usecases:
- hardware
have_token: false
third_party_dependency: false
id: avado

View file

@ -13,3 +13,4 @@ usecases:
- hardware
have_token: false
third_party_dependency: false
id: axiatel

View file

@ -11,3 +11,4 @@ usecases:
- bridge
have_token: false
third_party_dependency: false
id: aztec-connect

View file

@ -17,3 +17,4 @@ usecases:
- currency
have_token: false
third_party_dependency: false
id: basic-attention-token

View file

@ -55,3 +55,4 @@ project_status:
usecases:
- defi
have_token: false
id: basicswap

View file

@ -21,3 +21,4 @@ usecases:
- messaging
have_token: false
third_party_dependency: false
id: bcchat

View file

@ -17,3 +17,4 @@ usecases:
- wallets
have_token: false
third_party_dependency: false
id: beam-wallet

View file

@ -24,3 +24,4 @@ usecases:
- currency
have_token: false
third_party_dependency: false
id: beam

View file

@ -22,3 +22,4 @@ usecases:
- messaging
have_token: false
third_party_dependency: false
id: beepo

View file

@ -25,3 +25,4 @@ usecases:
- currency
have_token: false
third_party_dependency: false
id: beldex

View file

@ -13,3 +13,4 @@ usecases:
- dapps
have_token: false
third_party_dependency: false
id: bermuda

View file

@ -19,3 +19,4 @@ tokens:
usecases:
- nft-community
third_party_dependency: false
id: bidshop

View file

@ -68,3 +68,4 @@ project_status:
usecases:
- defi
have_token: false
id: blackbox

View file

@ -23,3 +23,4 @@ usecases:
- wallets
have_token: false
third_party_dependency: false
id: blockwallet

View file

@ -8,3 +8,4 @@ usecases:
- dapps
have_token: false
third_party_dependency: false
id: blockyfile

View file

@ -9,3 +9,4 @@ usecases:
- nft-community
have_token: false
third_party_dependency: false
id: bluum

View file

@ -16,3 +16,4 @@ usecases:
- currency
have_token: false
third_party_dependency: false
id: boltz

View file

@ -10,3 +10,4 @@ usecases:
- alliances
have_token: false
third_party_dependency: false
id: bpsaa

View file

@ -16,3 +16,4 @@ usecases:
- dapps
have_token: false
third_party_dependency: false
id: brace

View file

@ -12,3 +12,4 @@ usecases:
- browser
have_token: false
third_party_dependency: false
id: brave

View file

@ -15,3 +15,4 @@ have_token: false
usecases:
- did
third_party_dependency: false
id: brightid

View file

@ -9,3 +9,4 @@ usecases:
- dapps
have_token: false
third_party_dependency: false
id: bringing-privacy-to-ens

View file

@ -12,3 +12,4 @@ usecases:
- dapps
have_token: false
third_party_dependency: false
id: buildoor

View file

@ -24,3 +24,4 @@ project_status:
usecases:
- infrastructure
third_party_dependency: false
id: burstiq

View file

@ -20,3 +20,4 @@ usecases:
- wallets
have_token: false
third_party_dependency: false
id: cake-wallet

View file

@ -19,3 +19,4 @@ usecases:
- operation-systems
have_token: false
third_party_dependency: false
id: calyxos

View file

@ -18,3 +18,4 @@ usecases:
- defi
have_token: false
third_party_dependency: false
id: cape

View file

@ -12,3 +12,4 @@ have_token: false
usecases:
- did
third_party_dependency: false
id: cerebrum

View file

@ -18,3 +18,4 @@ sunset: false
usecases:
- nft-community
third_party_dependency: false
id: certup

View file

@ -17,3 +17,4 @@ usecases:
- dapps
have_token: false
third_party_dependency: false
id: cheqd

View file

@ -22,3 +22,4 @@ usecases:
- defi
have_token: false
third_party_dependency: false
id: chimp-exchange

View file

@ -5,3 +5,4 @@ usecases:
- defi
have_token: false
third_party_dependency: false
id: cia-protocol

View file

@ -11,3 +11,4 @@ usecases:
- data-management
have_token: false
third_party_dependency: false
id: cirus-foundation

View file

@ -11,3 +11,4 @@ usecases:
- currency
have_token: false
third_party_dependency: false
id: cog

View file

@ -5,3 +5,4 @@ usecases:
- defi
have_token: false
third_party_dependency: false
id: coinbook

View file

@ -10,3 +10,4 @@ usecases:
- mixing-service
have_token: false
third_party_dependency: false
id: coinomize

View file

@ -9,3 +9,4 @@ usecases:
- mixing-service
have_token: false
third_party_dependency: false
id: coinshuffle

View file

@ -26,3 +26,4 @@ usecases:
- currency
have_token: false
third_party_dependency: false
id: colossusxt

View file

@ -19,3 +19,4 @@ usecases:
- infrastructure
have_token: false
third_party_dependency: false
id: comit-network

View file

@ -5,3 +5,4 @@ usecases:
- defi
have_token: false
third_party_dependency: false
id: common

View file

@ -5,3 +5,4 @@ usecases:
- defi
have_token: false
third_party_dependency: false
id: conceal-network

View file

@ -29,3 +29,4 @@ project_status:
usecases:
- infrastructure
third_party_dependency: false
id: concordium

View file

@ -21,3 +21,4 @@ usecases:
- wallets
have_token: false
third_party_dependency: false
id: cool-wallet

View file

@ -26,3 +26,4 @@ usecases:
- storage
have_token: false
third_party_dependency: false
id: crust

View file

@ -26,3 +26,4 @@ project_status:
usecases:
- messaging
third_party_dependency: false
id: crypviser-secure-messenger

View file

@ -45,3 +45,4 @@ audits:
usecases:
- dao
third_party_dependency: false
id: cultdao

View file

@ -30,3 +30,4 @@ usecases:
- mixing-service
have_token: false
third_party_dependency: false
id: cyclone

View file

@ -10,3 +10,4 @@ usecases:
- dapps
have_token: false
third_party_dependency: false
id: damus

View file

@ -21,3 +21,4 @@ usecases:
- hardware
have_token: false
third_party_dependency: false
id: dappnode

View file

@ -18,3 +18,4 @@ usecases:
- infrastructure
have_token: false
third_party_dependency: false
id: darkfi

View file

@ -14,3 +14,4 @@ have_token: false
usecases:
- did
third_party_dependency: false
id: dauth-network

View file

@ -16,3 +16,4 @@ usecases:
- browser
have_token: false
third_party_dependency: false
id: decentr

View file

@ -21,3 +21,4 @@ usecases:
- currency
have_token: false
third_party_dependency: false
id: decred

View file

@ -20,3 +20,4 @@ usecases:
- hardware
have_token: false
third_party_dependency: false
id: deeper-network

View file

@ -1,60 +1,59 @@
#PROJECT DESCRIPTION -------------------------------------------------------------
name: DeepOnion
categories: [applications]
assets_used: ["ZK-SNARKS", "TOR-NETWORK"]
ecosystem: [deeponion-network]
categories:
- applications
assets_used:
- ZK-SNARKS
- TOR-NETWORK
ecosystem:
- deeponion-network
project_type: Hybrid cryptocurrency
description: DeepOnion (ONION) is a decentralized, open-source, community-driven cryptocurrency that offers multi-layered privacy and everyday use cases. It uses an x13 hybrid PoW/PoS to secure the network. DeepOnion is one of the earliest cryptos to integrate the Tor network into the wallet, which has not leaked any IP addresses since its release on 12 July 2017.
description: DeepOnion (ONION) is a decentralized, open-source, community-driven cryptocurrency
that offers multi-layered privacy and everyday use cases. It uses an x13 hybrid
PoW/PoS to secure the network. DeepOnion is one of the earliest cryptos to integrate
the Tor network into the wallet, which has not leaked any IP addresses since its
release on 12 July 2017.
product_readiness: Mainnet
product_launch_day: "2017-07-12"
product_launch_day: '2017-07-12'
have_token: true
tokens:
- name: DeepOnion
symbol: ONION
network: DeepOnion Network
fee: 0.0001 ONION/kB
- name: DeepOnion
symbol: ONION
network: DeepOnion Network
fee: 0.0001 ONION/kB
team:
anonymous: true
teammembers:
- name: Deeper
role: Marketing Manager
link: https://deeponion.org/community/members/deeper.2/
- name: Monocolor
role: Lead Blockchain Developer
link: https://deeponion.org/community/members/monocolor.207/
- name: Nezero
role: Blockchain Developer
link: https://deeponion.org/community/members/nezero.1858/
- name: Obszoenling
role: Blockchain Developer
link: https://deeponion.org/community/members/obszoenling.414/
- name: Impressive
role: Web Developer
link: https://deeponion.org/community/members/impressive.2278/
- name: DogLover
role: Web Developer
link: https://deeponion.org/community/members/doglover.2258/
- name: Deeper
role: Marketing Manager
link: https://deeponion.org/community/members/deeper.2/
- name: Monocolor
role: Lead Blockchain Developer
link: https://deeponion.org/community/members/monocolor.207/
- name: Nezero
role: Blockchain Developer
link: https://deeponion.org/community/members/nezero.1858/
- name: Obszoenling
role: Blockchain Developer
link: https://deeponion.org/community/members/obszoenling.414/
- name: Impressive
role: Web Developer
link: https://deeponion.org/community/members/impressive.2278/
- name: DogLover
role: Web Developer
link: https://deeponion.org/community/members/doglover.2258/
funding:
name: Community Contributions
type: Community Support
link: https://deeponion.org/community
value: Not applicable
time: Ongoing
sunset: false
# LINKS ---------------------------------------------------------------------
links:
web: https://deeponion.org
github: https://github.com/deeponion/deeponion/
block_explorer: https://explorer.deeponion.org/
forum: https://deeponion.org/community/
whitepaper: https://deeponion.org/White-Paper.pdf
twitter: https://twitter.com/TheDeepOnion
facebook: https://www.facebook.com/deeponionx
telegram: https://t.me/getdeeponion
@ -62,23 +61,19 @@ links:
gettr: https://gettr.com/user/deeponion
rumble: https://rumble.com/user/DeepOnion
primal: http://primal.net/p/npub1l3h54332pdmwnvyg83fsd5g6cfsrdf75mqy3fnh8nxhls0gr2eysm5hucr
education: https://deeponion.org/#academy
# TECHNOLOGY ---------------------------------------------------------------------
technology:
type: x13 PoW & PoS
features:
- Private wallet
- Hybrid - PoW & PoS
- ZK-Snarks for privacy
- TOR Network integration
- DeepSend for transaction masking
- DeepVault for file verification
- DeepProtocol for encrypted messaging
- DeepOnionJ for Java integration
- VoteCentral for community governance
- Private wallet
- Hybrid - PoW & PoS
- ZK-Snarks for privacy
- TOR Network integration
- DeepSend for transaction masking
- DeepVault for file verification
- DeepProtocol for encrypted messaging
- DeepOnionJ for Java integration
- VoteCentral for community governance
blockchain_features:
encryption: zksnark
opensource: true
@ -86,36 +81,28 @@ blockchain_features:
frontend_anonymity: TOR addresses
asset_custody_type: non-custodial
p2p: true
project_status:
live_status: true
version: V2.3.3
testnet: false
mainnet: true
client_diversability:
name: DeepOnion Wallet
link: https://deeponion.org/#download
# PRIVACY ---------------------------------------------------------------------
licences: General Public License
privacy_policy:
defined: true
link: https://deeponion.org/privacypolicy.html
data_usage: Not using
tracebility:
kyc: false
sign_in_type_requirements: wallet
compliance: none
storage:
decentralized: true
# SECURITY ---------------------------------------------------------------------
third_party_dependency: false
social_trust: DeepOnion uses a multisig system for governance decisions and has a DAO for community voting.
usecases: [currency]
social_trust: DeepOnion uses a multisig system for governance decisions and has a
DAO for community voting.
usecases:
- currency
id: deeponion

View file

@ -5,3 +5,4 @@ usecases:
- defi
have_token: false
third_party_dependency: false
id: definer

View file

@ -15,3 +15,4 @@ usecases:
- research-and-development
have_token: false
third_party_dependency: false
id: demox-labs

View file

@ -21,3 +21,4 @@ project_status:
usecases:
- infrastructure
third_party_dependency: false
id: dero

View file

@ -10,3 +10,4 @@ usecases:
- rpc-provider
have_token: false
third_party_dependency: false
id: derp

View file

@ -19,3 +19,4 @@ usecases:
- research-and-development
have_token: false
third_party_dependency: false
id: discreet-labs

View file

@ -23,3 +23,4 @@ usecases:
- currency
have_token: false
third_party_dependency: false
id: discreet

View file

@ -5,3 +5,4 @@ usecases:
- defi
have_token: false
third_party_dependency: false
id: diva

View file

@ -17,3 +17,4 @@ usecases:
- operation-systems
have_token: false
third_party_dependency: false
id: divestos

View file

@ -25,3 +25,4 @@ usecases:
- storage
have_token: false
third_party_dependency: false
id: djib

View file

@ -16,3 +16,4 @@ have_token: false
usecases:
- did
third_party_dependency: false
id: dmail-network

View file

@ -21,3 +21,4 @@ usecases:
- defi
have_token: false
third_party_dependency: false
id: dusk-network

View file

@ -17,3 +17,4 @@ usecases:
- currency
have_token: false
third_party_dependency: false
id: ecash

View file

@ -25,3 +25,4 @@ usecases:
- wallets
have_token: false
third_party_dependency: false
id: edge

View file

@ -20,3 +20,4 @@ usecases:
- research-and-development
have_token: false
third_party_dependency: false
id: electric-coin-co

View file

@ -16,3 +16,4 @@ usecases:
- wallets
have_token: false
third_party_dependency: false
id: elite

View file

@ -25,3 +25,4 @@ usecases:
- defi
have_token: false
third_party_dependency: false
id: elusiv

View file

@ -25,3 +25,4 @@ usecases:
- wallets
have_token: false
third_party_dependency: false
id: email-wallet

Some files were not shown because too many files have changed in this diff Show more