meta_oxide 0.1.0

Universal metadata extraction library supporting 13 formats (HTML Meta, Open Graph, Twitter Cards, JSON-LD, Microdata, Microformats, RDFa, Dublin Core, Web App Manifest, oEmbed, rel-links, Images, SEO) with 7 language bindings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
# MetaOxide v0.1.0 Publishing Guide

**Version**: 0.1.0
**Release Date**: November 25, 2025
**Status**: Ready for Public Release

This guide covers the complete process of publishing MetaOxide to:
1. GitHub (public repository)
2. crates.io (Rust package registry)
3. PyPI (Python package registry)

---

## 📋 Pre-Publishing Checklist

### Local Setup Verification
- [x] Repository is clean and ready
- [x] All code committed
- [x] Package metadata updated (Cargo.toml, pyproject.toml)
- [x] Licenses included (MIT, Apache-2.0)
- [x] README.md present and complete
- [x] CHANGELOG.md up to date
- [x] Documentation complete

### Credentials Required
- [ ] GitHub account with repository creation permissions
- [ ] Crates.io account with API token
- [ ] PyPI account with API token
- [ ] Git configured locally

---

## 🚀 Step 1: Create GitHub Repository

### Option A: Using GitHub Web UI

1. Go to https://github.com/new
2. **Repository name**: `meta-oxide`
3. **Description**: "Universal metadata extraction library supporting 13 formats with 7 language bindings"
4. **Visibility**: **Public**5. **Initialize repository**: **Do NOT** initialize (we have code ready)
6. Click "Create repository"

### Option B: Using GitHub CLI

```bash
gh repo create meta-oxide \
  --public \
  --description "Universal metadata extraction library supporting 13 formats with 7 language bindings" \
  --source=. \
  --remote=origin \
  --push
```

---

## 📤 Step 2: Push to GitHub

### Add Remote and Push

```bash
cd /home/yfedoseev/projects/meta_oxide

# Add GitHub remote
git remote add origin https://github.com/yfedoseev/meta-oxide.git

# Verify remote
git remote -v

# Push main branch
git push -u origin main

# Push tags (if any)
git push origin --tags
```

### Verify on GitHub

1. Visit https://github.com/yfedoseev/meta-oxide
2. Verify all files are present
3. Check README.md displays correctly
4. Confirm repository is public

---

## 🏷️ Step 3: Create Release Tag

### Create v0.1.0 Tag

```bash
# If tag doesn't exist, create it
git tag -a v0.1.0 -m "Release v0.1.0 - Universal metadata extraction library"

# Push tag to GitHub
git push origin v0.1.0

# Verify tag
git tag -l -n5 v0.1.0
```

### Create GitHub Release

**Using GitHub Web UI**:
1. Go to https://github.com/yfedoseev/meta-oxide/releases
2. Click "Create a new release"
3. Select tag: `v0.1.0`
4. Title: "MetaOxide v0.1.0 - Universal Metadata Extraction Library"
5. Description: Paste content from [RELEASE_NOTES_v0.1.0.md]RELEASE_NOTES_v0.1.0.md
6. Click "Publish release"

**Using GitHub CLI**:
```bash
gh release create v0.1.0 \
  --title "MetaOxide v0.1.0 - Universal Metadata Extraction Library" \
  --notes-file RELEASE_NOTES_v0.1.0.md
```

---

## 📦 Step 4: Publish to crates.io (Rust)

### Prerequisites

```bash
# Install Rust (if not already installed)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# Update Rust
rustup update stable

# Verify installation
cargo --version
```

### Create crates.io Account

1. Go to https://crates.io
2. Click "Login" → "GitHub"
3. Authorize the application
4. Visit https://crates.io/me and click "Generate new token"
5. Copy the API token

### Configure Cargo

```bash
# Login to crates.io with your API token
cargo login

# When prompted, paste your crates.io API token
# This saves token to ~/.cargo/credentials.toml
```

### Publish to crates.io

```bash
cd /home/yfedoseev/projects/meta_oxide

# Verify package contents
cargo package --list

# Do a dry-run first (recommended)
cargo publish --dry-run

# Publish to crates.io
cargo publish

# Watch the progress in terminal
# Publishing typically takes 1-2 minutes
```

### Verify Publication

```bash
# Check crates.io
# https://crates.io/crates/meta_oxide

# Or use cargo
cargo search meta_oxide

# Test installation
cargo install meta_oxide --version 0.1.0
```

---

## 🐍 Step 5: Publish to PyPI (Python)

### Prerequisites

```bash
# Ensure you have Python 3.8+
python --version

# Install build tools
pip install --upgrade pip build twine maturin

# Verify installations
python -m build --version
twine --version
```

### Create PyPI Account

1. Go to https://pypi.org/account/register/
2. Create a new account (or login if you have one)
3. Set up Two-Factor Authentication (recommended)
4. Visit https://pypi.org/manage/account/token/
5. Create a new API token (scope: "Entire account")
6. Copy the token (you'll only see it once!)

### Store PyPI Credentials

**Option A: Using .pypirc** (Recommended)

```bash
# Create or edit ~/.pypirc
cat > ~/.pypirc << 'EOF'
[distutils]
index-servers =
    pypi

[pypi]
repository = https://upload.pypi.org/legacy/
username = __token__
password = pypi-AgEIcHlwaS5vcmc...  # Your token from PyPI
EOF

# Set restrictive permissions
chmod 600 ~/.pypirc
```

**Option B: Using keyring**

```bash
# Install keyring
pip install keyring

# Store credentials
keyring set https://upload.pypi.org/legacy/ __token__
# When prompted, paste your PyPI token
```

### Build Python Package

```bash
cd /home/yfedoseev/projects/meta_oxide

# Clean previous builds
rm -rf build/ dist/ *.egg-info

# Build wheel and source distribution
python -m build

# Verify built files
ls -lah dist/

# Should create:
# - dist/meta_oxide-0.1.0-cp*.whl (wheels for different Python versions)
# - dist/meta-oxide-0.1.0.tar.gz (source distribution)
```

### Upload to PyPI

```bash
# Check distribution first (do a dry-run)
twine check dist/*

# Upload to PyPI
twine upload dist/*

# When prompted for credentials:
# Username: __token__
# Password: [paste your PyPI token]
```

### Verify Publication

```bash
# Check PyPI
# https://pypi.org/project/meta-oxide/

# Test installation
pip install meta-oxide==0.1.0

# Test in Python
python -c "import meta_oxide; print(meta_oxide.__version__)"
```

---

## ✅ Post-Publication Verification

### Verify All Publications

```bash
# Check crates.io
curl https://crates.io/api/v1/crates/meta_oxide | jq '.crate.max_version'

# Check PyPI
pip index versions meta-oxide

# Verify GitHub
gh repo view yfedoseev/meta-oxide

# Test installations
cargo install meta-oxide --version 0.1.0
pip install meta-oxide==0.1.0
```

### Create Documentation

1. **GitHub**:
   - Add GitHub Pages (optional)
   - Enable discussions
   - Set up security advisories

2. **crates.io**:
   - Documentation auto-generated from doc comments
   - Visit: https://docs.rs/meta_oxide

3. **PyPI**:
   - Documentation auto-generated from README
   - Visit: https://meta-oxide.readthedocs.io (optional, requires ReadTheDocs)

---

## 📊 Publication Summary

### crates.io

| Item | Status |
|------|--------|
| **Package Name** | `meta_oxide` |
| **Version** | 0.1.0 |
| **License** | MIT OR Apache-2.0 |
| **Documentation** | https://docs.rs/meta_oxide |
| **Repository** | https://github.com/yfedoseev/meta-oxide |
| **Keywords** | metadata, microformats, html, json-ld, parser |

### PyPI

| Item | Status |
|------|--------|
| **Package Name** | `meta-oxide` |
| **Version** | 0.1.0 |
| **License** | MIT OR Apache-2.0 |
| **Documentation** | https://github.com/yfedoseev/meta-oxide/tree/main/docs |
| **Repository** | https://github.com/yfedoseev/meta-oxide |
| **Python Support** | 3.8, 3.9, 3.10, 3.11, 3.12, 3.13 |

### GitHub

| Item | Details |
|------|---------|
| **Repository** | https://github.com/yfedoseev/meta-oxide |
| **Visibility** | Public |
| **Issues** | Enabled |
| **Discussions** | Enabled |
| **Releases** | v0.1.0 |

---

## 🔄 Multi-Language Bindings Publishing

After Rust and Python are published, consider publishing to other registries:

### Go
```bash
# Automatic via GitHub tags
# Users install with: go get github.com/yfedoseev/meta-oxide-go@v0.1.0
```

### Node.js/WASM
```bash
# npm
npm publish

# For scoped packages:
npm publish --access public
```

### Java
```bash
# Maven Central (requires Sonatype account)
cd bindings/java/meta-oxide-java
mvn clean deploy
```

### C#/.NET
```bash
# NuGet
dotnet nuget push bin/Release/MetaOxide.0.1.0.nupkg --api-key [key] --source https://api.nuget.org/v3/index.json
```

---

## ⚠️ Important Notes

### API Tokens Security
- **Never commit** API tokens to version control
- Use environment variables or `.pypirc` file
- Keep tokens private and secure
- Regenerate tokens if exposed

### Version Numbers
- Once published, versions are **immutable**
- Cannot re-publish the same version
- For changes, use v0.1.1, v0.2.0, etc.
- Follow semantic versioning

### Publishing Order
1. **GitHub** (source code must be public first)
2. **crates.io** (Rust users often check source on GitHub)
3. **PyPI** (Python packages)
4. Other registries (npm, Maven, NuGet, etc.)

### Rollback Strategy
- If critical bug found after publishing:
  1. Publish v0.1.1 with fix immediately
  2. Document issue on GitHub
  3. Update SECURITY.md if needed
  4. Mark v0.1.0 as deprecated in release notes

---

## 📝 Troubleshooting

### Cargo Publish Issues

**Problem**: "authentication required"
```bash
# Solution: Re-login
cargo login
```

**Problem**: "forbidden: crate `meta_oxide` is already reserved"
```bash
# Solution: Use exact crate name from Cargo.toml
# Verify Cargo.toml has correct [package] name
```

**Problem**: "documentation tests failed"
```bash
# Solution: Run tests before publishing
cargo test --all-features
cargo test --doc
```

### PyPI Upload Issues

**Problem**: "403 Forbidden: Invalid or expired authentication token"
```bash
# Solution: Generate new token from https://pypi.org/manage/account/token/
rm ~/.pypirc
python -m keyring set https://upload.pypi.org/legacy/ __token__
```

**Problem**: "The file meta_oxide-0.1.0.tar.gz already exists"
```bash
# Solution: PyPI doesn't allow re-uploads
# Use a new version (0.1.1) if changes are needed
```

**Problem**: "twine: command not found"
```bash
# Solution: Install twine
pip install twine
```

---

## ✨ Next Steps After Publication

1. **Monitor Downloads**: Watch crates.io and PyPI stats
2. **Gather Feedback**: Read issues and discussions
3. **Plan v0.2.0**: Based on feedback and roadmap
4. **Community Engagement**: Share on Rust/Python forums
5. **Blog Post**: Announce the release (optional)

---

## 🎯 Success Criteria

✅ **GitHub**:
- Repository is public
- All files visible
- README displays correctly
- Release page has detailed notes

✅ **crates.io**:
- Package visible on https://crates.io/crates/meta_oxide
- Documentation generated on https://docs.rs/meta_oxide
- Installation works: `cargo install meta_oxide`

✅ **PyPI**:
- Package visible on https://pypi.org/project/meta-oxide/
- Installation works: `pip install meta-oxide`
- Package information displays correctly

---

## 📞 Support

If you encounter issues during publication:

1. **Rust/crates.io**: https://internals.rust-lang.org/
2. **Python/PyPI**: https://mail.python.org/pipermail/distutils-sig/
3. **GitHub**: https://github.com/yfedoseev/meta-oxide/issues
4. **MetaOxide Documentation**: See [README.md]README.md

---

**Ready to publish? Start with Step 1! 🚀**

Last Updated: November 25, 2025