Skip to content

Commit

Permalink
Merge pull request #30 from Py-Contributors/dev
Browse files Browse the repository at this point in the history
Dev to Stable PR
  • Loading branch information
DrakeEntity authored Oct 22, 2022
2 parents 5b1c97a + 9de5f25 commit e45a1e2
Show file tree
Hide file tree
Showing 17 changed files with 368 additions and 61 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: ["https://www.buymeacoffee.com/codeperfectplus"]
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---
**Are you using latest code**

**Describe the bug**
A clear and concise description of what the bug is.


**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Pythonversion**
- Python version

**Additional context**
Add any other context about the problem here.
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/update-documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: Update Documentation
about: Describe this issue template's purpose here.
title: ''
labels: documentation, enhancement
---

**Short introduction what you want to change in README.md **
example:- code change, outdated Readme
13 changes: 13 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
**What have you Changed**

what you changed in the codebase.write here


### Issue no.(must) - #

### Self Check(Tick After Making pull Request)

- [x] One Change in one Pull Request
- [x] I am following clean code and Documentation and my code is well linted with flake8.

Join Us on Discord:- https://discord.gg/JfbK3bS
17 changes: 17 additions & 0 deletions .github/workflows/add_labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Add Labels

on:
pull_request:
types: opened

jobs:
add_labels:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.comment.body, '/add-labels') }}
with:
labels: |
ready-for-review
opened
20 changes: 20 additions & 0 deletions .github/workflows/auto_close_empty_issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# GitHub Action that uses close-issue auto-close empty issues after they are opened.
# If the issue body text is empty the Action auto-closes it and sends a notification.
# Otherwise if the issue body is not empty, it does nothing and the issue remains open.
# https://github.com/marketplace/actions/close-issue

name: auto_close_empty_issues
on:
issues:
types: [opened]
jobs:
check-issue-body-not-empty:
runs-on: ubuntu-latest
steps:
- if: github.event.issue.body == 0
name: Close Issue
uses: peter-evans/close-issue@v1
with:
comment: |
Issue body must contain content.
Auto-closing this issue.
62 changes: 62 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
name: "CodeQL"

on:
push:
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
schedule:
- cron: '0 9 * * 5'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
language: ['python']
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish package to PyPI
on: push
jobs:
build-and-publish:
name: Build and Publish to PyPI
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2
- name: Use Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Run setup
run: >-
python setup.py sdist
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
17 changes: 17 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on: [pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install flake8
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Lint with flake8
run: flake8 . --isolated --exclude=.cache,.venv,.svn,CVS,.bzr,.hg,.git,__pycache__,.tox,**/migrations/** --ignore=E203,W503,E501,F401
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@

<h4 align="center">Python Module To Generate Random Profile Data</h4>

<p align="center">
<img src="https://img.shields.io/pypi/v/random-profile.svg">
<img src="https://img.shields.io/pypi/pyversions/random-profile.svg">
<img src="https://img.shields.io/pypi/l/random-profile.svg">
</p>
<p align="center">
<img src="https://img.shields.io/pypi/dd/random-profile.svg">
<img src="https://img.shields.io/pypi/dw/random-profile.svg">
<img src="https://img.shields.io/pypi/dm/random-profile.svg">
</p>

[RandomProfile](https://pypi.org/project/random-profile/) is a powerful and simple tool to generate fake data. You can use it to mock classes, populate databases and and much more. You can check the full documentation here. Check on [Pypi](https://pypi.org/project/random-profile/)

## Installation
Expand Down
92 changes: 61 additions & 31 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
# Random Profile Generator
<h1 align="center">
<br>
Random Profile Generator V0.2.3
<br>
</h1>

<h4 align="center">Python Module To Generate Random Profile Data</h4>

<p align="center">
<img src="https://img.shields.io/pypi/v/random-profile.svg">
<img src="https://img.shields.io/pypi/pyversions/random-profile.svg">
<img src="https://img.shields.io/pypi/l/random-profile.svg">
</p>
<p align="center">
<img src="https://img.shields.io/pypi/dd/random-profile.svg">
<img src="https://img.shields.io/pypi/dw/random-profile.svg">
<img src="https://img.shields.io/pypi/dm/random-profile.svg">
</p>

[RandomProfile](https://pypi.org/project/random-profile/) is a powerful and simple tool to generate fake data. You can use it to mock classes, populate databases and and much more. You can check the full documentation here. Check on [Pypi](https://pypi.org/project/random-profile/)

## Introduction
## Installation

RandomProfile is a powerful and simple tool to generate fake data. You can use it to mock classes, populate databases and and much more. You can check the full documentation here.
- This is A python 3 Package.
- Install python 3.0+ or Anaconda 3.0+

```python
pip install random-profile
```bash
pip install random-profile # using pip
conda install random-profile # using anaconda
```

## Documentation
Expand All @@ -20,29 +41,24 @@ default is 1
change the num value according to your needs.
'''
# For First Name
rp.first_name()
# num can be overwritten in the function

# For First Name
rp.full_name()
# For first name
rp.first_name(num=10)

# For First Name
rp.full_profile()
```
# For full name
rp.full_name(num=8)

## Installation
# override the num value
rp.full_profile(num=10)

- This is A python 3 Package.
- Install python 3.0+ or Anaconda 3.0+

```python
Pip install random-profile #on python
conda install random-profile # on anacoda
# For last name
rp.last_name(num=6)
```

## Usage

random-profile module is a random profile generator for many usages ex- fake dataset,youtube videos, content creation, personal projects.
the random-profile module is a random profile generator for many usages like: ex- fake dataset, YouTube videos, content creation, personal projects.

## Support

Expand All @@ -55,7 +71,25 @@ Contributors for the Project
what's new in future update

- More Random data will be added to package.
- variety of Random-Data will increase.
- Variety of Random-Data will increase.

## Changelog

v0.2.3
- Flask app added
- Date of Birth Added
- Age added
- Height and Weight Added
- Blood Group and hair color added
- Job title added
- More email domains added
- Bugs Fixed

v0.2.1
- More variation added to the data
- Test cases added
- Created a separate file for data loadings
- Fixed some bugs

## Contributing

Expand All @@ -65,22 +99,18 @@ Perform basic troubleshooting steps:

- Make sure you are on the latest version. If you are not on the most recent version, your problem may have been solved already! Upgrading is always the best first step.
- Try older versions. If you are already on the latest release, try rolling back a few minor versions (e.g. if on 1.7, try 1.5 or 1.6) and see if the problem goes away. This will help the devs narrow down when the problem first arose in the commit log.
- Try switching up dependency versions. If the software in question has dependencies (other libraries, etc) try upgrading/downgrading those as well.
- Try switching up dependency versions. If the software in question has dependencies (other libraries, etc) try upgrading and downgrading those dependencies as well.

## Authors and acknowledgment

Show your appreciation to those who have contributed to the project.

## License

For open source projects,Under MIT License.

## Project status
The project is licensed under the <a href="/LICENSE">MIT</a> license.

## Author
## Contributors

- Module : random-profile
- Author : CodePerfectPlus
- Language : Python
- Github : <https://github.com/codePerfectPlus>
- Website : <http://codeperfectplus.github.io/>
<a href="https://github.com/codePerfectPlus/awesomeScripts/graphs/contributors">
<img src="https://contrib.rocks/image?repo=codePerfectPlus/randomprofilegenerator" />
</a>
25 changes: 0 additions & 25 deletions random_profile/assets/email_domains.txt

This file was deleted.

Loading

0 comments on commit e45a1e2

Please sign in to comment.