Commit bce9ac94 authored by Sridhar's avatar Sridhar
Browse files

init commit

parent 812cd860
## What does this PR do?
Add resource(s) | Remove resource(s) | Add info | Improve repo
## IMPORTANT
- [x] Read our [contributing guidelines](https://github.com/EbookFoundation/free-programming-books/blob/main/docs/CONTRIBUTING.md).
- [x] Is this a revision of a previously submitted PR? If so, STOP! Go back, reopen the PR, and add commit(s) the branch you previously submitted. Please don't make the job of reviewing more difficult by hiding previous work.
## For resources
### Description
### Why is this valuable (or not)?
### How do we know it's really free?
### For book lists, is it a book? For course lists, is it a course? etc.
## Checklist:
- [x] [Search](https://ebookfoundation.github.io/free-programming-books-search/) for duplicates.
- [x] Include author(s) and platform where appropriate.
- [x] Put lists in alphabetical order, correct spacing.
- [x] Add needed indications (PDF, access notes, under construction).
- [x] Used an informative name for this pull request.
## Follow-up
- Check the status of GitHub Actions and resolve any reported warnings!
Adds the full open educational resource (OER) textbook for Data Science, featuring contributions by Dr. Shaun V. Ault and others. Available in HTML and PDF.
## What does this PR do?
Add resource(s) | Remove resource(s) | Add info | Improve repo
## IMPORTANT
- [x] Read our [contributing guidelines](https://github.com/EbookFoundation/free-programming-books/blob/main/docs/CONTRIBUTING.md).
- [x] Is this a revision of a previously submitted PR? If so, STOP! Go back, reopen the PR, and add commit(s) the branch you previously submitted. Please don't make the job of reviewing more difficult by hiding previous work.
## For resources
### Description
### Why is this valuable (or not)?
### How do we know it's really free?
### For book lists, is it a book? For course lists, is it a course? etc.
## Checklist:
- [x] [Search](https://ebookfoundation.github.io/free-programming-books-search/) for duplicates.
- [x] Include author(s) and platform where appropriate.
- [x] Put lists in alphabetical order, correct spacing.
- [x] Add needed indications (PDF, access notes, under construction).
- [x] Used an informative name for this pull request.
## Follow-up
- Check the status of GitHub Actions and resolve any reported warnings!
## What does this PR do?
Add resource(s) | Remove resource(s) | Add info | Improve repo
## IMPORTANT
- [x] Read our [contributing guidelines](https://github.com/EbookFoundation/free-programming-books/blob/main/docs/CONTRIBUTING.md).
- [x] Is this a revision of a previously submitted PR? If so, STOP! Go back, reopen the PR, and add commit(s) the branch you previously submitted. Please don't make the job of reviewing more difficult by hiding previous work.
## For resources
### Description
### Why is this valuable (or not)?
### How do we know it's really free?
### For book lists, is it a book? For course lists, is it a course? etc.
## Checklist:
- [x] [Search](https://ebookfoundation.github.io/free-programming-books-search/) for duplicates.
- [x] Include author(s) and platform where appropriate.
- [x] Put lists in alphabetical order, correct spacing.
- [x] Add needed indications (PDF, access notes, under construction).
- [x] Used an informative name for this pull request.
## Follow-up
- Check the status of GitHub Actions and resolve any reported warnings!
## What does this PR do?
Add resource(s)
## IMPORTANT
- [X] Read our [contributing guidelines](https://github.com/EbookFoundation/free-programming-books/blob/main/docs/CONTRIBUTING.md).
- [ ] Is this a revision of a previously submitted PR? If so, STOP! Go back, reopen the PR, and add commit(s) the branch you previously submitted. Please don't make the job of reviewing more difficult by hiding previous work.
## For resources
### Description
### Why is this valuable (or not)?
### How do we know it's really free?
### For book lists, is it a book? For course lists, is it a course? etc.
## Checklist:
- [X] [Search](https://ebookfoundation.github.io/free-programming-books-search/) for duplicates.
- [X] Include author(s) and platform where appropriate.
- [X] Put lists in alphabetical order, correct spacing.
- [X] Add needed indications (PDF, access notes, under construction).
- [X] Used an informative name for this pull request.
## Follow-up
- Check the status of GitHub Actions and resolve any reported warnings!
## What does this PR do?
Add resource(s)
## IMPORTANT
- [X] Read our [contributing guidelines](https://github.com/EbookFoundation/free-programming-books/blob/main/docs/CONTRIBUTING.md).
- [ ] Is this a revision of a previously submitted PR? If so, STOP! Go back, reopen the PR, and add commit(s) the branch you previously submitted. Please don't make the job of reviewing more difficult by hiding previous work.
## For resources
### Description
### Why is this valuable (or not)?
### How do we know it's really free?
### For book lists, is it a book? For course lists, is it a course? etc.
## Checklist:
- [X] [Search](https://ebookfoundation.github.io/free-programming-books-search/) for duplicates.
- [X] Include author(s) and platform where appropriate.
- [X] Put lists in alphabetical order, correct spacing.
- [X] Add needed indications (PDF, access notes, under construction).
- [X] Used an informative name for this pull request.
## Follow-up
- Check the status of GitHub Actions and resolve any reported warnings!
## What does this PR do?
Add info | Improve repo
## IMPORTANT
- [X] Read our [contributing guidelines](https://github.com/EbookFoundation/free-programming-books/blob/main/docs/CONTRIBUTING.md).
- [ ] Is this a revision of a previously submitted PR? If so, STOP! Go back, reopen the PR, and add commit(s) the branch you previously submitted. Please don't make the job of reviewing more difficult by hiding previous work.
## For resources
### Description
### Why is this valuable (or not)?
### How do we know it's really free?
### For book lists, is it a book? For course lists, is it a course? etc.
## Checklist:
- [X] [Search](https://ebookfoundation.github.io/free-programming-books-search/) for duplicates.
- [X] Include author(s) and platform where appropriate.
- [X] Put lists in alphabetical order, correct spacing.
- [X] Add needed indications (PDF, access notes, under construction).
- [X] Used an informative name for this pull request.
## Follow-up
- Check the status of GitHub Actions and resolve any reported warnings!
## What does this PR do?
Add info
## IMPORTANT
- [X] Read our [contributing guidelines](https://github.com/EbookFoundation/free-programming-books/blob/main/docs/CONTRIBUTING.md).
- [ ] Is this a revision of a previously submitted PR? If so, STOP! Go back, reopen the PR, and add commit(s) the branch you previously submitted. Please don't make the job of reviewing more difficult by hiding previous work.
## For resources
### Description
### Why is this valuable (or not)?
### How do we know it's really free?
### For book lists, is it a book? For course lists, is it a course? etc.
## Checklist:
- [X] [Search](https://ebookfoundation.github.io/free-programming-books-search/) for duplicates.
- [X] Include author(s) and platform where appropriate.
- [X] Put lists in alphabetical order, correct spacing.
- [X] Add needed indications (PDF, access notes, under construction).
- [X] Used an informative name for this pull request.
## Follow-up
- Check the status of GitHub Actions and resolve any reported warnings!
## What does this PR do?
Add info
## IMPORTANT
- [X] Read our [contributing guidelines](https://github.com/EbookFoundation/free-programming-books/blob/main/docs/CONTRIBUTING.md).
- [ ] Is this a revision of a previously submitted PR? If so, STOP! Go back, reopen the PR, and add commit(s) the branch you previously submitted. Please don't make the job of reviewing more difficult by hiding previous work.
## For resources
### Description
### Why is this valuable (or not)?
### How do we know it's really free?
### For book lists, is it a book? For course lists, is it a course? etc.
## Checklist:
- [X] [Search](https://ebookfoundation.github.io/free-programming-books-search/) for duplicates.
- [X] Include author(s) and platform where appropriate.
- [X] Put lists in alphabetical order, correct spacing.
- [X] Add needed indications (PDF, access notes, under construction).
- [X] Used an informative name for this pull request.
## Follow-up
- Check the status of GitHub Actions and resolve any reported warnings!
## What does this PR do?
Add info
## IMPORTANT
- [X] Read our [contributing guidelines](https://github.com/EbookFoundation/free-programming-books/blob/main/docs/CONTRIBUTING.md).
- [ ] Is this a revision of a previously submitted PR? If so, STOP! Go back, reopen the PR, and add commit(s) the branch you previously submitted. Please don't make the job of reviewing more difficult by hiding previous work.
## For resources
### Description
### Why is this valuable (or not)?
### How do we know it's really free?
### For book lists, is it a book? For course lists, is it a course? etc.
## Checklist:
- [X] [Search](https://ebookfoundation.github.io/free-programming-books-search/) for duplicates.
- [X] Include author(s) and platform where appropriate.
- [X] Put lists in alphabetical order, correct spacing.
- [X] Add needed indications (PDF, access notes, under construction).
- [X] Used an informative name for this pull request.
## Follow-up
- Check the status of GitHub Actions and resolve any reported warnings!
## What does this PR do?
Add info
## IMPORTANT
- [X] Read our [contributing guidelines](https://github.com/EbookFoundation/free-programming-books/blob/main/docs/CONTRIBUTING.md).
- [ ] Is this a revision of a previously submitted PR? If so, STOP! Go back, reopen the PR, and add commit(s) the branch you previously submitted. Please don't make the job of reviewing more difficult by hiding previous work.
## For resources
### Description
### Why is this valuable (or not)?
### How do we know it's really free?
### For book lists, is it a book? For course lists, is it a course? etc.
## Checklist:
- [X] [Search](https://ebookfoundation.github.io/free-programming-books-search/) for duplicates.
- [X] Include author(s) and platform where appropriate.
- [X] Put lists in alphabetical order, correct spacing.
- [X] Add needed indications (PDF, access notes, under construction).
- [X] Used an informative name for this pull request.
## Follow-up
- Check the status of GitHub Actions and resolve any reported warnings!
## What does this PR do?
Add info
## IMPORTANT
- [X] Read our [contributing guidelines](https://github.com/EbookFoundation/free-programming-books/blob/main/docs/CONTRIBUTING.md).
- [ ] Is this a revision of a previously submitted PR? If so, STOP! Go back, reopen the PR, and add commit(s) the branch you previously submitted. Please don't make the job of reviewing more difficult by hiding previous work.
## For resources
### Description
### Why is this valuable (or not)?
### How do we know it's really free?
### For book lists, is it a book? For course lists, is it a course? etc.
## Checklist:
- [X] [Search](https://ebookfoundation.github.io/free-programming-books-search/) for duplicates.
- [X] Include author(s) and platform where appropriate.
- [X] Put lists in alphabetical order, correct spacing.
- [X] Add needed indications (PDF, access notes, under construction).
- [X] Used an informative name for this pull request.
## Follow-up
- Check the status of GitHub Actions and resolve any reported warnings!
## What does this PR do?
Improve repo
## IMPORTANT
- [X] Read our [contributing guidelines](https://github.com/EbookFoundation/free-programming-books/blob/main/docs/CONTRIBUTING.md).
- [ ] Is this a revision of a previously submitted PR? If so, STOP! Go back, reopen the PR, and add commit(s) the branch you previously submitted. Please don't make the job of reviewing more difficult by hiding previous work.
## For resources
### Description
### Why is this valuable (or not)?
### How do we know it's really free?
### For book lists, is it a book? For course lists, is it a course? etc.
## Checklist:
- [X] [Search](https://ebookfoundation.github.io/free-programming-books-search/) for duplicates.
- [X] Include author(s) and platform where appropriate.
- [X] Put lists in alphabetical order, correct spacing.
- [X] Add needed indications (PDF, access notes, under construction).
- [X] Used an informative name for this pull request.
## Follow-up
- Check the status of GitHub Actions and resolve any reported warnings!
requests
\ No newline at end of file
import os
import json
from document_writer import DocumentWriter
from document import Document
def test_document_writer(tmp_path):
content = """beep
boop
bop
bim"""
name = "test.txt"
title = "hello !"
creation_date = 1761763703219
test_document = Document()
test_document.set_name(name)
test_document.set_title(title)
test_document.set_main_content(content)
test_document.set_attribute("creation_date", creation_date)
writer = DocumentWriter(tmp_path)
writer.write_document(test_document)
with open(os.path.join(tmp_path, name)) as f:
assert f.read() == content
with open(os.path.join(tmp_path, ".meta", name + ".json")) as f:
meta = json.loads(f.read())
assert meta["title"] == title
assert meta["backlink"] == os.path.join(tmp_path, name)
assert meta["properties"] != None
assert meta["properties"]["creation_date"] == 1761763703219
{
"platform": {
"url": "YOUR_PLATFORM_URL_HERE",
"username": "YOUR_USERNAME_HERE",
"tenant": "YOUR_TENANT_HERE",
"password": "YOUR_PASSWORD_HERE"
},
"plugin_id": "cce685ea-ba51-433a-b4cc-18102954f8e7",
"source_paths": [
"output"
]
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment